From b83b34a4591c388a4781449fa1a56615f048a9a6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 19 Jul 2009 19:39:30 +0200 Subject: [PATCH] Rename Technologies property to AvailableTechnologies --- doc/manager-api.txt | 2 +- src/manager.c | 2 +- src/notifier.c | 2 +- test/test-manager | 7 +------ 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/doc/manager-api.txt b/doc/manager-api.txt index ff675b3..6df87de 100644 --- a/doc/manager-api.txt +++ b/doc/manager-api.txt @@ -125,7 +125,7 @@ Properties string State [readonly] the value "connected". This can only be seen if previously no connection was present. - array{string} Technologies [readonly] + array{string} AvailableTechnologies [readonly] The list of available technologies. The strings are the same as the ones from the service types. diff --git a/src/manager.c b/src/manager.c index 762425a..999c7ad 100644 --- a/src/manager.c +++ b/src/manager.c @@ -133,7 +133,7 @@ static void append_technologies(gboolean powered, DBusMessageIter *dict) if (powered) key = "EnabledTechnologies"; else - key = "Technologies"; + key = "AvailableTechnologies"; dbus_message_iter_open_container(dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry); diff --git a/src/notifier.c b/src/notifier.c index 3692303..ced0f4c 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -116,7 +116,7 @@ static void technology_registered(enum connman_service_type type, { DBusMessage *signal; DBusMessageIter entry, value, iter; - const char *key = "Technologies"; + const char *key = "AvailableTechnologies"; DBG("type %d registered %d", type, registered); diff --git a/test/test-manager b/test/test-manager index c27ebed..3383523 100755 --- a/test/test-manager +++ b/test/test-manager @@ -58,16 +58,11 @@ def print_properties(key, value): val = str(path) list = list + val[val.rfind("/") + 1:] + " " print " Services = [ %s]" % (list) - if "Technologies" in properties.keys(): - list = "" - for val in properties["Technologies"]: - list = list + val + " " - print " Technologies = [ %s]" % (list) for key in properties.keys(): if key in ["Profiles", "Devices", "Connections", "Services"]: print_properties(key, properties[key]) - elif key in ["Technologies", "EnabledTechnologies"]: + elif key in ["AvailableTechnologies", "EnabledTechnologies"]: print "%s" % (key) list = "" for val in properties[key]: -- 2.7.4