mega modif by Mathieu Desnoyers. Independant main windows, multiple tracesets, contro...
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Process_List.h
index ef38a9a2b7abffdd746c2bd562c05cfcb5fc0631..f2fa69cb3c39998780fa1b0b08189e9f175b825e 100644 (file)
  *     note : the sync with drawing is left to the caller.
  * provides helper function to convert a process unique identifier to
  *     pixels (in height).
+ *
+ * //FIXME : connect the scrolled window adjustment with the list.
  */
 
+typedef struct _ProcessInfo {
+       
+       guint pid;
+       LttTime birth;
+
+} ProcessInfo;
+
+
+
+struct _ProcessList {
+       
+       GtkWidget *Process_List_VC;
+       GtkListStore *Store_M;
+
+       /* A hash table by PID to speed up process position find in the list */
+       GHashTable *Process_Hash;
+       
+       guint Number_Of_Process;
+       gboolean Test_Process_Sent;
+
+};
+
+
 typedef struct _ProcessList ProcessList;
 
 ProcessList *ProcessList_construct(void);
@@ -29,10 +54,10 @@ int ProcessList_add(ProcessList *Process_List, guint pid, LttTime *birth,
 // out : success (0) and height
 int ProcessList_remove(ProcessList *Process_List, guint pid, LttTime *birth);
 
-guint ProcessList_get_pixels(ProcessList *Process_List);
+guint ProcessList_get_height(ProcessList *Process_List);
 
 // Returns 0 on success
 gint ProcessList_get_process_pixels(ProcessList *Process_List,
                                guint pid, LttTime *birth,
-                               guint *x, guint *height);
+                               guint *y, guint *height);
 #endif // _PROCESS_LIST_H
This page took 0.023444 seconds and 4 git commands to generate.