convert from svn repository: remove tags directory
[lttv.git] / trunk / lttv / doc / developer / lttv_hook_prio.txt
CommitLineData
6ea2aecb 1Linux Trace Toolkit
2
3Mathieu Desnoyers 18-05-2004
4
5
6Seeing that a very precise hook call ordering is needed when processing events
7(especially the order for calling state update hooks and event delivery hooks),
8this document defines a new type and interface that permits to merge all kind of
9hooks, eventually sorted by the priority associated to them.
10
b5e8b4a6 11- Type LttvHooks with priorities
12
13This is a modification to the actual LttvHooks that associates a priority with
14each hook. The container for this type would be a garray, just like hook.c, but
1413a5dd 15hooks would be added at the right position in the list, by priority. Hooks in a
16hook list are ordered by priority : from highest priority (0) to
17lowest (99). The default priority is 50 (defined as LTTV_PRIO_DEFAULT).
b5e8b4a6 18
1413a5dd 19A new lttv_hooks_call_merge that will get the hooks from two hook lists in the
20right order will deal with the multiple lists priority problem.
b5e8b4a6 21
22
6ea2aecb 23
24
This page took 0.051917 seconds and 4 git commands to generate.