RemoveProvider argument is an object path
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 28 Sep 2010 10:43:07 +0000 (12:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 28 Sep 2010 10:46:48 +0000 (12:46 +0200)
src/manager.c

index e2c27d0..0f66560 100644 (file)
@@ -204,8 +204,8 @@ static DBusMessage *remove_provider(DBusConnection *conn,
 
        DBG("conn %p", conn);
 
-       dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &path,
-                             DBUS_TYPE_INVALID);
+       dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
+                                                       DBUS_TYPE_INVALID);
 
        err = __connman_provider_remove(path);
        if (err < 0)
@@ -625,7 +625,7 @@ static GDBusMethodTable manager_methods[] = {
        { "GetState",          "",      "s",     get_state          },
        { "CreateProfile",     "s",     "o",     create_profile     },
        { "RemoveProfile",     "o",     "",      remove_profile     },
-       { "RemoveProvider",    "s",     "",      remove_provider    },
+       { "RemoveProvider",    "o",     "",      remove_provider    },
        { "RequestScan",       "s",     "",      request_scan       },
        { "EnableTechnology",  "s",     "",      enable_technology,
                                                G_DBUS_METHOD_FLAG_ASYNC },