summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus-daemon.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 15:30:16 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 16:20:52 +0100
commit48b48dca4a73d3bee4d1311163001e1cac26adb8 (patch)
treea00266e9760c84730fd530e8c0a30954c9a8eded /telepathy-glib/dbus-daemon.h
parentf6d4e669ec944cb9da603f4ded8732f65ddd26a4 (diff)
downloadtelepathy-glib-48b48dca4a73d3bee4d1311163001e1cac26adb8.tar.gz
Add tp_dbus_daemon_list_names, tp_dbus_daemon_list_activatable_names
These use libdbus directly, to avoid DBusGProxy's undesirable signal-binding (which causes us to wake up on every NameOwnerChanged).
Diffstat (limited to 'telepathy-glib/dbus-daemon.h')
-rw-r--r--telepathy-glib/dbus-daemon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/telepathy-glib/dbus-daemon.h b/telepathy-glib/dbus-daemon.h
index 72df7a98f..0fe3549bd 100644
--- a/telepathy-glib/dbus-daemon.h
+++ b/telepathy-glib/dbus-daemon.h
@@ -75,6 +75,16 @@ gboolean tp_dbus_daemon_release_name (TpDBusDaemon *self,
const gchar *tp_dbus_daemon_get_unique_name (TpDBusDaemon *self);
+typedef void (*TpDBusDaemonListNamesCb) (TpDBusDaemon *bus_daemon,
+ const gchar * const *names, const GError *error, gpointer user_data,
+ GObject *weak_object);
+void tp_dbus_daemon_list_names (TpDBusDaemon *self,
+ gint timeout_ms, TpDBusDaemonListNamesCb callback,
+ gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
+void tp_dbus_daemon_list_activatable_names (TpDBusDaemon *self,
+ gint timeout_ms, TpDBusDaemonListNamesCb callback,
+ gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
+
G_END_DECLS
#include <telepathy-glib/_gen/tp-cli-dbus-daemon.h>