Fix license
[platform/core/uifw/anthy.git] / src-diclib / diclib.c
1 #include <sys/types.h>
2 #include <netinet/in.h>
3
4 /**/
5 #include <anthy/diclib.h>
6 #include <anthy/xstr.h>
7 #include <anthy/alloc.h>
8 #include <anthy/conf.h>
9 #include "diclib_inner.h"
10
11
12 unsigned int
13 anthy_dic_ntohl(unsigned int a)
14 {
15   return ntohl(a);
16 }
17
18 unsigned int
19 anthy_dic_htonl(unsigned int a)
20 {
21   return htonl(a);
22 }
23
24 int
25 anthy_init_diclib()
26 {
27   anthy_do_conf_init();
28   if (anthy_init_file_dic() == -1) {
29     return -1;
30   }
31   anthy_init_xchar_tab();
32   anthy_init_xstr();
33   return 0;
34 }
35
36 void
37 anthy_quit_diclib()
38 {
39   anthy_quit_allocator();
40   anthy_quit_xstr();
41   anthy_conf_free();
42 }