[gupnp/gupnp-1.4] Service: Declare _valist functions deprecated
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.4] Service: Declare _valist functions deprecated
- Date: Thu, 30 Dec 2021 12:51:23 +0000 (UTC)
commit 58f697f460dce7bceb263d81489fa74f503a3640
Author: Jens Georg <mail jensge org>
Date: Thu Dec 30 13:51:07 2021 +0100
Service: Declare _valist functions deprecated
libgupnp/gupnp-service.c | 6 ++++++
libgupnp/gupnp-service.h | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 67b3d43..f1bbb1d 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -365,7 +365,9 @@ gupnp_service_action_get (GUPnPServiceAction *action,
g_return_if_fail (action != NULL);
va_start (var_args, action);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gupnp_service_action_get_valist (action, var_args);
+ G_GNUC_END_IGNORE_DEPRECATIONS
va_end (var_args);
}
@@ -557,7 +559,9 @@ gupnp_service_action_set (GUPnPServiceAction *action,
g_return_if_fail (action != NULL);
va_start (var_args, action);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gupnp_service_action_set_valist (action, var_args);
+ G_GNUC_END_IGNORE_DEPRECATIONS
va_end (var_args);
}
@@ -1872,7 +1876,9 @@ gupnp_service_notify (GUPnPService *service,
g_return_if_fail (GUPNP_IS_SERVICE (service));
va_start (var_args, service);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gupnp_service_notify_valist (service, var_args);
+ G_GNUC_END_IGNORE_DEPRECATIONS
va_end (var_args);
}
diff --git a/libgupnp/gupnp-service.h b/libgupnp/gupnp-service.h
index dc47e7d..8796686 100644
--- a/libgupnp/gupnp-service.h
+++ b/libgupnp/gupnp-service.h
@@ -69,7 +69,7 @@ void
gupnp_service_action_get (GUPnPServiceAction *action,
...) G_GNUC_NULL_TERMINATED;
-void
+G_DEPRECATED void
gupnp_service_action_get_valist (GUPnPServiceAction *action,
va_list var_args);
@@ -92,7 +92,7 @@ void
gupnp_service_action_set (GUPnPServiceAction *action,
...) G_GNUC_NULL_TERMINATED;
-void
+G_DEPRECATED void
gupnp_service_action_set_valist (GUPnPServiceAction *action,
va_list var_args);
@@ -125,7 +125,7 @@ void
gupnp_service_notify (GUPnPService *service,
...) G_GNUC_NULL_TERMINATED;
-void
+G_DEPRECATED void
gupnp_service_notify_valist (GUPnPService *service,
va_list var_args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]