X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FEvent_Hooks.h;h=6add225dc4d8f7e39a6b749d20ff2a84192fff51;hb=1b238973d103680c4f5c37e030afc3314aa96804;hp=c279f88b5ee0b2ebf8e0893c7f84af5b32bd64b8;hpb=f0d936c08dae39e9a913357a49885b4937aca847;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 c279f88b..6add225d 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h @@ -1,15 +1,50 @@ +/* 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(GtkWidget *pmParentWindow); +#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; + gint x_begin, x_end; + /* Fill the Events_Context during the initial expose, before calling for + * events. + */ + //GArray Events_Context; //FIXME +} EventRequest ; + + + + -int Event_Selected_Hook(void *hook_data, void *call_data); +void send_test_data(ProcessList *Process_List, Drawing_t *Drawing); + +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 +66,19 @@ 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 draw_closure(gpointer key, gpointer value, gpointer user_data); + +int after_data_request(void *hook_data, void *call_data); + + +gint update_time_window_hook(void *hook_data, void *call_data); +gint update_current_time_hook(void *hook_data, void *call_data); + + -int Draw_After_Hook(void *hook_data, void *call_data); #endif // _EVENT_HOOKS_H