[gupnp/gupnp-1.4] ContextManager, ControlPoint: Deprecation warnings
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.4] ContextManager, ControlPoint: Deprecation warnings
- Date: Wed, 5 Jan 2022 13:49:52 +0000 (UTC)
commit bea40d3708adda31ef64e455c317c351ad457507
Author: Jens Georg <mail jensge org>
Date: Wed Jan 5 14:48:53 2022 +0100
ContextManager, ControlPoint: Deprecation warnings
Remove deprecation warnings caused by last commit
libgupnp/gupnp-context-manager.c | 2 ++
libgupnp/gupnp-control-point.c | 9 ++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index fa29d65..0ffbc3f 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -183,7 +183,9 @@ on_context_unavailable (GUPnPContextManager *manager,
GUPnPControlPoint *cp;
cp = GUPNP_CONTROL_POINT (l->data);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
obj_context = gupnp_control_point_get_context (cp);
+ G_GNUC_END_IGNORE_DEPRECATIONS
} else if (GUPNP_IS_ROOT_DEVICE (l->data)) {
GUPnPDeviceInfo *info;
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
index aded784..deb4b42 100644
--- a/libgupnp/gupnp-control-point.c
+++ b/libgupnp/gupnp-control-point.c
@@ -87,8 +87,9 @@ get_description_url_data_free (GetDescriptionURLData *data)
GUPnPContext *context;
SoupSession *session;
-
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
context = gupnp_control_point_get_context (data->control_point);
+ G_GNUC_END_IGNORE_DEPRECATIONS
session = gupnp_context_get_session (context);
soup_session_cancel_message (session,
@@ -303,7 +304,9 @@ create_and_report_service_proxy (GUPnPControlPoint *control_point,
priv = gupnp_control_point_get_instance_private (control_point);
factory = gupnp_control_point_get_resource_factory (control_point);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
context = gupnp_control_point_get_context (control_point);
+ G_GNUC_END_IGNORE_DEPRECATIONS
/* Create proxy */
proxy = gupnp_resource_factory_create_service_proxy (factory,
@@ -342,7 +345,9 @@ create_and_report_device_proxy (GUPnPControlPoint *control_point,
priv = gupnp_control_point_get_instance_private (control_point);
factory = gupnp_control_point_get_resource_factory (control_point);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
context = gupnp_control_point_get_context (control_point);
+ G_GNUC_END_IGNORE_DEPRECATIONS
proxy = gupnp_resource_factory_create_device_proxy (factory,
context,
@@ -700,7 +705,9 @@ load_description (GUPnPControlPoint *control_point,
GetDescriptionURLData *data;
char *local_description = NULL;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
context = gupnp_control_point_get_context (control_point);
+ G_GNUC_END_IGNORE_DEPRECATIONS
session = gupnp_context_get_session (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]