Rename Technologies property to AvailableTechnologies
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 19 Jul 2009 17:39:30 +0000 (19:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 19 Jul 2009 17:39:30 +0000 (19:39 +0200)
doc/manager-api.txt
src/manager.c
src/notifier.c
test/test-manager

index ff675b368f7fa4532761bb249a558c8cb15e9fd4..6df87def21d9468a6001d6f3edb5f757244becb2 100644 (file)
@@ -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.
index 762425a66dfd69e2fb0e163aea76ae6be5bd87ce..999c7adb61e9e55f2377b6239d1d155899829944 100644 (file)
@@ -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);
index 36923035ecec8c7f79b6867ecdbd5eaf7d7d0d0d..ced0f4c7415f4f52935856c679b525827bf30625 100644 (file)
@@ -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);
 
index c27ebedf6d6304e8ac3a42b7ccf1b0356e9f754a..33835237f35ea759e7912b0b37a09f293d03d258 100755 (executable)
@@ -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]: