[Libosinfo] [libosinfo PATCH 12/31] devicelink: Deprecate _get_target()

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


Use osinfo_link_get_target() instead.

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

diff --git a/osinfo/osinfo_devicelink.c b/osinfo/osinfo_devicelink.c
index 3b9909b..dfa3dd2 100644
--- a/osinfo/osinfo_devicelink.c
+++ b/osinfo/osinfo_devicelink.c
@@ -95,6 +95,7 @@ OsinfoDeviceLink *osinfo_devicelink_new(OsinfoDevice *target)
  * Retrieve the #OsinfoDevice that the link points to.
  *
  * Returns: (transfer none): the target of the device link
+ * Deprecated: 1.3.0: Use osinfo_link_get_target() instead.
  */
 OsinfoDevice *osinfo_devicelink_get_target(OsinfoDeviceLink *devlink)
 {
diff --git a/osinfo/osinfo_devicelink.h b/osinfo/osinfo_devicelink.h
index 4f8e5c5..436368b 100644
--- a/osinfo/osinfo_devicelink.h
+++ b/osinfo/osinfo_devicelink.h
@@ -70,6 +70,7 @@ GType osinfo_devicelink_get_type(void);
 
 OsinfoDeviceLink *osinfo_devicelink_new(OsinfoDevice *target);
 
+G_DEPRECATED_FOR(osinfo_link_get_target)
 OsinfoDevice *osinfo_devicelink_get_target(OsinfoDeviceLink *link);
 
 const gchar *osinfo_devicelink_get_driver(OsinfoDeviceLink *link);
-- 
2.19.1




More information about the Libosinfo mailing list