summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2011-12-22 15:35:47 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 10:55:56 +0100
commit9f5a2516b6d800a20f3bb903c346746a02bb17d5 (patch)
treea66ae83169125b7db2dc66d56cfbdfba9ca0558d /src
parent939f1bd0099e647af2513bce4ef1b09585beabeb (diff)
downloadconnman-9f5a2516b6d800a20f3bb903c346746a02bb17d5.tar.gz
connman-9f5a2516b6d800a20f3bb903c346746a02bb17d5.tar.bz2
connman-9f5a2516b6d800a20f3bb903c346746a02bb17d5.zip
manager: Remove EnabledTechnologies and associated function
Diffstat (limited to 'src')
-rw-r--r--src/connman.h1
-rw-r--r--src/manager.c2
-rw-r--r--src/notifier.c21
3 files changed, 0 insertions, 24 deletions
diff --git a/src/connman.h b/src/connman.h
index 9a98a7aa..88731c12 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -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);
diff --git a/src/manager.c b/src/manager.c
index 91796769..8786a309 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -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);
diff --git a/src/notifier.c b/src/notifier.c
index 3f91d318..e71173b8 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -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;