summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-20 14:19:47 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-20 14:19:47 +0000
commitc26a3b4662921c4793824bd582a9b73bd212a9c3 (patch)
tree70225a2934b558f506ff9e715685d6bf22717cf2 /telepathy-glib/dbus.h
parentb3c243c982c094eef27b153d2f2bdcff0e0a2cae (diff)
downloadtelepathy-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.h12
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>