projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640ba9b
)
gdbus: Use destroy callback for service watch
author
Anderson Lizardo
<anderson.lizardo@openbossa.org>
Tue, 3 Apr 2012 16:14:58 +0000
(12:14 -0400)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 5 Apr 2012 15:07:14 +0000
(08:07 -0700)
Even though service watches accepted a "destroy" callback, they were
being ignored. This fix properly pass them along so they are called when
the watch is removed.
gdbus/watch.c
patch
|
blob
|
history
diff --git
a/gdbus/watch.c
b/gdbus/watch.c
index
fba58c3
..
9a716b0
100644
(file)
--- a/
gdbus/watch.c
+++ b/
gdbus/watch.c
@@
-666,7
+666,7
@@
guint g_dbus_add_service_watch(DBusConnection *connection, const char *name,
if (data == NULL)
return 0;
- cb = filter_data_add_callback(data, connect, disconnect, NULL,
NULL
,
+ cb = filter_data_add_callback(data, connect, disconnect, NULL,
destroy
,
user_data);
if (cb == NULL)
return 0;