diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2004-01-16 15:18:17 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-16 15:18:17 +0800 |
commit | 68fb5b04f27d7e2eac64837b1ac044423a4532f8 (patch) | |
tree | 2e81240eb86bdbba2e018cc76bf0a4509583b2f0 /camel | |
parent | 7ab4ccfe7670d38a00fa2a9c06dcc7a60a4c2726 (diff) | |
download | gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar.gz gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar.bz2 gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar.lz gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar.xz gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.tar.zst gsoc2013-evolution-68fb5b04f27d7e2eac64837b1ac044423a4532f8.zip |
added some hook debug h(x)
svn path=/trunk/; revision=24267
Diffstat (limited to 'camel')
-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; |