summaryrefslogtreecommitdiff
path: root/gio/gdbusprivate.h
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-06 14:51:09 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-19 10:06:21 +0200
commit2e3d50631ff05d28ed5bdae97d1becc4c6b5e078 (patch)
tree98b840bd189e0708b3453d1889111631c0f02f3a /gio/gdbusprivate.h
parent98569e53e3678ab906bfcd3a8c624ea3d74d643f (diff)
downloadglib-2e3d50631ff05d28ed5bdae97d1becc4c6b5e078.tar.gz
Add private _g_bus_get_singleton_if_exists() function
This is used by g_test_dbus_down() to ensure the GDBusConnection gets disposed, but not create one if the singleton already got disposed. https://bugzilla.gnome.org/show_bug.cgi?id=672985
Diffstat (limited to 'gio/gdbusprivate.h')
-rw-r--r--gio/gdbusprivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gdbusprivate.h b/gio/gdbusprivate.h
index 7230a8d46..1ac7754a3 100644
--- a/gio/gdbusprivate.h
+++ b/gio/gdbusprivate.h
@@ -143,6 +143,9 @@ void _g_dbus_object_proxy_add_interface (GDBusObjectProxy *proxy,
void _g_dbus_object_proxy_remove_interface (GDBusObjectProxy *proxy,
const gchar *interface_name);
+/* Implemented in gdbusconnection.c */
+GDBusConnection *_g_bus_get_singleton_if_exists (GBusType bus_type);
+
G_END_DECLS
#endif /* __G_DBUS_PRIVATE_H__ */