diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 23:45:55 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 23:45:55 +0100 |
commit | e10cccf70309a219f0068b636a5f466456008989 (patch) | |
tree | 6df891063df98ad900a1d9f7cbd1eae7840ee2d5 /src/connection.c | |
parent | e0a71455440ba3ffd0c1403f5b146997f3ad936f (diff) | |
download | connman-e10cccf70309a219f0068b636a5f466456008989.tar.gz connman-e10cccf70309a219f0068b636a5f466456008989.tar.bz2 connman-e10cccf70309a219f0068b636a5f466456008989.zip |
Add support for connection type property
Diffstat (limited to 'src/connection.c')
-rw-r--r-- | src/connection.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c index 01a84cc0..7344cd48 100644 --- a/src/connection.c +++ b/src/connection.c @@ -205,7 +205,7 @@ static DBusMessage *get_properties(DBusConnection *conn, struct connman_element *element = data; DBusMessage *reply; DBusMessageIter array, dict; - const char *method = NULL; + const char *type = NULL, *method = NULL; const char *address = NULL, *netmask = NULL, *gateway = NULL; DBG("conn %p", conn); @@ -221,6 +221,12 @@ static DBusMessage *get_properties(DBusConnection *conn, DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_VARIANT_AS_STRING DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &dict); + connman_element_get_static_property(element, "Type", &type); + + if (type != NULL) + connman_dbus_dict_append_variant(&dict, "Type", + DBUS_TYPE_STRING, &type); + if (element->devname != NULL) connman_dbus_dict_append_variant(&dict, "Interface", DBUS_TYPE_STRING, &element->devname); |