diff options
-rw-r--r-- | camel/camel-object.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/camel-object.c b/camel/camel-object.c index 3d7c90baa6..43ff9c1d7f 100644 --- a/camel/camel-object.c +++ b/camel/camel-object.c @@ -37,6 +37,7 @@ #define d(x) #define b(x) /* object bag */ +#define h(x) /* hooks */ /* I just mashed the keyboard for these... */ #define CAMEL_OBJECT_MAGIC 0x77A344ED @@ -1098,6 +1099,8 @@ setup: hooks->list_length++; camel_object_unget_hooks(obj); + h(printf("%p hook event '%s' %p %p = %d\n", vo, name, func, data, id)); + return id; } @@ -1117,6 +1120,8 @@ camel_object_remove_event(void *vo, unsigned int id) return; } + h(printf("%p remove event %d\n", vo, id)); + /* scan hooks for this event, remove it, or flag it if we're busy */ hooks = camel_object_get_hooks(obj); parent = (CamelHookPair *)&hooks->list; @@ -1161,6 +1166,8 @@ camel_object_unhook_event(void *vo, const char * name, CamelObjectEventHookFunc return; } + h(printf("%p unhook event '%s' %p %p\n", vo, name, func, data)); + /* scan hooks for this event, remove it, or flag it if we're busy */ hooks = camel_object_get_hooks(obj); parent = (CamelHookPair *)&hooks->list; |