manager: Remove EnabledTechnologies and associated function
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 22 Dec 2011 13:35:47 +0000 (15:35 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 09:55:56 +0000 (10:55 +0100)
src/connman.h
src/manager.c
src/notifier.c

index 9a98a7a..88731c1 100644 (file)
@@ -566,7 +566,6 @@ void __connman_technology_cleanup(void);
 int __connman_notifier_init(void);
 void __connman_notifier_cleanup(void);
 
-void __connman_notifier_list_enabled(DBusMessageIter *iter, void *user_data);
 void __connman_notifier_list_connected(DBusMessageIter *iter, void *user_data);
 
 void __connman_notifier_register(enum connman_service_type type);
index 9179676..8786a30 100644 (file)
@@ -63,8 +63,6 @@ static DBusMessage *get_properties(DBusConnection *conn,
        connman_dbus_dict_append_basic(&dict, "OfflineMode",
                                        DBUS_TYPE_BOOLEAN, &offlinemode);
 
-       connman_dbus_dict_append_array(&dict, "EnabledTechnologies",
-               DBUS_TYPE_STRING, __connman_notifier_list_enabled, NULL);
        connman_dbus_dict_append_array(&dict, "ConnectedTechnologies",
                DBUS_TYPE_STRING, __connman_notifier_list_connected, NULL);
 
index 3f91d31..e71173b 100644 (file)
@@ -77,23 +77,6 @@ static volatile int registered[MAX_TECHNOLOGIES];
 static volatile int enabled[MAX_TECHNOLOGIES];
 static volatile int connected[MAX_TECHNOLOGIES];
 
-void __connman_notifier_list_enabled(DBusMessageIter *iter, void *user_data)
-{
-       int i;
-
-       __sync_synchronize();
-       for (i = 0; i < MAX_TECHNOLOGIES; i++) {
-               const char *type = __connman_service_type2string(i);
-
-               if (type == NULL)
-                       continue;
-
-               if (enabled[i] > 0)
-                       dbus_message_iter_append_basic(iter,
-                                               DBUS_TYPE_STRING, &type);
-       }
-}
-
 void __connman_notifier_list_connected(DBusMessageIter *iter, void *user_data)
 {
        int i;
@@ -124,10 +107,6 @@ static void technology_enabled(enum connman_service_type type,
 
        DBG("type %d enabled %d", type, enabled);
 
-       connman_dbus_property_changed_array(CONNMAN_MANAGER_PATH,
-               CONNMAN_MANAGER_INTERFACE, "EnabledTechnologies",
-               DBUS_TYPE_STRING, __connman_notifier_list_enabled, NULL);
-
        for (list = notifier_list; list; list = list->next) {
                struct connman_notifier *notifier = list->data;