diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 19:12:44 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 19:12:44 +0000 |
commit | 33191e6275ab82aa4161cdf75b45597e4d1568ec (patch) | |
tree | d20e3027a12c57aee6ef221ff8cc347f4e2f9989 /gdbus/gdbus.h | |
parent | 6bf91edf6cdb840c0f40572f1a20d381fd2cdc5e (diff) |
Move D-Bus mainloop integration into libgdbus
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 21 |
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 */ |