diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-20 14:19:47 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-20 14:19:47 +0000 |
commit | c26a3b4662921c4793824bd582a9b73bd212a9c3 (patch) | |
tree | 70225a2934b558f506ff9e715685d6bf22717cf2 /telepathy-glib/dbus.h | |
parent | b3c243c982c094eef27b153d2f2bdcff0e0a2cae (diff) | |
download | telepathy-glib-c26a3b4662921c4793824bd582a9b73bd212a9c3.tar.gz |
Add support for watching name owners in TpDBusDaemon, and add a test case
20071120141947-53eee-e8093e38723cf4950032e2ee8468d1f919541f96.gz
Diffstat (limited to 'telepathy-glib/dbus.h')
-rw-r--r-- | telepathy-glib/dbus.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/telepathy-glib/dbus.h b/telepathy-glib/dbus.h index cec23f673..9da365eab 100644 --- a/telepathy-glib/dbus.h +++ b/telepathy-glib/dbus.h @@ -51,6 +51,18 @@ GType tp_dbus_daemon_get_type (void); TpDBusDaemon *tp_dbus_daemon_new (DBusGConnection *connection); +typedef void (*TpDBusDaemonNameOwnerChangedCb) (TpDBusDaemon *daemon, + const gchar *name, const gchar *old_owner, const gchar *new_owner, + gpointer user_data); + +void tp_dbus_daemon_watch_name_owner (TpDBusDaemon *self, + const gchar *name, TpDBusDaemonNameOwnerChangedCb callback, + gpointer user_data, GDestroyNotify destroy); + +gboolean tp_dbus_daemon_cancel_name_owner_watch (TpDBusDaemon *self, + const gchar *name, TpDBusDaemonNameOwnerChangedCb callback, + gpointer user_data); + G_END_DECLS #include <telepathy-glib/_gen/tp-cli-dbus-daemon.h> |