]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
readline: fix the signature of CompletionFunc
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 7 Sep 2010 15:37:00 +0000 (16:37 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 17 Sep 2010 16:26:06 +0000 (18:26 +0200)
vapi/readline.vapi

index ece78c67b44c0a5d7913e0d7cff8a9b0a0d7077b..c0335cc21c96eb1e20ce583511f73284008cec00 100644 (file)
@@ -25,8 +25,8 @@ namespace Readline {
 
        [CCode (cname = "rl_command_func_t", has_target = false)]
        public delegate int      CommandFunc (int a, int b);
-       [CCode (cname = "rl_completion_func_t", has_target = false)]
-       public delegate string[] CompletionFunc (string str, int a, int b);
+       [CCode (cname = "rl_completion_func_t", has_target = false, array_length = false, array_null_terminated = true)]
+       public delegate string[]? CompletionFunc (string str, int a, int b);
        [CCode (cname = "rl_quote_func_t", has_target = false)]
        public delegate string?  CompentryFunc (string str, int a);
        [CCode (cname = "rl_quote_func_t", has_target = false)]