X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FEvent_Hooks.h;h=21f7df5cd3d16d1113a502a60fe2ce0999994882;hb=a8c0f09de06b94e9420d286e1541c39092fff434;hp=7b68c7a57dc90a64fbb99ced6108d1616ecd0f81;hpb=558aa01322f1af8be09fcfc086864da0373823c5;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 7b68c7a5..21f7df5c 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h @@ -1,15 +1,27 @@ +/* Event_hooks.c defines the hooks that are given to processTrace as parameter. + * These hooks call the Drawing API to draw the information on the screen, + * using information from Context, but mostly state (running, waiting...). + */ + #ifndef _EVENT_HOOKS_H #define _EVENT_HOOKS_H -GtkWidget *hGuiControlFlow(mainWindow *pmParentWindow); +#include +#include +#include "Process_List.h" +#include "Drawing.h" + +void send_test_data(ProcessList *Process_List, Drawing_t *Drawing); -int Event_Selected_Hook(void *hook_data, void *call_data); +GtkWidget *h_guicontrolflow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key); + +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 @@ -31,8 +43,12 @@ 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); #endif // _EVENT_HOOKS_H