[libvirt-glib] [PATCH 2/3] Add "transfer none" annotation to argv parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This makes the parameter to be passed "unowned" in Vala.

Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
---
 libvirt-gconfig/libvirt-gconfig-main.c | 4 ++--
 libvirt-glib/libvirt-glib-main.c       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libvirt-gconfig/libvirt-gconfig-main.c b/libvirt-gconfig/libvirt-gconfig-main.c
index 32e5777..043a402 100644
--- a/libvirt-gconfig/libvirt-gconfig-main.c
+++ b/libvirt-gconfig/libvirt-gconfig-main.c
@@ -33,7 +33,7 @@
 /**
  * gvir_config_init:
  * @argc: (inout): pointer to application's argc
- * @argv: (inout) (array length=argc) (allow-none): pointer to application's argv
+ * @argv: (inout) (array length=argc) (allow-none) (transfer none): pointer to application's argv
  */
 void gvir_config_init(int *argc,
                       char ***argv)
@@ -58,7 +58,7 @@ static void gvir_log_handler(const gchar *log_domain G_GNUC_UNUSED,
 /**
  * gvir_config_init_check:
  * @argc: (inout): pointer to application's argc
- * @argv: (inout) (array length=argc) (allow-none): pointer to application's argv
+ * @argv: (inout) (array length=argc) (allow-none) (transfer none): pointer to application's argv
  * @err: pointer to a #GError to which a message will be posted on error
  */
 gboolean gvir_config_init_check(int *argc G_GNUC_UNUSED,
diff --git a/libvirt-glib/libvirt-glib-main.c b/libvirt-glib/libvirt-glib-main.c
index 3389de9..f33ee4a 100644
--- a/libvirt-glib/libvirt-glib-main.c
+++ b/libvirt-glib/libvirt-glib-main.c
@@ -72,7 +72,7 @@ gvir_error_func(gpointer opaque G_GNUC_UNUSED,
  * gvir_init:
  * @argc: (inout): Address of the argc parameter of your main() function (or 0
  *     if argv is NULL). This will be changed if any arguments were handled.
- * @argv: (array length=argc) (inout) (allow-none): Address of the
+ * @argv: (array length=argc) (inout) (allow-none) (transfer none): Address of the
  *     <parameter>argv</parameter> parameter of main(), or %NULL. Any options
  *     understood by GTK+ are stripped before return.
  *
@@ -119,7 +119,7 @@ static void gvir_log_handler(const gchar *log_domain G_GNUC_UNUSED,
  * gvir_init_check:
  * @argc: (inout): Address of the argc parameter of your main() function (or 0
  *     if argv is NULL). This will be changed if any arguments were handled.
- * @argv: (array length=argc) (inout) (allow-none): Address of the
+ * @argv: (array length=argc) (inout) (allow-none) (transfer none): Address of the
  *     <parameter>argv</parameter> parameter of main(), or %NULL. Any options
  *     understood by GTK+ are stripped before return.
  * @err: filled with the error information if initialized failed.
-- 
1.7.11.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]