mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 09:30:31 +01:00
libnm: fix introspection annotations for nm_client_load_connections()
Add the "(array zero-terminated=1)" GLib introspection annotation when the parameter is a NULL-terminated string array. https://mail.gnome.org/archives/networkmanager-list/2016-August/msg00017.html Reported-by: Petr Horacek <phoracek@redhat.com>
This commit is contained in:
parent
5c45327056
commit
765dabd005
1 changed files with 4 additions and 4 deletions
|
|
@ -1370,7 +1370,7 @@ nm_client_add_connection_finish (NMClient *client,
|
|||
/**
|
||||
* nm_client_load_connections:
|
||||
* @client: the %NMClient
|
||||
* @filenames: %NULL-terminated array of filenames to load
|
||||
* @filenames: (array zero-terminated=1): %NULL-terminated array of filenames to load
|
||||
* @failures: (out) (transfer full): on return, a %NULL-terminated array of
|
||||
* filenames that failed to load
|
||||
* @cancellable: a #GCancellable, or %NULL
|
||||
|
|
@ -1429,7 +1429,7 @@ load_connections_cb (GObject *object, GAsyncResult *result, gpointer user_data)
|
|||
/**
|
||||
* nm_client_load_connections_async:
|
||||
* @client: the %NMClient
|
||||
* @filenames: %NULL-terminated array of filenames to load
|
||||
* @filenames: (array zero-terminated=1): %NULL-terminated array of filenames to load
|
||||
* @cancellable: a #GCancellable, or %NULL
|
||||
* @callback: (scope async): callback to be called when the operation completes
|
||||
* @user_data: (closure): caller-specific data passed to @callback
|
||||
|
|
@ -1467,8 +1467,8 @@ nm_client_load_connections_async (NMClient *client,
|
|||
/**
|
||||
* nm_client_load_connections_finish:
|
||||
* @client: the %NMClient
|
||||
* @failures: (out) (transfer full): on return, a %NULL-terminated array of
|
||||
* filenames that failed to load
|
||||
* @failures: (out) (transfer full) (array zero-terminated=1): on return, a
|
||||
* %NULL-terminated array of filenames that failed to load
|
||||
* @result: the result passed to the #GAsyncReadyCallback
|
||||
* @error: location for a #GError, or %NULL
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue