summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-05 22:12:23 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-05 22:12:23 +0100
commitc60ffbfbfe8bfedb7b75f94f5f042a206fb7940f (patch)
tree1c076ebe34ae49ce4538bcf701cf95558bfd564b /src/connection.c
parent8c525f8122631321a7170ce9409baca706d1aea3 (diff)
downloadconnman-c60ffbfbfe8bfedb7b75f94f5f042a206fb7940f.tar.gz
connman-c60ffbfbfe8bfedb7b75f94f5f042a206fb7940f.tar.bz2
connman-c60ffbfbfe8bfedb7b75f94f5f042a206fb7940f.zip
Add property to indicate default connections
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 212242e1..79ae34de 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -223,6 +223,9 @@ static DBusMessage *get_properties(DBusConnection *conn,
connman_dbus_dict_append_variant(&dict, "Interface",
DBUS_TYPE_STRING, &element->devname);
+ connman_dbus_dict_append_variant(&dict, "Default",
+ DBUS_TYPE_BOOLEAN, &element->enabled);
+
dbus_message_iter_close_container(&array, &dict);
return reply;