summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-01-01 15:51:47 +0100
committerJens Georg <mail@jensge.org>2022-01-01 16:13:22 +0100
commit5e0af4b6741f891eb5650a1f0eb550d50535a48e (patch)
tree9685edae68929bc11a511cde06b8a90efe6e8bea
parentf809b024be7a2142c6902efbcc403a7a4c68ea90 (diff)
downloadgupnp-5e0af4b6741f891eb5650a1f0eb550d50535a48e.tar.gz
ServiceProxyAction: Expose the set function
That was actually forgotten in the last release
-rw-r--r--doc/gupnp-sections.txt1
-rw-r--r--libgupnp/gupnp-service-proxy-action.c14
-rw-r--r--libgupnp/gupnp-service-proxy.h6
3 files changed, 21 insertions, 0 deletions
diff --git a/doc/gupnp-sections.txt b/doc/gupnp-sections.txt
index f314f7e..05bda68 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 733e1ab..15ba28c 100644
--- a/libgupnp/gupnp-service-proxy-action.c
+++ b/libgupnp/gupnp-service-proxy-action.c
@@ -782,6 +782,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
@@ -217,6 +217,12 @@ 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,
...) G_GNUC_NULL_TERMINATED;