projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@309 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
hook.c
diff --git
a/ltt/branches/poly/lttv/hook.c
b/ltt/branches/poly/lttv/hook.c
index 5edc62303c5638163d40585d2995f42d210b7f10..8edbb2afbee7fc34755a6508c5ae704211c875dc 100644
(file)
--- a/
ltt/branches/poly/lttv/hook.c
+++ b/
ltt/branches/poly/lttv/hook.c
@@
-16,6
+16,7
@@
LttvHooks *lttv_hooks_new()
void lttv_hooks_destroy(LttvHooks *h)
{
void lttv_hooks_destroy(LttvHooks *h)
{
+ g_critical("lttv_hooks_destroy()");
g_array_free(h, TRUE);
}
g_array_free(h, TRUE);
}
@@
-132,7
+133,7
@@
void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i)
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
{
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
{
- gboolean ret = FALSE;
+ gboolean ret
, sum_ret
= FALSE;
LttvHookClosure *c;
LttvHookClosure *c;
@@
-141,10
+142,11
@@
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
if(h != NULL) {
for(i = 0 ; i < h->len ; i++) {
c = &g_array_index(h, LttvHookClosure, i);
if(h != NULL) {
for(i = 0 ; i < h->len ; i++) {
c = &g_array_index(h, LttvHookClosure, i);
- ret = ret || c->hook(c->hook_data,call_data);
+ ret = c->hook(c->hook_data,call_data);
+ sum_ret = sum_ret || ret;
}
}
}
}
- return ret;
+ return
sum_
ret;
}
}
This page took
0.022683 seconds
and
4
git commands to generate.