Create devel package not to install header and .pc file in binary
[platform/core/uifw/anthy.git] / anthy / alloc.h
1 /*
2  * ¹½Â¤ÂÎallocator
3  * ¥½¡¼¥¹¥³¡¼¥ÉÃæ¤Ç¤Ïator¤Èά¤¹¤ë¤³¤È¤¬¤¢¤ë
4  */
5 #ifndef _alloc_h_included_
6 #define _alloc_h_included_
7
8 /** ¥¢¥í¥±¡¼¥¿¤Î¥Ï¥ó¥É¥ë */
9 typedef struct allocator_priv * allocator;
10
11 /*
12  * allocator¤òºî¤ë
13  * s: ¹½Â¤ÂΤÎsize(¥Ð¥¤¥È¿ô)
14  * dtor: =destructor ³ÎÊݤ·¤¿¥ª¥Ö¥¸¥§¥¯¥È¤¬²òÊü¤µ¤ì¤ë¤È¤­¤Ë¸Æ¤Ð¤ì¤ë´Ø¿ô
15  *  dtor¤Î°ú¿ô¤Ï²òÊü¤µ¤ì¤ë¥ª¥Ö¥¸¥§¥¯¥È
16  * ÊÖ¤êÃÍ: ºîÀ®¤·¤¿allocator 
17  */
18 allocator anthy_create_allocator(int s, void (*dtor)(void *));
19
20 /*
21  * allocator¤ò²òÊü¤¹¤ë
22  *  ¤³¤ÎºÝ¤Ë¡¢¤³¤Îallocator¤«¤é³ÎÊݤµ¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ÏÁ´¤Æ²òÊü¤µ¤ì¤ë
23  * a: ²òÊü¤¹¤ëallocator
24  */
25 void anthy_free_allocator(allocator a);
26
27 /*
28  * ¥ª¥Ö¥¸¥§¥¯¥È¤ò³ÎÊݤ¹¤ë
29  * a: allocator
30  * ÊÖ¤êÃÍ: ³ÎÊݤ·¤¿¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¢¥É¥ì¥¹
31  */
32 void *anthy_smalloc(allocator a);
33 /*
34  * ¥ª¥Ö¥¸¥§¥¯¥È¤ò²òÊü¤¹¤ë
35  * a: allocator
36  * p: ²òÊü¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¢¥É¥ì¥¹
37  */
38 void anthy_sfree(allocator a, void *p);
39
40 /* Á´¤Æ¤Îallocator¤òÇË´þ¤¹¤ë */
41 void anthy_quit_allocator(void);
42
43 #endif