summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-09-04 16:53:07 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-09-04 17:11:33 +0200
commit0da2e2a2016fe0d602b90380283099d6281eb99d (patch)
tree33f561147408398f502750bb173fad5b4ec314e2
parentcf2233e01b6e06d9a1c8f26a1894a0adc29dca76 (diff)
downloadvala-0da2e2a2016fe0d602b90380283099d6281eb99d.tar.gz
glib-2.0: OptionEntry[] params are null-terminated
-rw-r--r--vapi/glib-2.0.vapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 50f700152..ec1024261 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3755,7 +3755,7 @@ namespace GLib {
public bool get_ignore_unknown_options ();
[Version (since = "2.14")]
public string get_help (bool main_help, OptionGroup? group);
- public void add_main_entries ([CCode (array_length = false)] OptionEntry[] entries, string? translation_domain);
+ public void add_main_entries ([CCode (array_length = false, array_null_terminated = true)] OptionEntry[] entries, string? translation_domain);
public void add_group (owned OptionGroup group);
public void set_main_group (owned OptionGroup group);
public unowned OptionGroup get_main_group ();
@@ -3814,7 +3814,7 @@ namespace GLib {
#endif
public class OptionGroup {
public OptionGroup (string name, string description, string help_description, void* user_data = null, DestroyNotify? destroy = null);
- public void add_entries ([CCode (array_length = false)] OptionEntry[] entries);
+ public void add_entries ([CCode (array_length = false, array_null_terminated = true)] OptionEntry[] entries);
public void set_parse_hooks (OptionParseFunc? pre_parse_func, OptionParseFunc? post_parse_hook);
public void set_error_hook (OptionErrorFunc? error_func);
public void set_translate_func (owned TranslateFunc? func);