0810 version
[apps/native/sample/adventure.git] / inc / util.h
1 #ifndef __ADVENTURE_INTERNAL_H__
2 #define __ADVENTURE_INTERNAL_H__
3
4 /* Multi-language */
5 #if !defined(_)
6 #define _(str) gettext(str)
7 #endif
8 #define gettext_noop(str) (str)
9 #define N_(str) gettext_noop(str)
10 #define D_(str) dgettext("sys_string", str)
11
12 /* SIZE */
13 #define FILE_LEN 256
14 #define BUFSZE 1024
15 #define PATH_LEN 1024
16
17 /* Build */
18 #define HAPI __attribute__((visibility("hidden")))
19
20 /* DATA */
21 #define DATA_KEY_SELECTING "selecting"
22 #define DATA_KEY_RESULT "result"
23
24 /* Return values */
25 typedef enum {
26         APPL_ERROR_NONE = 0,
27         APPL_ERROR_FAIL = -1,
28         APPL_ERROR_DB_FAILED = -2,
29         APPL_ERROR_OUT_OF_MEMORY = -3,
30         APPL_ERROR_INVALID_PARAMETER = -4,
31         APPL_ERROR_NO_DATA = -5,
32 } appl_error_e;
33
34 #endif /* __ADVENTURE_INTERNAL_H__ */