[vala/0.34] enchant: Minor fixes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] enchant: Minor fixes
- Date: Thu, 16 Mar 2017 07:16:24 +0000 (UTC)
commit 76a14eabbb9d330b5910db38116829df0a1bf4fa
Author: Alistair Thomas <astavale yahoo co uk>
Date: Sat Jun 11 14:02:32 2016 +0100
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
vapi/enchant.vapi | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vapi/enchant.vapi b/vapi/enchant.vapi
index ac0b00d..881c76a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]