[Libosinfo] [PATCHv2 4/4] Add osinfo_platform_get_all_devices() documentation
Christophe Fergeau
cfergeau at redhat.com
Wed Apr 3 15:47:48 UTC 2013
---
osinfo/osinfo_platform.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/osinfo/osinfo_platform.c b/osinfo/osinfo_platform.c
index 1a2d803..a95e628 100644
--- a/osinfo/osinfo_platform.c
+++ b/osinfo/osinfo_platform.c
@@ -124,6 +124,18 @@ static void get_all_devices_cb(OsinfoProduct *product, gpointer user_data)
foreach_data->devices = OSINFO_DEVICELIST(tmp_list);
}
+
+/**
+ * osinfo_platform_get_all_devices:
+ * @platform: a platform
+ * @filter: (allow-none)(transfer none): an optional device property filter
+ *
+ * Get all platforms matching a given filter but unlike
+ * osinfo_platform_get_devices this function also retrieves devices from
+ * all derived and upgraded platforms.
+ *
+ * Returns: (transfer full): A list of devices
+ */
OsinfoDeviceList *osinfo_platform_get_all_devices(OsinfoPlatform *platform,
OsinfoFilter *filter)
{
--
1.8.1.4
More information about the Libosinfo
mailing list