summaryrefslogtreecommitdiff
path: root/src/technology.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-01-05 10:14:21 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 11:11:08 +0100
commit472da28189443312faabb07bd26e2d8f3c1e9145 (patch)
treee47fdef5074c5f558aea326ae922339c195e7180 /src/technology.c
parentb4bd4ecb4de9a13f5094c5e3d07446ae9dfd9b79 (diff)
downloadconnman-472da28189443312faabb07bd26e2d8f3c1e9145.tar.gz
connman-472da28189443312faabb07bd26e2d8f3c1e9145.tar.bz2
connman-472da28189443312faabb07bd26e2d8f3c1e9145.zip
technology: Implement Manager API GetTechnologies method call
Diffstat (limited to 'src/technology.c')
-rw-r--r--src/technology.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c
index 100d138e..2eac7490 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -505,6 +505,26 @@ static DBusMessage *get_properties(DBusConnection *conn,
return reply;
}
+void __connman_technology_list_struct(DBusMessageIter *array)
+{
+ GSList *list;
+ DBusMessageIter entry;
+
+ for (list = technology_list; list; list = list->next) {
+ struct connman_technology *technology = list->data;
+
+ if (technology->path == NULL)
+ continue;
+
+ dbus_message_iter_open_container(array, DBUS_TYPE_STRUCT,
+ NULL, &entry);
+ dbus_message_iter_append_basic(&entry, DBUS_TYPE_OBJECT_PATH,
+ &technology->path);
+ append_properties(&entry, technology);
+ dbus_message_iter_close_container(array, &entry);
+ }
+}
+
static DBusMessage *set_property(DBusConnection *conn,
DBusMessage *msg, void *data)
{