X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=42a8ba3083087756470b5c3a12a2bf8909f0f667;hb=1e3594a344fc57ed19aed95efa9e27bedb287df4;hp=30fa5c6aabc7e1ac06a081a0ae98f26c44bc13c7;hpb=3667f07d4ba2bc2bae9729ca3d60451475e2a434;p=lttv.git diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index 30fa5c6a..42a8ba30 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -361,6 +361,36 @@ void lttvwindow_unregister_time_window_notify(Tab *tab, LttvHook hook, gpointer hook_data); +/** + * Function to register a hook function that will be called by the main window + * when the time span of the traceset is updated. + * + * This register function is typically called by the constructor of the viewer. + * + * @param tab the tab the viewer belongs to. + * @param hook hook that sould be called by the main window when the time + * interval changes. + * @param hook_data hook data associated with the hook function. It will + * be typically a pointer to the viewer's data structure. + */ +void lttvwindow_register_timespan_notify(Tab *tab, + LttvHook hook, + gpointer hook_data); + +/** + * Function to unregister the time_span notification hook. + * + * This unregister function is typically called by the destructor of the viewer. + * + * @param tab the tab the viewer belongs to. + * @param hook hook that sould be called by the main window when the time + * interval changes. + * @param hook_data hook data associated with the hook function. It will + * be typically a pointer to the viewer's data structure. + */ +void lttvwindow_unregister_timespan_notify(Tab *tab, + LttvHook hook, + gpointer hook_data); /** * Function to register a hook function that will be called by the main window