summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2013-04-15 23:08:21 +0200
committerMiloslav Trmač <mitr@redhat.com>2013-04-15 23:22:50 +0200
commit2717d8595d33b378f07d51395eaa3b35bb3d8762 (patch)
treeccf764cfc15db255e3514ab8ad46442072cc5e60
parent794d6cadaec33ddebbbabc8d0f80380189b71d88 (diff)
downloadpolkit-2717d8595d33b378f07d51395eaa3b35bb3d8762.tar.gz
Add annotations for element types of returned lists
... to silence warnings when g-ir-scanner warnings are enabled. https://bugs.freedesktop.org/show_bug.cgi?id=63573
-rw-r--r--src/polkit/polkitauthority.c30
-rw-r--r--src/polkitagent/polkitagentlistener.c2
2 files changed, 16 insertions, 16 deletions
diff --git a/src/polkit/polkitauthority.c b/src/polkit/polkitauthority.c
index 9947cf3..75619ab 100644
--- a/src/polkit/polkitauthority.c
+++ b/src/polkit/polkitauthority.c
@@ -680,10 +680,10 @@ polkit_authority_enumerate_actions (PolkitAuthority *authority,
*
* Finishes retrieving all registered actions.
*
- * Returns: (transfer full): A list of #PolkitActionDescription
- * objects or %NULL if @error is set. The returned list should be
- * freed with g_list_free() after each element have been freed with
- * g_object_unref().
+ * Returns: (element-type Polkit.ActionDescription) (transfer full): A list of
+ * #PolkitActionDescription objects or %NULL if @error is set. The returned
+ * list should be freed with g_list_free() after each element have been freed
+ * with g_object_unref().
**/
GList *
polkit_authority_enumerate_actions_finish (PolkitAuthority *authority,
@@ -736,9 +736,9 @@ polkit_authority_enumerate_actions_finish (PolkitAuthority *authority,
* is blocked until a reply is received. See
* polkit_authority_enumerate_actions() for the asynchronous version.
*
- * Returns: (transfer full): A list of #PolkitActionDescription or
- * %NULL if @error is set. The returned list should be freed with
- * g_list_free() after each element have been freed with
+ * Returns: (element-type Polkit.ActionDescription) (transfer full): A list of
+ * #PolkitActionDescription or %NULL if @error is set. The returned list should
+ * be freed with g_list_free() after each element have been freed with
* g_object_unref().
**/
GList *
@@ -1656,10 +1656,10 @@ polkit_authority_enumerate_temporary_authorizations (PolkitAuthority *author
*
* Finishes retrieving all registered actions.
*
- * Returns: (transfer full): A list of #PolkitTemporaryAuthorization
- * objects or %NULL if @error is set. The returned list should be
- * freed with g_list_free() after each element have been freed with
- * g_object_unref().
+ * Returns: (element-type Polkit.TemporaryAuthorization) (transfer full): A
+ * list of #PolkitTemporaryAuthorization objects or %NULL if @error is set. The
+ * returned list should be freed with g_list_free() after each element have
+ * been freed with g_object_unref().
**/
GList *
polkit_authority_enumerate_temporary_authorizations_finish (PolkitAuthority *authority,
@@ -1723,10 +1723,10 @@ polkit_authority_enumerate_temporary_authorizations_finish (PolkitAuthority *aut
* polkit_authority_enumerate_temporary_authorizations() for the
* asynchronous version.
*
- * Returns: (transfer full): A list of #PolkitTemporaryAuthorization
- * objects or %NULL if @error is set. The returned list should be
- * freed with g_list_free() after each element have been freed with
- * g_object_unref().
+ * Returns: (element-type Polkit.TemporaryAuthorization) (transfer full): A
+ * list of #PolkitTemporaryAuthorization objects or %NULL if @error is set. The
+ * returned list should be freed with g_list_free() after each element have
+ * been freed with g_object_unref().
**/
GList *
polkit_authority_enumerate_temporary_authorizations_sync (PolkitAuthority *authority,
diff --git a/src/polkitagent/polkitagentlistener.c b/src/polkitagent/polkitagentlistener.c
index 29a0fdf..8c333af 100644
--- a/src/polkitagent/polkitagentlistener.c
+++ b/src/polkitagent/polkitagentlistener.c
@@ -749,7 +749,7 @@ polkit_agent_listener_class_init (PolkitAgentListenerClass *klass)
* @icon_name: A themed icon name representing the action or %NULL.
* @details: Details describing the action.
* @cookie: The cookie for the authentication request.
- * @identities: A list of #PolkitIdentity objects that the user can choose to authenticate as.
+ * @identities: (element-type Polkit.Identity): A list of #PolkitIdentity objects that the user can choose to authenticate as.
* @cancellable: A #GCancellable.
* @callback: Function to call when the user is done authenticating.
* @user_data: Data to pass to @callback.