Create devel package not to install header and .pc file in binary
[platform/core/uifw/anthy.git] / anthy / dicutil.h
1 /*
2  * Interface for personal dictionary
3  */
4 #ifndef _dicutil_h_included_
5 #define _dicutil_h_included_
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /* ÊÖ¤êÃÍ / anthy_priv_dic_add_entry*/
12 /* OK / Ã±¸ì¤¬ÅÐÏ¿¤Ç¤­¤¿ */
13 #define ANTHY_DIC_UTIL_OK 0
14 /* ¼ºÇÔ / ÅÐÏ¿¤Ë¼ºÇÔ¤·¤¿ */
15 #define ANTHY_DIC_UTIL_ERROR -1
16 /* Æ±¤¸Ã±¸ì¤¬ÅÐÏ¿¤·¤Æ¤¢¤Ã¤¿¡¢ÉÑÅÙ¤À¤±¤ò¾å½ñ¤­ */
17 #define ANTHY_DIC_UTIL_DUPLICATE -2
18 /* ¼­½ñ¤¬Â¸ºß¤·¤Ê¤¤ */
19 #define ANTHY_DIC_UTIL_INVALID -3
20
21 void anthy_dic_util_init(void);
22 void anthy_dic_util_quit(void);
23 void anthy_dic_util_set_personality(const char *);
24 const char *anthy_dic_util_get_anthydir(void);
25 #define HAS_ANTHY_DICUTIL_SET_ENCODING
26 int anthy_dic_util_set_encoding(int );
27
28 void anthy_priv_dic_delete(void);
29 int anthy_priv_dic_select_first_entry(void);
30 int anthy_priv_dic_select_next_entry(void);
31 int anthy_priv_dic_select_entry(const char *);/* not implemented */
32
33 char *anthy_priv_dic_get_index(char *buf, int len);
34 int anthy_priv_dic_get_freq(void);
35 char *anthy_priv_dic_get_wtype(char *buf, int len);
36 char *anthy_priv_dic_get_word(char *buf, int len);
37
38 int anthy_priv_dic_add_entry(const char *yomi, const char *word,
39                              const char *wt, int freq);
40
41 /* experimental and unstable /usr/share/dict/words¤«¤éñ¸ì¤òõ¤¹ */
42 #define HAS_ANTHY_DIC_SEARCH_WORDS_FILE
43 char *anthy_dic_search_words_file(const char *word);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif