]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
enchant: Minor fixes
authorAlistair Thomas <astavale@yahoo.co.uk>
Sat, 11 Jun 2016 13:02:32 +0000 (14:02 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 8 Mar 2017 18:58:38 +0000 (19:58 +0100)
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

vapi/enchant.vapi

index ac0b00d478a208ef87d67af25e2033610cc22ea7..881c76a5140e0a5f9d1042745c3a87766f25bd3b 100644 (file)
@@ -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);