[gupnp] Deprecate {begin,send}_action_hash
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Deprecate {begin,send}_action_hash
- Date: Sat, 30 Nov 2013 09:52:46 +0000 (UTC)
commit 423e5e89f25e366839ea66a7ea658ba0509826c2
Author: Jens Georg <mail jensge org>
Date: Sat Oct 19 05:36:05 2013 +0200
Deprecate {begin,send}_action_hash
They cannot guarantee the order of arguments which breaks interaction with
DLNA-complient devices.
The use of end_action_hash is fine, though. It can be paired with all of the
begin_action_* functions.
https://bugzilla.gnome.org/show_bug.cgi?id=710491
libgupnp/gupnp-service-proxy.c | 13 +++++++++++++
libgupnp/gupnp-service-proxy.h | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 4991707..824896c 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -631,7 +631,13 @@ out:
* See gupnp_service_proxy_send_action(); this version takes a pair of
* #GHashTable<!-- -->s for runtime determined parameter lists.
*
+ * Do not use this function in newly written code; it cannot guarantee the
+ * order of arguments and thus breaks interaction with many devices.
+ *
* Return value: %TRUE if sending the action was succesful.
+ *
+ * Deprecated: 0.20.9: Use gupnp_service_proxy_send_action() or
+ * gupnp_service_proxy_send_action_list()
**/
gboolean
gupnp_service_proxy_send_action_hash (GUPnPServiceProxy *proxy,
@@ -1103,9 +1109,16 @@ gupnp_service_proxy_begin_action_list
* See gupnp_service_proxy_begin_action(); this version takes a #GHashTable
* for runtime generated parameter lists.
*
+ * Do not use this function in newly written code; it cannot guarantee the
+ * order of arguments and thus breaks interaction with many devices.
+ *
* Return value: (transfer none): A #GUPnPServiceProxyAction handle. This will
* be freed when calling gupnp_service_proxy_cancel_action() or
* gupnp_service_proxy_end_action_hash().
+ *
+ * Deprecated: 0.20.9: Use gupnp_service_proxy_send_action() or
+ * gupnp_service_proxy_send_action_list()
+ *
**/
GUPnPServiceProxyAction *
gupnp_service_proxy_begin_action_hash
diff --git a/libgupnp/gupnp-service-proxy.h b/libgupnp/gupnp-service-proxy.h
index a11057a..1cdebe6 100644
--- a/libgupnp/gupnp-service-proxy.h
+++ b/libgupnp/gupnp-service-proxy.h
@@ -136,7 +136,7 @@ gupnp_service_proxy_send_action_hash
const char *action,
GError **error,
GHashTable *in_hash,
- GHashTable *out_hash);
+ GHashTable *out_hash) G_GNUC_DEPRECATED;
gboolean
@@ -180,7 +180,7 @@ gupnp_service_proxy_begin_action_hash
const char *action,
GUPnPServiceProxyActionCallback callback,
gpointer user_data,
- GHashTable *hash);
+ GHashTable *hash) G_GNUC_DEPRECATED;
gboolean
gupnp_service_proxy_end_action (GUPnPServiceProxy *proxy,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]