summaryrefslogtreecommitdiffstats
path: root/gdbus/gdbus.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:12:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:12:44 +0000
commit33191e6275ab82aa4161cdf75b45597e4d1568ec (patch)
treed20e3027a12c57aee6ef221ff8cc347f4e2f9989 /gdbus/gdbus.h
parent6bf91edf6cdb840c0f40572f1a20d381fd2cdc5e (diff)
Move D-Bus mainloop integration into libgdbus
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 71377516..d749d5e2 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -20,3 +20,24 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+
+#ifndef __GDBUS_H
+#define __GDBUS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <dbus/dbus.h>
+#include <glib.h>
+
+void setup_dbus_with_main_loop(DBusConnection *conn);
+
+DBusConnection *dbus_bus_system_setup_with_main_loop(const char *name,
+ void (*disconnect_cb)(void *), void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __GDBUS_H */