diff options
Diffstat (limited to 'audio/manager.c')
-rw-r--r-- | audio/manager.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c index 7c7a92c0..32eea81b 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -25,13 +25,22 @@ #include <config.h> #endif +#include <dbus/dbus.h> + #include "manager.h" -int audio_init(void) +static DBusConnection *connection = NULL; + +int audio_init(DBusConnection *conn) { + connection = dbus_connection_ref(conn); + return 0; } void audio_exit(void) { + dbus_connection_unref(connection); + + connection = NULL; } |