[Libosinfo] [libosinfo PATCH 21/31] devicelinklist: Deprecate _get_devices()

Fabiano Fidêncio fidencio at redhat.com
Fri Nov 23 10:15:10 UTC 2018


Use osinfo_linklist_get_targets() instead.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 osinfo/osinfo_devicelinklist.c | 1 +
 osinfo/osinfo_devicelinklist.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/osinfo/osinfo_devicelinklist.c b/osinfo/osinfo_devicelinklist.c
index d0efc55..06941a1 100644
--- a/osinfo/osinfo_devicelinklist.c
+++ b/osinfo/osinfo_devicelinklist.c
@@ -172,6 +172,7 @@ OsinfoDeviceLinkList *osinfo_devicelinklist_new_union(OsinfoDeviceLinkList *sour
  * Get all devices matching a given filter
  *
  * Returns: (transfer full): A list of devices
+ * Deprecated: 1.3.0: Use osinfo_linklist_get_targets() instead.
  */
 OsinfoDeviceList *osinfo_devicelinklist_get_devices(OsinfoDeviceLinkList *list,
                                                     OsinfoFilter *filter)
diff --git a/osinfo/osinfo_devicelinklist.h b/osinfo/osinfo_devicelinklist.h
index f2816f9..548143c 100644
--- a/osinfo/osinfo_devicelinklist.h
+++ b/osinfo/osinfo_devicelinklist.h
@@ -76,7 +76,7 @@ G_DEPRECATED_FOR(osinfo_list_new_intersection)
 OsinfoDeviceLinkList *osinfo_devicelinklist_new_intersection(OsinfoDeviceLinkList *sourceOne, OsinfoDeviceLinkList *sourceTwo);
 G_DEPRECATED_FOR(osinfo_list_new_union)
 OsinfoDeviceLinkList *osinfo_devicelinklist_new_union(OsinfoDeviceLinkList *sourceOne, OsinfoDeviceLinkList *sourceTwo);
-
+G_DEPRECATED_FOR(osinfo_linklist_get_targets)
 OsinfoDeviceList *osinfo_devicelinklist_get_devices(OsinfoDeviceLinkList *list, OsinfoFilter *filter);
 
 #endif /* __OSINFO_DEVICELINKLIST_H__ */
-- 
2.19.1




More information about the Libosinfo mailing list