projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make inline correct -> must be static
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
hook.h
diff --git
a/ltt/branches/poly/lttv/lttv/hook.h
b/ltt/branches/poly/lttv/lttv/hook.h
index c1814d8191b66b156c5707cf388fa5826aa859b3..77a5dd5f59194ede727e5760c55d9f62f741ab88 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/hook.h
+++ b/
ltt/branches/poly/lttv/lttv/hook.h
@@
-76,7
+76,7
@@
void lttv_hooks_remove_data(LttvHooks *h, LttvHook f, void *hook_data);
/* Remove a list of hooks from the hooks list in h. */
/* Remove a list of hooks from the hooks list in h. */
-void lttv_hooks_remove_
data_
list(LttvHooks *h, LttvHooks *list);
+void lttv_hooks_remove_list(LttvHooks *h, LttvHooks *list);
/* Return the number of hooks in the list */
/* Return the number of hooks in the list */
@@
-92,6
+92,7
@@
void lttv_hooks_get(LttvHooks *h, unsigned i, LttvHook *f, void **hook_data,
/* Remove the specified hook. The position of the following hooks may change */
/* Remove the specified hook. The position of the following hooks may change */
+/* The hook is removed from the list event if its ref_count is higher than 1 */
void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i);
void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i);
@@
-143,7
+144,14
@@
unsigned lttv_hooks_by_id_max_id(LttvHooksById *h);
/* Get the list of hooks for an id, NULL if none exists */
/* Get the list of hooks for an id, NULL if none exists */
-LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id);
+static inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
+{
+ LttvHooks *ret;
+ if(id < h->len) ret = h->pdata[id];
+ else ret = NULL;
+
+ return ret;
+}
/* Remove the list of hooks associated with an id */
/* Remove the list of hooks associated with an id */
This page took
0.027883 seconds
and
4
git commands to generate.