summaryrefslogtreecommitdiffstats
path: root/daemon/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/database.c')
-rw-r--r--daemon/database.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/database.c b/daemon/database.c
index 39d8c21c..01377d02 100644
--- a/daemon/database.c
+++ b/daemon/database.c
@@ -67,7 +67,7 @@ static DBusHandlerResult remove_service_record(DBusConnection *conn,
static DBusMethodVTable database_table[] = {
{ "AddServiceRecord", add_service_record,
- DBUS_TYPE_INVALID_AS_STRING, DBUS_TYPE_UINT32_AS_STRING },
+ DBUS_TYPE_BYTE_ARRAY_AS_STRING, DBUS_TYPE_UINT32_AS_STRING },
{ "RemoveServiceRecord", remove_service_record,
DBUS_TYPE_UINT32_AS_STRING, DBUS_TYPE_INVALID_AS_STRING },
{ }
@@ -93,6 +93,9 @@ void database_exit(void)
{
info("Stopping database interface");
+ dbus_connection_unregister_interface(connection,
+ SYSTEM_PATH, DATABASE_INTERFACE);
+
dbus_connection_unref(connection);
connection = NULL;