summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-19 19:39:30 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-19 19:39:30 +0200
commitb83b34a4591c388a4781449fa1a56615f048a9a6 (patch)
tree79b2badb6be49b5380244bee652da146fbc3f00c
parent98ac1b13a75a5dddb17d6d6f26e9365146083d7b (diff)
downloadconnman-b83b34a4591c388a4781449fa1a56615f048a9a6.tar.gz
connman-b83b34a4591c388a4781449fa1a56615f048a9a6.tar.bz2
connman-b83b34a4591c388a4781449fa1a56615f048a9a6.zip
Rename Technologies property to AvailableTechnologies
-rw-r--r--doc/manager-api.txt2
-rw-r--r--src/manager.c2
-rw-r--r--src/notifier.c2
-rwxr-xr-xtest/test-manager7
4 files changed, 4 insertions, 9 deletions
diff --git a/doc/manager-api.txt b/doc/manager-api.txt
index ff675b36..6df87def 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 762425a6..999c7adb 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 36923035..ced0f4c7 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 c27ebedf..33835237 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]: