[gupnp/gupnp-1.4] ControlPoint: Deprecate ControlPoint.get_context
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.4] ControlPoint: Deprecate ControlPoint.get_context
- Date: Wed, 5 Jan 2022 08:46:57 +0000 (UTC)
commit ac80d61f347550c5abf463a2ea7c232ca5972807
Author: Jens Georg <mail jensge org>
Date: Wed Jan 5 09:43:51 2022 +0100
ControlPoint: Deprecate ControlPoint.get_context
That is just a shallow wrapper around ResourceGroup.get_client
libgupnp/gupnp-control-point.c | 1 +
libgupnp/gupnp-control-point.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
index dc04732..aded784 100644
--- a/libgupnp/gupnp-control-point.c
+++ b/libgupnp/gupnp-control-point.c
@@ -1191,6 +1191,7 @@ gupnp_control_point_new_full (GUPnPContext *context,
* Get the #GUPnPControlPoint associated with @control_point.
*
* Returns: (transfer none): The #GUPnPContext.
+ * Deprecated: 1.4.1: Use gssdp_resource_browser_get_client() instead.
**/
GUPnPContext *
gupnp_control_point_get_context (GUPnPControlPoint *control_point)
diff --git a/libgupnp/gupnp-control-point.h b/libgupnp/gupnp-control-point.h
index 292e79f..5d42c24 100644
--- a/libgupnp/gupnp-control-point.h
+++ b/libgupnp/gupnp-control-point.h
@@ -58,7 +58,7 @@ gupnp_control_point_new_full (GUPnPContext *context,
GUPnPResourceFactory *factory,
const char *target);
-GUPnPContext *
+G_DEPRECATED_FOR (gssdp_resource_browser_get_client) GUPnPContext *
gupnp_control_point_get_context (GUPnPControlPoint *control_point);
const GList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]