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
20 typedef struct _ProcessList ProcessList
;
22 ProcessList
*ProcessList_construct(void);
23 void ProcessList_destroy(ProcessList
*Process_List
);
24 GtkWidget
*ProcessList_getWidget(ProcessList
*Process_List
);
26 // out : success (0) and height
27 int ProcessList_add(ProcessList
*Process_List
, guint pid
, LttTime
*birth
,
29 // out : success (0) and height
30 int ProcessList_remove(ProcessList
*Process_List
, guint pid
, LttTime
*birth
);
32 guint
ProcessList_get_pixels(ProcessList
*Process_List
);
34 // Returns 0 on success
35 gint
ProcessList_get_process_pixels(ProcessList
*Process_List
,
36 guint pid
, LttTime
*birth
,
37 guint
*x
, guint
*height
);
38 #endif // _PROCESS_LIST_H
This page took 0.02973 seconds and 4 git commands to generate.