diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-05-29 14:43:27 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-05-29 14:43:27 +0000 |
commit | cc0f97ec2cb298bde87cd3753fd96f11ce41ff64 (patch) | |
tree | e02bb5f68ca60810d2793708939306174f4aa100 /gdbus/gdbus.h | |
parent | 4baf1de49d3aad2837a968a18a7181d568ff9457 (diff) | |
download | bluez-cc0f97ec2cb298bde87cd3753fd96f11ce41ff64.tar.gz |
Change name_listener API to libgdbus watch API
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 6f3ddb797..22c105690 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -185,14 +185,14 @@ gboolean g_dbus_send_reply(DBusConnection *connection, gboolean g_dbus_send_reply_valist(DBusConnection *connection, DBusMessage *message, int type, va_list args); -typedef void (*name_cb_t)(const char *name, void *user_data); - -guint name_listener_add(DBusConnection *connection, const char *name, - name_cb_t func, void *user_data); -int name_listener_remove(DBusConnection *connection, const char *name, - name_cb_t func, void *user_data); -gboolean name_listener_id_remove(guint id); -int name_listener_indicate_disconnect(DBusConnection *connection); +typedef void (* GDBusWatchFunction) (void *user_data); + +guint g_dbus_add_disconnect_watch(DBusConnection *connection, + const char *name, + GDBusWatchFunction function, + void *user_data, GDBusDestroyFunction destroy); +gboolean g_dbus_remove_watch(DBusConnection *connection, guint tag); +void g_dbus_remove_all_watches(DBusConnection *connection); #ifdef __cplusplus } |