[grilo] core: Fix annotation of grl_init() to fix vala bindings



commit e8f99d98a58f001984d5f01a6c7395592bff4cf9
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 21 23:54:45 2015 +0100

    core: Fix annotation of grl_init() to fix vala bindings
    
    Trying to pass args (argc/argv) to grl.init() failed in vala with the error:
    error: Argument 1: Cannot pass unowned ref argument to owned reference parameter
            Grl.init (ref args);
                      ^^^^^^^^
    
    We need to mark the argv as "transfer none" to have it match the
    type of args, as done in other GObject libraries with vala bindings.

 src/grilo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grilo.c b/src/grilo.c
index 1ba6973..ce78bc0 100644
--- a/src/grilo.c
+++ b/src/grilo.c
@@ -73,7 +73,7 @@ get_default_plugin_dir (void)
 /**
  * grl_init:
  * @argc: (inout) (allow-none): number of input arguments, length of @argv
- * @argv: (inout) (element-type utf8) (array length=argc) (allow-none): list of arguments
+ * @argv: (inout) (element-type utf8) (array length=argc) (allow-none) (transfer none): list of arguments
  *
  * Initializes the Grilo library
  *


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