Commit f6e0b7d0 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Regenerated all headers.

parent 35afc13e
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_Panel #ifndef HEADER_Panel
#define HEADER_Panel #define HEADER_Panel
/* /*
htop htop - Panel.h
(C) 2004-2006 Hisham H. Muhammad (C) 2004-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
...@@ -15,7 +15,6 @@ in the source distribution for its full text. ...@@ -15,7 +15,6 @@ in the source distribution for its full text.
#include "RichString.h" #include "RichString.h"
#include <math.h> #include <math.h>
#include <sys/param.h>
#include <stdbool.h> #include <stdbool.h>
#include "debug.h" #include "debug.h"
...@@ -48,9 +47,15 @@ struct Panel_ { ...@@ -48,9 +47,15 @@ struct Panel_ {
Panel_EventHandler eventHandler; Panel_EventHandler eventHandler;
}; };
extern char* PANEL_CLASS;
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
extern char* PANEL_CLASS;
Panel* Panel_new(int x, int y, int w, int h, char* type, bool owner); Panel* Panel_new(int x, int y, int w, int h, char* type, bool owner);
...@@ -60,11 +65,11 @@ void Panel_init(Panel* this, int x, int y, int w, int h, char* type, bool owner) ...@@ -60,11 +65,11 @@ void Panel_init(Panel* this, int x, int y, int w, int h, char* type, bool owner)
void Panel_done(Panel* this); void Panel_done(Panel* this);
void Panel_setEventHandler(Panel* this, Panel_EventHandler eh); inline void Panel_setRichHeader(Panel* this, RichString header);
void Panel_setRichHeader(Panel* this, RichString header); inline void Panel_setHeader(Panel* this, char* header);
void Panel_setHeader(Panel* this, char* header); void Panel_setEventHandler(Panel* this, Panel_EventHandler eh);
void Panel_move(Panel* this, int x, int y); void Panel_move(Panel* this, int x, int y);
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_Process #ifndef HEADER_Process
#define HEADER_Process #define HEADER_Process
...@@ -106,12 +106,10 @@ typedef struct Process_ { ...@@ -106,12 +106,10 @@ typedef struct Process_ {
char user[PROCESS_USER_LEN + 1]; char user[PROCESS_USER_LEN + 1];
} Process; } Process;
extern char* PROCESS_CLASS;
extern char* Process_fieldNames[];
extern char* PROCESS_CLASS;
extern char *Process_fieldNames[];
Process* Process_new(struct ProcessList_ *pl); Process* Process_new(struct ProcessList_ *pl);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef HEADER_ProcessList #ifndef HEADER_ProcessList
#define HEADER_ProcessList #define HEADER_ProcessList
/* /*
htop - ProcessList.c htop - ProcessList.h
(C) 2004,2005 Hisham H. Muhammad (C) 2004,2005 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
...@@ -103,15 +103,11 @@ typedef struct ProcessList_ { ...@@ -103,15 +103,11 @@ typedef struct ProcessList_ {
} ProcessList; } ProcessList;
#ifdef DEBUG #ifdef DEBUG
#define ProcessList_read(this, buffer, format, ...) ProcessList_xread(this, (vxscanf) vsscanf, buffer, format, ## __VA_ARGS__ ) #define ProcessList_read(this, buffer, format, ...) ProcessList_xread(this, (vxscanf) vsscanf, buffer, format, ## __VA_ARGS__ )
#define ProcessList_fread(this, file, format, ...) ProcessList_xread(this, (vxscanf) vfscanf, file, format, ## __VA_ARGS__ ) #define ProcessList_fread(this, file, format, ...) ProcessList_xread(this, (vxscanf) vfscanf, file, format, ## __VA_ARGS__ )
#else #else
#ifndef ProcessList_read #ifndef ProcessList_read
...@@ -141,10 +137,8 @@ Process* ProcessList_get(ProcessList* this, int index); ...@@ -141,10 +137,8 @@ Process* ProcessList_get(ProcessList* this, int index);
int ProcessList_size(ProcessList* this); int ProcessList_size(ProcessList* this);
void ProcessList_sort(ProcessList* this); void ProcessList_sort(ProcessList* this);
bool ProcessList_readStatusFile(ProcessList* this, Process* proc, char* dirname, char* name); bool ProcessList_readStatusFile(ProcessList* this, Process* proc, char* dirname, char* name);
void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, float period); void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, float period);
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_RichString #ifndef HEADER_RichString
#define HEADER_RichString #define HEADER_RichString
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <curses.h> #include <curses.h>
#include <sys/param.h>
#include "debug.h" #include "debug.h"
#include <assert.h> #include <assert.h>
...@@ -21,6 +20,9 @@ typedef struct RichString_ { ...@@ -21,6 +20,9 @@ typedef struct RichString_ {
} RichString; } RichString;
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
RichString RichString_new(); RichString RichString_new();
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_ScreenManager #ifndef HEADER_ScreenManager
#define HEADER_ScreenManager #define HEADER_ScreenManager
...@@ -32,9 +32,9 @@ typedef struct ScreenManager_ { ...@@ -32,9 +32,9 @@ typedef struct ScreenManager_ {
int y2; int y2;
Orientation orientation; Orientation orientation;
Vector* items; Vector* items;
Vector* fuBars;
int itemCount; int itemCount;
FunctionBar* fuBar; FunctionBar* fuBar;
Vector* fuBars;
bool owner; bool owner;
} ScreenManager; } ScreenManager;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef HEADER_Settings #ifndef HEADER_Settings
#define HEADER_Settings #define HEADER_Settings
/* /*
htop - Settings.c htop - Settings.h
(C) 2004-2006 Hisham H. Muhammad (C) 2004-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
...@@ -32,8 +32,6 @@ Settings* Settings_new(ProcessList* pl, Header* header); ...@@ -32,8 +32,6 @@ Settings* Settings_new(ProcessList* pl, Header* header);
void Settings_delete(Settings* this); void Settings_delete(Settings* this);
bool Settings_read(Settings* this, char* fileName); bool Settings_read(Settings* this, char* fileName);
bool Settings_write(Settings* this); bool Settings_write(Settings* this);
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_Signal #ifndef HEADER_SignalItem
#define HEADER_Signal #define HEADER_SignalItem
/* /*
htop htop - SignalItem.h
(C) 2004-2006 Hisham H. Muhammad (C) 2004-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
...@@ -25,8 +25,8 @@ typedef struct Signal_ { ...@@ -25,8 +25,8 @@ typedef struct Signal_ {
int number; int number;
} Signal; } Signal;
extern char* SIGNAL_CLASS;
extern char* SIGNAL_CLASS;
Signal* Signal_new(char* name, int number); Signal* Signal_new(char* name, int number);
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_SignalsPanel #ifndef HEADER_SignalsPanel
#define HEADER_SignalsPanel #define HEADER_SignalsPanel
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_String #ifndef HEADER_String
#define HEADER_String #define HEADER_String
......
...@@ -22,7 +22,9 @@ in the source distribution for its full text. ...@@ -22,7 +22,9 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
#include <assert.h> #include <assert.h>
extern int SwapMeter_attributes[];
extern MeterType SwapMeter;
void SwapMeter_setValues(Meter* this, char* buffer, int len); void SwapMeter_setValues(Meter* this, char* buffer, int len);
......
...@@ -17,7 +17,9 @@ in the source distribution for its full text. ...@@ -17,7 +17,9 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
extern int TasksMeter_attributes[];
extern MeterType TasksMeter;
void TasksMeter_setValues(Meter* this, char* buffer, int len); void TasksMeter_setValues(Meter* this, char* buffer, int len);
......
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_TraceScreen
#define HEADER_TraceScreen
/* /*
htop - TraceScreen.h htop - TraceScreen.h
(C) 2005 Hisham H. Muhammad (C) 2005-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
*/ */
#ifndef HEADER_TraceScreen
#define HEADER_TraceScreen
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
...@@ -13,11 +15,16 @@ in the source distribution for its full text. ...@@ -13,11 +15,16 @@ in the source distribution for its full text.
#include <stdbool.h> #include <stdbool.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "ProcessList.h" #include "ProcessList.h"
#include "Process.h"
#include "ListItem.h"
#include "Panel.h" #include "Panel.h"
#include "FunctionBar.h" #include "FunctionBar.h"
typedef struct TraceScreen_ { typedef struct TraceScreen_ {
Process* process; Process* process;
Panel* display; Panel* display;
...@@ -25,6 +32,7 @@ typedef struct TraceScreen_ { ...@@ -25,6 +32,7 @@ typedef struct TraceScreen_ {
bool tracing; bool tracing;
} TraceScreen; } TraceScreen;
TraceScreen* TraceScreen_new(Process* process); TraceScreen* TraceScreen_new(Process* process);
void TraceScreen_delete(TraceScreen* this); void TraceScreen_delete(TraceScreen* this);
...@@ -34,4 +42,3 @@ void TraceScreen_draw(TraceScreen* this); ...@@ -34,4 +42,3 @@ void TraceScreen_draw(TraceScreen* this);
void TraceScreen_run(TraceScreen* this); void TraceScreen_run(TraceScreen* this);
#endif #endif
...@@ -17,8 +17,10 @@ in the source distribution for its full text. ...@@ -17,8 +17,10 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
extern int UptimeMeter_attributes[];
extern MeterType UptimeMeter;
void UptimeMeter_setValues(Meter* cast, char* buffer, int len); void UptimeMeter_setValues(Meter* this, char* buffer, int len);
#endif #endif
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_UsersTable #ifndef HEADER_UsersTable
#define HEADER_UsersTable #define HEADER_UsersTable
/* /*
htop htop - UsersTable.h
(C) 2004-2006 Hisham H. Muhammad (C) 2004-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
...@@ -20,10 +20,6 @@ in the source distribution for its full text. ...@@ -20,10 +20,6 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
#include <assert.h> #include <assert.h>
#ifndef SYSCONFDIR
#define SYSCONFDIR "/etc"
#endif
typedef struct UsersTable_ { typedef struct UsersTable_ {
Hashtable* users; Hashtable* users;
} UsersTable; } UsersTable;
...@@ -36,6 +32,6 @@ char* UsersTable_getRef(UsersTable* this, int uid); ...@@ -36,6 +32,6 @@ char* UsersTable_getRef(UsersTable* this, int uid);
inline int UsersTable_size(UsersTable* this); inline int UsersTable_size(UsersTable* this);
void UsersTable_foreach(UsersTable*, Hashtable_PairFunction, void*); inline void UsersTable_foreach(UsersTable* this, Hashtable_PairFunction f, void* userData);
#endif #endif
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_Vector #ifndef HEADER_Vector
#define HEADER_Vector #define HEADER_Vector
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
/* Full debug */ /* Full debug */
#include "DebugMemory.h" #include "DebugMemory.h"
#define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__); #define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__)
#define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__, #x); #define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__, #x)
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x); #define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x)
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__); #define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__)
#define free(x) DebugMemory_free(x, __FILE__, __LINE__); #define free(x) DebugMemory_free(x, __FILE__, __LINE__)
#define debug_done() DebugMemory_report(); #define debug_done() DebugMemory_report()
#elif defined(DEBUGLITE) #elif defined(DEBUGLITE)
......
/* Do not edit this file. It was automatically genarated. */ /* Do not edit this file. It was automatically generated. */
#ifndef HEADER_htop #ifndef HEADER_htop
#define HEADER_htop #define HEADER_htop
...@@ -9,6 +9,13 @@ Released under the GNU GPL, see the COPYING file ...@@ -9,6 +9,13 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text. in the source distribution for its full text.
*/ */
#define _GNU_SOURCE
#include <unistd.h>
#include <math.h>
#include <sys/param.h>
#include <ctype.h>
#include <stdbool.h>
#include "ProcessList.h" #include "ProcessList.h"
#include "CRT.h" #include "CRT.h"
#include "Panel.h" #include "Panel.h"
...@@ -21,32 +28,24 @@ in the source distribution for its full text. ...@@ -21,32 +28,24 @@ in the source distribution for its full text.
#include "ListItem.h" #include "ListItem.h"
#include "CategoriesPanel.h" #include "CategoriesPanel.h"
#include "SignalsPanel.h" #include "SignalsPanel.h"
#include "TraceScreen.h"
#include "config.h" #include "config.h"
#include "debug.h" #include "debug.h"
#include <unistd.h>
#include <math.h>
#include <sys/param.h>
#include <ctype.h>
#include <stdbool.h>
int usleep(int usec);
//#link m //#link m
#define INCSEARCH_MAX 40 #define INCSEARCH_MAX 40
void printVersionFlag(); void printVersionFlag();
void printHelpFlag(); void printHelpFlag();
void showHelp(); void showHelp();
void showColumnConfig(ProcessList* pl); void addUserToList(int key, void* userCast, void* panelCast);
void Setup_run(Settings* settings, int headerHeight); void setUserOnly(const char* userName, bool* userOnly, uid_t* userId);
int main(int argc, char** argv); int main(int argc, char** argv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment