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

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

 



Use osinfo_link_get_target() instead.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 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

_______________________________________________
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