summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2021-05-20 12:28:51 +0200
committerJens Georg <mail@jensge.org>2021-05-24 07:54:30 +0000
commit0cedf004b4730da8d8533ae6a38efa97553430f1 (patch)
tree8a6ad14760ea14ef340faee760c88a87cd1449e3
parent25939431b201a9f614dcf0745be947fcf69227ff (diff)
downloadgupnp-0cedf004b4730da8d8533ae6a38efa97553430f1.tar.gz
service-proxy: Fix introspection annotation
call_action will not add a reference to action but just pass it through so it is really transfer none call_action_finish does not add a reference to the returned action, so it is also transfer none for the return value
-rw-r--r--libgupnp/gupnp-service-proxy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 56bb438..6e09456 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -2066,7 +2066,7 @@ gupnp_service_proxy_get_subscribed (GUPnPServiceProxy *proxy)
/**
* gupnp_service_proxy_call_action_async:
* @proxy: (transfer none): A #GUPnPServiceProxy
- * @action: An action
+ * @action: (transfer none): A #GUPnPServiceProxyAction to call
* @cancellable: (allow-none): A #GCancellable which can be used to cancel the
* current action call
* @callback: (scope async): A #GAsyncReadyCallback to call when the action is
@@ -2115,7 +2115,7 @@ gupnp_service_proxy_call_action_async (GUPnPServiceProxy *proxy,
* Finish an asynchronous call initiated with
* gupnp_service_proxy_call_action_async().
*
- * Returns: %NULL, if the call had an error, the action otherwise.
+ * Returns: (nullable) (transfer none): %NULL, if the call had an error, the action otherwise.
*/
GUPnPServiceProxyAction *
gupnp_service_proxy_call_action_finish (GUPnPServiceProxy *proxy,
@@ -2130,14 +2130,14 @@ gupnp_service_proxy_call_action_finish (GUPnPServiceProxy *proxy,
/**
* gupnp_service_proxy_call_action:
* @proxy: (transfer none): A #GUPnPServiceProxy
- * @action: An action
+ * @action: (transfer none): An action
* @cancellable: (allow-none): A #GCancellable which can be used to cancel the
* current action call
* @error: (allow-none): Return location for a #GError, or %NULL.
*
* Synchronously call the @action on the remote UPnP service.
*
- * Returns: %NULL on error, @action if successful.
+ * Returns: (nullable)(transfer none): %NULL on error, @action if successful.
*/
GUPnPServiceProxyAction *
gupnp_service_proxy_call_action (GUPnPServiceProxy *proxy,