File: enchant.vapi

package info (click to toggle)
vala 0.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,756 kB
  • ctags: 12,353
  • sloc: ansic: 116,516; sh: 9,897; yacc: 1,218; makefile: 837; xml: 657; lex: 285
file content (34 lines) | stat: -rw-r--r-- 1,651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[CCode (cname_prefix = "enchant_", cheader_filename = "enchant.h")]
namespace Enchant {
	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);

	[CCode (free_function = "enchant_broker_free")]
	public class Broker {
		[CCode (cname = "enchant_broker_init")]
		public Broker ();

		public weak Dict request_dict (weak string tag);	// FIXME integrate with memory manager
		public weak Dict request_pwl_dict (weak string pwl);	// FIXME integrate with memory manager
		public void free_dict (Dict dict); 			// FIXME integrate with memory manager
		public int dict_exists (weak string tag);
		public void set_ordering (weak string tag, weak string ordering);
		public void describe (BrokerDescribeFn fn);
		public void list_dicts (DictDescribeFn fn);
		public weak string get_error ();
	}

	public class Dict {
		public int check (weak string word, long len = -1);
		public weak string[] suggest (weak string word, long len = -1);	// FIXME integrate with memory manager
		[NoArrayLength ()]
		public void free_string_list (weak string[] string_list); 	// FIXME integrate with memory manager
		public void add_to_session (weak string word, long len = -1);
		public int is_in_session (weak string word, long len = -1);
		public void store_replacement (weak string mis, long mis_len, weak string cor, long cor_len);
		public void add_to_pwl (weak string word, long len = -1);
		public void describe (DictDescribeFn fn);
		[NoArrayLength ()]
		public weak string get_error ();
	}
}