From: Marcel Holtmann Date: Sat, 19 Dec 2009 08:32:38 +0000 (-0800) Subject: Add helper function to retrieve list of devices X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~3033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e302b0d243e3c503e6d84a5e86b89139d45c6c4;p=profile%2Fivi%2Fconnman.git Add helper function to retrieve list of devices --- diff --git a/src/connman.h b/src/connman.h index bd61d25..6f9debc 100644 --- a/src/connman.h +++ b/src/connman.h @@ -268,6 +268,8 @@ void __connman_udev_enable_rfkill_processing(void); int __connman_device_init(void); void __connman_device_cleanup(void); +void __connman_device_list(DBusMessageIter *iter); + enum connman_service_type __connman_device_get_service_type(struct connman_device *device); int __connman_device_get_phyindex(struct connman_device *device); diff --git a/src/device.c b/src/device.c index cc9bd23..42cd670 100644 --- a/src/device.c +++ b/src/device.c @@ -271,6 +271,11 @@ static int set_powered(struct connman_device *device, connman_bool_t powered) return err; } +void __connman_device_list(DBusMessageIter *iter) +{ + __connman_element_list(NULL, CONNMAN_ELEMENT_TYPE_DEVICE, iter); +} + static void append_path(gpointer key, gpointer value, gpointer user_data) { struct connman_element *element = value;