diff options
Diffstat (limited to 'serial/manager.c')
| -rw-r--r-- | serial/manager.c | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/serial/manager.c b/serial/manager.c index 2f4ab59e..79601624 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -24,3 +24,22 @@  #ifdef HAVE_CONFIG_H  #include <config.h>  #endif + +#include "dbus.h" + +#include "manager.h" + +static DBusConnection *connection = NULL; + +int serial_init(DBusConnection *conn) +{ +	connection = dbus_connection_ref(conn); + +	return 0; +} + +void serial_exit(void) +{ +	dbus_connection_unref(connection); +	connection = NULL; +} | 
