service: Support function that saves service
[framework/connectivity/connman.git] / src / technology.c
index 5cb6ddb..2edb48f 100644 (file)
@@ -831,7 +831,7 @@ void __connman_technology_scan_stopped(struct connman_device *device)
                if (__connman_device_get_service_type(other_device) != type)
                        continue;
 
-               if (__connman_device_scanning(other_device))
+               if (connman_device_get_scanning(other_device) == TRUE)
                        count += 1;
        }
 
@@ -859,18 +859,18 @@ static DBusMessage *scan(DBusConnection *conn, DBusMessage *msg, void *data)
 }
 
 static const GDBusMethodTable technology_methods[] = {
-       { _GDBUS_DEPRECATED_METHOD("GetProperties", "", "a{sv}",
+       { GDBUS_DEPRECATED_METHOD("GetProperties",
                        NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
                        get_properties) },
-       { _GDBUS_METHOD("SetProperty", "sv", "",
+       { GDBUS_METHOD("SetProperty",
                        GDBUS_ARGS({ "name", "s" }, { "value", "v" }),
                        NULL, set_property) },
-       { _GDBUS_ASYNC_METHOD("Scan", "", "", NULL, NULL, scan) },
+       { GDBUS_ASYNC_METHOD("Scan", NULL, NULL, scan) },
        { },
 };
 
 static const GDBusSignalTable technology_signals[] = {
-       { _GDBUS_SIGNAL("PropertyChanged", "sv",
+       { GDBUS_SIGNAL("PropertyChanged",
                        GDBUS_ARGS({ "name", "s" }, { "value", "v" })) },
        { },
 };
@@ -1101,7 +1101,7 @@ int __connman_technology_remove_device(struct connman_device *device)
                return -ENXIO;
        }
 
-       if (__connman_device_scanning(device))
+       if (connman_device_get_scanning(device) == TRUE)
                __connman_technology_scan_stopped(device);
 
        technology->device_list = g_slist_remove(technology->device_list,