diff options
author | Alistair Thomas <astavale@yahoo.co.uk> | 2016-06-11 14:02:32 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-03-08 19:58:38 +0100 |
commit | 29246209a1677a4133ac6b7a1fc51f66dc9b1b16 (patch) | |
tree | 9ed9a59c15354da06cfe1c257a4dbb5083a1cd53 | |
parent | c4f2d4878463e5615dcc5186380b711755556053 (diff) | |
download | vala-29246209a1677a4133ac6b7a1fc51f66dc9b1b16.tar.gz |
enchant: Minor fixes
Remove superfluous cname_prefix namespace-attribute.
Add get_version() and fix array-length-type of Dict.suggest().
https://bugzilla.gnome.org/show_bug.cgi?id=767522
-rw-r--r-- | vapi/enchant.vapi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vapi/enchant.vapi b/vapi/enchant.vapi index ac0b00d47..881c76a51 100644 --- a/vapi/enchant.vapi +++ b/vapi/enchant.vapi @@ -1,5 +1,7 @@ -[CCode (cname_prefix = "enchant_", cheader_filename = "enchant.h")] +[CCode (cheader_filename = "enchant.h")] namespace Enchant { + public unowned string get_version (); + public delegate void BrokerDescribeFn (string provider_name, string provider_desc, string provider_dll_file); public delegate void DictDescribeFn (string lang_tag, string provider_name, string provider_desc, string provider_file); @@ -22,6 +24,7 @@ namespace Enchant { [Compact] public class Dict { public int check (string word, long len = -1); + [CCode (array_length_type = "size_t")] public unowned string[] suggest (string word, long len = -1); public void free_string_list ([CCode (array_length = false)] string[] string_list); public void add_to_session (string word, long len = -1); |