projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae470f3
)
Fix connection disconnect function
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Oct 2008 16:31:50 +0000
(18:31 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Oct 2008 16:31:50 +0000
(18:31 +0200)
gdbus/mainloop.c
patch
|
blob
|
history
diff --git
a/gdbus/mainloop.c
b/gdbus/mainloop.c
index
b50d83c
..
d38bd63
100644
(file)
--- a/
gdbus/mainloop.c
+++ b/
gdbus/mainloop.c
@@
-60,7
+60,7
@@
struct server_info {
};
struct disconnect_data {
-
void (*disconnect_cb)(void *)
;
+
GDBusWatchFunction disconnect_cb
;
void *user_data;
};
@@
-72,8
+72,8
@@
static DBusHandlerResult disconnect_filter(DBusConnection *conn,
if (dbus_message_is_signal(msg,
DBUS_INTERFACE_LOCAL, "Disconnected") == TRUE) {
error("Got disconnected from the system message bus");
+ dc_data->disconnect_cb(conn, dc_data->user_data);
dbus_connection_unref(conn);
- dc_data->disconnect_cb(dc_data->user_data);
}
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;