[gupnp/wip/phako/47] service-proxy: Fix introspection annotation
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/phako/47] service-proxy: Fix introspection annotation
- Date: Thu, 20 May 2021 10:58:32 +0000 (UTC)
commit 0c66d01b78d0d6ea83e0be50ce4ef073f59923c9
Author: Jens Georg <mail jensge org>
Date: Thu May 20 12:28:51 2021 +0200
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
libgupnp/gupnp-service-proxy.c | 8 ++++----
1 file 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]