1 #ifndef _PROCESS_LIST_H
2 #define _PROCESS_LIST_H
5 #include <lttv/state.h>
11 * Create a process list
12 * contains the data for the process list
13 * tells the height of the process list widget
14 * provides methods to add/remove process from the list
15 * note : the sync with drawing is left to the caller.
16 * provides helper function to convert a process unique identifier to
19 * //FIXME : connect the scrolled window adjustment with the list.
22 typedef struct _ProcessInfo
{
33 GtkWidget
*Process_List_VC
;
34 GtkListStore
*Store_M
;
36 /* A hash table by PID to speed up process position find in the list */
37 GHashTable
*Process_Hash
;
39 guint Number_Of_Process
;
44 typedef struct _ProcessList ProcessList
;
46 ProcessList
*ProcessList_construct(void);
47 void ProcessList_destroy(ProcessList
*Process_List
);
48 GtkWidget
*ProcessList_getWidget(ProcessList
*Process_List
);
50 // out : success (0) and height
51 int ProcessList_add(ProcessList
*Process_List
, guint pid
, LttTime
*birth
,
53 // out : success (0) and height
54 int ProcessList_remove(ProcessList
*Process_List
, guint pid
, LttTime
*birth
);
56 guint
ProcessList_get_pixels(ProcessList
*Process_List
);
58 // Returns 0 on success
59 gint
ProcessList_get_process_pixels(ProcessList
*Process_List
,
60 guint pid
, LttTime
*birth
,
61 guint
*x
, guint
*height
);
62 #endif // _PROCESS_LIST_H
This page took 0.029581 seconds and 4 git commands to generate.