X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.h;h=6f4fdf015e01a2a11e823e02721f4fedd457163b;hb=29e34d6c3b4a9fa6fb181647d224efaac2461ffb;hp=75cde72b5fbd20c2bd2f90ca1beef07ff0a388c7;hpb=ca0f8a8e5907fe8aa588324b1b268d3089b46160;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h index 75cde72b..6f4fdf01 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h @@ -57,20 +57,17 @@ void send_test_data(ProcessList *process_list, Drawing_t *drawing); -GtkWidget *h_guicontrolflow(Tab *tab, LttvTracesetSelector * s, char * key); +GtkWidget *h_guicontrolflow(Tab *tab); -int event_selected_hook(void *hook_data, void *call_data); +GtkWidget *h_legend(Tab *tab); -/* 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 event_selected_hook(void *hook_data, void *call_data); /* * The draw event hook is called by the reading API to have a * particular event drawn on the screen. * @param hook_data ControlFlowData structure of the viewer. - * @param call_data Event context. + * @param call_data Event context with state. * * This function basically draw lines and icons. Two types of lines are drawn : * one small (3 pixels?) representing the state of the process and the second @@ -86,23 +83,39 @@ 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 before_schedchange_hook(void *hook_data, void *call_data); +int after_schedchange_hook(void *hook_data, void *call_data); +int before_execmode_hook(void *hook_data, void *call_data); +int after_execmode_hook(void *hook_data, void *call_data); + + +int before_process_exit_hook(void *hook_data, void *call_data); +int before_process_release_hook(void *hook_data, void *call_data); +int after_process_exit_hook(void *hook_data, void *call_data); +int after_process_fork_hook(void *hook_data, void *call_data); +int after_fs_exec_hook(void *hook_data, void *call_data); -int draw_after_hook(void *hook_data, void *call_data); + +#if 0 +int before_process_hook(void *hook_data, void *call_data); +int after_process_hook(void *hook_data, void *call_data); +#endif //0 void draw_closure(gpointer key, gpointer value, gpointer user_data); -int before_data_request(void *hook_data, void *call_data); -int after_data_request(void *hook_data, void *call_data); +int before_chunk(void *hook_data, void *call_data); +int after_chunk(void *hook_data, void *call_data); +int before_request(void *hook_data, void *call_data); +int after_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); +gint traceset_notify(void *hook_data, void *call_data); gint redraw_notify(void *hook_data, void *call_data); gint continue_notify(void *hook_data, void *call_data); -gint after_process_traceset_hook(void *hook_data, void *call_data); - - +void legend_destructor(GtkWindow *legend); #endif // _EVENT_HOOKS_H