X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fhook.h;h=65903b284b100c10c8eafd53cffb08402f179e3e;hb=27fb4fd27a32d054c161db031edf02ac015a15ad;hp=c5a71b752184521c6e1e2bc858e69559c07304f2;hpb=90e19f82bca635a1ba52b8a50b64e484bd19c14f;p=lttv.git diff --git a/lttv/lttv/hook.h b/lttv/lttv/hook.h index c5a71b75..65903b28 100644 --- a/lttv/lttv/hook.h +++ b/lttv/lttv/hook.h @@ -22,7 +22,7 @@ #define HOOK_H #include -#include +#include /* A hook is a function to call with the supplied hook data, and with call site specific data (e.g., hooks for events are called with a @@ -77,7 +77,7 @@ void lttv_hooks_remove_data(LttvHooks *h, LttvHook f, void *hook_data); /* Remove a list of hooks from the hooks list in h. */ -void lttv_hooks_remove_list(LttvHooks *h, LttvHooks *list); +void lttv_hooks_remove_list(LttvHooks *h, const LttvHooks *list); /* Return the number of hooks in the list */ @@ -120,6 +120,8 @@ gboolean lttv_hooks_call_merge(LttvHooks *h1, void *call_data1, gboolean lttv_hooks_call_check_merge(LttvHooks *h1, void *call_data1, LttvHooks *h2, void *call_data2); +#ifdef BABEL_CLEANUP + /* Sometimes different hooks need to be called based on the case. The case is represented by an unsigned integer id */ @@ -184,4 +186,10 @@ void lttv_hooks_by_id_channel_destroy(LttvHooksByIdChannelArray *h); LttvHooks *lttv_hooks_by_id_channel_find(LttvHooksByIdChannelArray *h, GQuark channel, guint16 id); +#endif /* BABEL_CLEANUP */ + +/* Print information about each hook in the list*/ + +void lttv_hooks_print(const LttvHooks *h); + #endif // HOOK_H