supplicant: Call scan callback if needed when removing interface
[framework/connectivity/connman.git] / plugins / nmcompat.c
index 7037648..400389b 100644 (file)
@@ -221,13 +221,17 @@ static DBusMessage *property_get(DBusConnection *conn,
 }
 
 static const GDBusMethodTable methods[] = {
-       { "Get", "ss",  "v",   property_get     },
+       { GDBUS_METHOD("Get",
+                       GDBUS_ARGS({ "interface", "s" }, { "key", "s" }),
+                       GDBUS_ARGS({ "property", "v" }), property_get) },
        { },
 };
 
-static GDBusSignalTable signals[] = {
-       { "PropertiesChanged",  "a{sv}" },
-       { "StateChanged",       "u"     },
+static const GDBusSignalTable signals[] = {
+       { GDBUS_SIGNAL("PropertiesChanged",
+                       GDBUS_ARGS({ "properties", "a{sv}" })) },
+       { GDBUS_SIGNAL("StateChanged",
+                       GDBUS_ARGS({ "state", "u" })) },
        { },
 };