[vala/0.34] glib-2.0: OptionEntry[] params are null-terminated
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] glib-2.0: OptionEntry[] params are null-terminated
- Date: Thu, 7 Sep 2017 12:42:44 +0000 (UTC)
commit ba0db17c75f7bcd7e73fb769995cb85f5eae2e9e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 4 16:53:07 2017 +0200
glib-2.0: OptionEntry[] params are null-terminated
vapi/glib-2.0.vapi | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 2ccdfea..797c33f 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3653,7 +3653,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 ();
@@ -3712,7 +3712,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]