X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FEvent_Hooks.h;h=b500e751bc4bb2f714266216beaad9ce4ce72793;hb=9f967db4d1b31323f7da107d74cf9623c3a6081b;hp=0d9baa1c5acf4a8d2b405c16cd411940d18d31dc;hpb=49bf71b500f112cc90b790eb3975cceac351d021;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h index 0d9baa1c..b500e751 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h @@ -9,19 +9,41 @@ #include #include +#include #include "Process_List.h" #include "Drawing.h" +#include "CFV.h" + + +/* Structure used to store and use information relative to one events refresh + * request. Typically filled in by the expose event callback, then passed to the + * library call, then used by the drawing hooks. Then, once all the events are + * sent, it is freed by the hook called after the reading. + */ +typedef struct _EventRequest +{ + ControlFlowData *Control_Flow_Data; + LttTime time_begin, time_end; + /* Fill the Events_Context during the initial expose, before calling for + * events. + */ + //GArray Events_Context; //FIXME +} EventRequest ; + + + + void send_test_data(ProcessList *Process_List, Drawing_t *Drawing); -GtkWidget *hGuiControlFlow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key); +GtkWidget *h_guicontrolflow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key); -int Event_Selected_Hook(void *hook_data, void *call_data); +int event_selected_hook(void *hook_data, void *call_data); /* Hook called before drawing. Gets the initial context at the beginning of the * drawing interval and copy it to the context in Event_Request. */ -int Draw_Before_Hook(void *hook_data, void *call_data); +int draw_before_hook(void *hook_data, void *call_data); /* * The draw event hook is called by the reading API to have a @@ -43,12 +65,14 @@ int Draw_Before_Hook(void *hook_data, void *call_data); * The choice of lines'color is defined by the context of the last event for this * process. */ -int Draw_Event_Hook(void *hook_data, void *call_data); +int draw_event_hook(void *hook_data, void *call_data); + +int draw_after_hook(void *hook_data, void *call_data); + +void update_time_window_hook(void *hook_data, void *call_data); +void update_current_time_hook(void *hook_data, void *call_data); -int Draw_After_Hook(void *hook_data, void *call_data); -void Update_Time_Window_Hook(void *hook_data, void *call_data); -void Update_Current_Time_Hook(void *hook_data, void *call_data); #endif // _EVENT_HOOKS_H