summaryrefslogtreecommitdiff
path: root/telepathy-glib
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-05 17:06:04 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-05 17:06:04 +0200
commit70fb1639522213b9f2b62c98f840b6c0f895dba2 (patch)
treee772c22fa506d5fdcb50d23f176915da3dbb8ede /telepathy-glib
parent9a6db8f51aec46b62226a8db2375147d4c2fc577 (diff)
downloadtelepathy-glib-70fb1639522213b9f2b62c98f840b6c0f895dba2.tar.gz
add _tp_dbus_daemon_is_the_shared_one as internal API
Diffstat (limited to 'telepathy-glib')
-rw-r--r--telepathy-glib/dbus-daemon.c6
-rw-r--r--telepathy-glib/dbus-internal.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/telepathy-glib/dbus-daemon.c b/telepathy-glib/dbus-daemon.c
index 4a0f67067..fafeff6f1 100644
--- a/telepathy-glib/dbus-daemon.c
+++ b/telepathy-glib/dbus-daemon.c
@@ -1425,5 +1425,11 @@ tp_dbus_daemon_class_init (TpDBusDaemonClass *klass)
proxy_class->interface = TP_IFACE_QUARK_DBUS_DAEMON;
}
+gboolean
+_tp_dbus_daemon_is_the_shared_one (TpDBusDaemon *self)
+{
+ return (self != NULL && self == starter_bus_daemon);
+}
+
/* Auto-generated implementation of _tp_register_dbus_glib_marshallers */
#include "_gen/register-dbus-glib-marshallers-body.h"
diff --git a/telepathy-glib/dbus-internal.h b/telepathy-glib/dbus-internal.h
index 4cce7fafd..da5bbd911 100644
--- a/telepathy-glib/dbus-internal.h
+++ b/telepathy-glib/dbus-internal.h
@@ -34,6 +34,8 @@ void _tp_register_dbus_glib_marshallers (void);
DBusGConnection *_tp_dbus_starter_bus_conn (GError **error)
G_GNUC_WARN_UNUSED_RESULT;
+gboolean _tp_dbus_daemon_is_the_shared_one (TpDBusDaemon *self);
+
G_END_DECLS
#endif /* __TP_INTERNAL_DBUS_GLIB_H__ */