summaryrefslogtreecommitdiffstats
path: root/gdbus/watch.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-10-17 18:32:39 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-10-17 18:32:39 +0200
commit924541ea61be54f717c699b39670d0d553cb8da0 (patch)
tree4b6354104bf7dfeb3cd5e4b18947a62ec955b87a /gdbus/watch.c
parent7c9e18eb90954f7534dedb9cfaa55dd1180edc0a (diff)
Change declaration of GDBusWatchFunction
Diffstat (limited to 'gdbus/watch.c')
-rw-r--r--gdbus/watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index b451cb00..8f4936ab 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -94,7 +94,7 @@ static void name_data_call_and_free(struct name_data *data)
for (l = data->callbacks; l != NULL; l = l->next) {
struct name_callback *cb = l->data;
if (cb->func)
- cb->func(cb->user_data);
+ cb->func(data->connection, cb->user_data);
g_free(cb);
}
@@ -246,7 +246,7 @@ static DBusHandlerResult name_exit_filter(DBusConnection *connection,
for (l = data->callbacks; l != NULL; l = l->next) {
struct name_callback *cb = l->data;
- cb->func(cb->user_data);
+ cb->func(connection, cb->user_data);
}
name_listeners = g_slist_remove(name_listeners, data);