X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fdoc%2Fdeveloper%2Fhook_prio.txt;h=910d86b62bdfc56edf653c35eb3cf1578f9a36e6;hb=003e753f6b82170e6bdeb5ee594b6cb861714c48;hp=b78a36348b6a4f1b33896a9a98b3f420679d215e;hpb=b5e8b4a65c61f42b709e9cac19552d633ae25d17;p=lttv.git diff --git a/ltt/branches/poly/doc/developer/hook_prio.txt b/ltt/branches/poly/doc/developer/hook_prio.txt index b78a3634..910d86b6 100644 --- a/ltt/branches/poly/doc/developer/hook_prio.txt +++ b/ltt/branches/poly/doc/developer/hook_prio.txt @@ -12,16 +12,12 @@ hooks, eventually sorted by the priority associated to them. This is a modification to the actual LttvHooks that associates a priority with each hook. The container for this type would be a garray, just like hook.c, but -a lttv_hooks_prio_sort would be called every time a hook is added to a list. It -would sort the hooks in a hook list by priority : from highest priority (-19) to -lowest (20). The default priority is 0. +hooks would be added at the right position in the list, by priority. Hooks in a +hook list are ordered by priority : from highest priority (0) to +lowest (99). The default priority is 50 (defined as LTTV_PRIO_DEFAULT). -In order to make lttv_hooks_call aware of the different kind of hooks it has to -call, the LttvHooksById will be modified to integrate a new "main" list : a -pointer to a LttvHooks that will be called for any Id. - -A new lttv_hooks_by_id_call that will get the hooks from the main and by_id -lists in the right order will deal with the multiple lists priority problem. +A new lttv_hooks_call_merge that will get the hooks from two hook lists in the +right order will deal with the multiple lists priority problem.