[gupnp/gupnp-1.4] ServiceProxyAction: Expose the set function



commit 9cf06a0280dd98be4d6328132d9df085ca1ac82a
Author: Jens Georg <mail jensge org>
Date:   Sat Jan 1 15:51:47 2022 +0100

    ServiceProxyAction: Expose the set function
    
    That was actually forgotten in the last release

 doc/gupnp-sections.txt                |  1 +
 libgupnp/gupnp-service-proxy-action.c | 14 ++++++++++++++
 libgupnp/gupnp-service-proxy.h        |  6 ++++++
 3 files changed, 21 insertions(+)
---
diff --git a/doc/gupnp-sections.txt b/doc/gupnp-sections.txt
index 980b4c6..acff531 100644
--- a/doc/gupnp-sections.txt
+++ b/doc/gupnp-sections.txt
@@ -97,6 +97,7 @@ gupnp_service_proxy_action_new
 gupnp_service_proxy_action_new_from_list
 gupnp_service_proxy_action_ref
 gupnp_service_proxy_action_unref
+gupnp_service_proxy_action_set
 gupnp_service_proxy_action_get_result
 gupnp_service_proxy_action_get_result_hash
 gupnp_service_proxy_action_get_result_list
diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c
index 4d9336c..ea61986 100644
--- a/libgupnp/gupnp-service-proxy-action.c
+++ b/libgupnp/gupnp-service-proxy-action.c
@@ -776,6 +776,20 @@ gupnp_service_proxy_action_get_result_valist (GUPnPServiceProxyAction *action,
         return result;
 }
 
+/**
+ * gupnp_service_proxy_action_set:
+ * @action: the action to modify
+ * @key: the name of the value to modify
+ * @value: the new value of @key
+ * @error: (nullable): a return location for an #GError
+ *
+ * Update the value of @key to @value.
+ *
+ * @key needs to already exist in @action.
+ *
+ * Returns: true if successfully modified, false otherwise
+ * Since: 1.4.0
+ */
 gboolean
 gupnp_service_proxy_action_set (GUPnPServiceProxyAction *action,
                                 const char *key,
diff --git a/libgupnp/gupnp-service-proxy.h b/libgupnp/gupnp-service-proxy.h
index 86ff47e..107416a 100644
--- a/libgupnp/gupnp-service-proxy.h
+++ b/libgupnp/gupnp-service-proxy.h
@@ -216,6 +216,12 @@ gupnp_service_proxy_action_unref (GUPnPServiceProxyAction *action);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUPnPServiceProxyAction,
                                gupnp_service_proxy_action_unref)
 
+gboolean
+gupnp_service_proxy_action_set (GUPnPServiceProxyAction *action,
+                                const char *key,
+                                const GValue *value,
+                                GError **error);
+
 gboolean
 gupnp_service_proxy_action_get_result (GUPnPServiceProxyAction *action,
                                        GError                 **error,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]