Make the ConnectService method async
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 07:12:53 +0000 (09:12 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 07:12:53 +0000 (09:12 +0200)
src/manager.c

index c97140b..71430c8 100644 (file)
@@ -330,7 +330,8 @@ static GDBusMethodTable manager_methods[] = {
        { "SetProperty",     "sv",    "",      set_property     },
        { "AddProfile",      "s",     "o",     add_profile      },
        { "RemoveProfile",   "o",     "",      remove_profile   },
-       { "ConnectService",  "a{sv}", "o",     connect_service  },
+       { "ConnectService",  "a{sv}", "o",     connect_service,
+                                               G_DBUS_METHOD_FLAG_ASYNC },
        { "RegisterAgent",   "o",     "",      register_agent   },
        { "UnregisterAgent", "o",     "",      unregister_agent },
        { },