diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-11-04 23:22:38 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-11-04 23:22:38 +0100 |
commit | 93ef55a72cd091cd7dcf322f9c4adddfecd3f97c (patch) | |
tree | 9f2516a487a07b21196f75bb85fdbc766296b981 /src/technology.c | |
parent | b9f30a7d55023b861c0fbda928ed6a2b9678c3d8 (diff) | |
download | connman-93ef55a72cd091cd7dcf322f9c4adddfecd3f97c.tar.gz connman-93ef55a72cd091cd7dcf322f9c4adddfecd3f97c.tar.bz2 connman-93ef55a72cd091cd7dcf322f9c4adddfecd3f97c.zip |
Remove device list from Technology interface
Diffstat (limited to 'src/technology.c')
-rw-r--r-- | src/technology.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/technology.c b/src/technology.c index 8cf66335..1626f83d 100644 --- a/src/technology.c +++ b/src/technology.c @@ -233,31 +233,6 @@ static void technologies_changed(void) DBUS_TYPE_OBJECT_PATH, __connman_technology_list, NULL); } -static void device_list(DBusMessageIter *iter, void *user_data) -{ - struct connman_technology *technology = user_data; - GSList *list; - - for (list = technology->device_list; list; list = list->next) { - struct connman_device *device = list->data; - const char *path; - - path = connman_device_get_path(device); - if (path == NULL) - continue; - - dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH, - &path); - } -} - -static void devices_changed(struct connman_technology *technology) -{ - connman_dbus_property_changed_array(technology->path, - CONNMAN_TECHNOLOGY_INTERFACE, "Devices", - DBUS_TYPE_OBJECT_PATH, device_list, technology); -} - static const char *state2string(enum connman_technology_state state) { switch (state) { @@ -345,9 +320,6 @@ static DBusMessage *get_properties(DBusConnection *conn, connman_dbus_dict_append_basic(&dict, "Type", DBUS_TYPE_STRING, &str); - connman_dbus_dict_append_array(&dict, "Devices", - DBUS_TYPE_OBJECT_PATH, device_list, technology); - connman_dbus_dict_close(&array, &dict); return reply; @@ -509,7 +481,6 @@ done: technology->device_list = g_slist_append(technology->device_list, device); - devices_changed(technology); return 0; } @@ -530,8 +501,6 @@ int __connman_technology_remove_device(struct connman_device *device) technology->device_list = g_slist_remove(technology->device_list, device); - devices_changed(technology); - if (technology->device_list == NULL) { technology->state = CONNMAN_TECHNOLOGY_STATE_OFFLINE; state_changed(technology); |