From 765dabd0050d84c2529dae2870fc9cd5907b5042 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 4 Aug 2016 13:38:24 +0200 Subject: [PATCH] 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 --- libnm/nm-client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libnm/nm-client.c b/libnm/nm-client.c index 4b375581c1..64c0d9de1d 100644 --- a/libnm/nm-client.c +++ b/libnm/nm-client.c @@ -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 *