diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-29 21:12:03 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-29 21:12:03 +0000 |
commit | 7d1a9d56719aea39ecd38c8dafffee9de898e68b (patch) | |
tree | 116cac8dc08133b49eec2cb9ec4eb59e0cd82557 /gdbus | |
parent | cc0f97ec2cb298bde87cd3753fd96f11ce41ff64 (diff) |
Remove GDBusDisconnectFunction type
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/gdbus.h | 6 | ||||
-rw-r--r-- | gdbus/mainloop.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 22c10569..68c6fe80 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -31,13 +31,13 @@ extern "C" { #include <dbus/dbus.h> #include <glib.h> -typedef void (* GDBusDisconnectFunction) (void *user_data); +typedef void (* GDBusWatchFunction) (void *user_data); DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name, DBusError *error); gboolean g_dbus_set_disconnect_function(DBusConnection *connection, - GDBusDisconnectFunction function, + GDBusWatchFunction function, void *user_data, DBusFreeFunction destroy); #define DBUS_TYPE_STRING_ARRAY_AS_STRING (DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_STRING_AS_STRING) @@ -185,8 +185,6 @@ gboolean g_dbus_send_reply(DBusConnection *connection, gboolean g_dbus_send_reply_valist(DBusConnection *connection, DBusMessage *message, int type, va_list args); -typedef void (* GDBusWatchFunction) (void *user_data); - guint g_dbus_add_disconnect_watch(DBusConnection *connection, const char *name, GDBusWatchFunction function, diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index a9b8237c..36abbf33 100644 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -290,7 +290,7 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name, } gboolean g_dbus_set_disconnect_function(DBusConnection *connection, - GDBusDisconnectFunction function, + GDBusWatchFunction function, void *user_data, DBusFreeFunction destroy) { struct disconnect_data *dc_data; |