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 ff675b3..6df87de 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 762425a..999c7ad 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 3692303..ced0f4c 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 c27ebed..3383523 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]: