Commit 2717d859 authored by Miloslav Trmač's avatar Miloslav Trmač

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
parent 794d6cad
......@@ -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,
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment