From: Philip Withnall Date: Tue, 7 Sep 2010 15:37:00 +0000 (+0100) Subject: readline: fix the signature of CompletionFunc X-Git-Tag: 0.10.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab4376dddcfd328837db8b2f84784a53b9187c3;p=thirdparty%2Fvala.git readline: fix the signature of CompletionFunc --- diff --git a/vapi/readline.vapi b/vapi/readline.vapi index ece78c67b..c0335cc21 100644 --- a/vapi/readline.vapi +++ b/vapi/readline.vapi @@ -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)]