[PATCHv2 4/4] Add osinfo_platform_get_all_devices() documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux