[gupnp] ServiceInfo: Deprecate old introspection functions
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] ServiceInfo: Deprecate old introspection functions
- Date: Sat, 20 Nov 2021 17:52:40 +0000 (UTC)
commit a257c0582ee82262eb105063b68a7ab4813d354e
Author: Jens Georg <mail jensge org>
Date: Sat Nov 6 22:15:49 2021 +0100
ServiceInfo: Deprecate old introspection functions
libgupnp/gupnp-service-info.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index 1194268..c4d76cf 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -684,7 +684,9 @@ introspection_error_cb (gpointer user_data)
* Note that introspection object is created from the information in service
* description document (SCPD) provided by the service so it can not be created
* if the service does not provide a SCPD.
+ * Deprecated: 1.16.0. Use gupnp_service_info_introspect_async() instead.
**/
+G_DEPRECATED_FOR (gupnp_service_info_introspect_async)
void
gupnp_service_info_get_introspection_async
(GUPnPServiceInfo *info,
@@ -712,7 +714,9 @@ gupnp_service_info_get_introspection_async
* error code %G_IO_ERROR_CANCELLED.
*
* Since: 0.20.9
+ * Deprecated: 1.16.0. Use gupnp_service_info_introspecct_async() instead.
**/
+G_DEPRECATED_FOR (gupnp_service_info_introspect_async)
void
gupnp_service_info_get_introspection_async_full
(GUPnPServiceInfo *info,
@@ -839,10 +843,12 @@ gupnp_service_info_introspect_async (GUPnPServiceInfo *info,
GTask *task = g_task_new (info, cancellable, callback, user_data);
g_task_set_name (task, "UPnP service introspection");
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gupnp_service_info_get_introspection_async_full (info,
prv_introspection_cb,
cancellable,
task);
+ G_GNUC_END_IGNORE_DEPRECATIONS
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]