[Coding Style] Polish map.c
[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 #define GROUP_INFO "group_info"
24 #define DATA_KEY_BEST_TIME "best_time"
25
26 /* Return values */
27 typedef enum {
28         APPL_ERROR_NONE = 0,
29         APPL_ERROR_FAIL = -1,
30         APPL_ERROR_DB_FAILED = -2,
31         APPL_ERROR_OUT_OF_MEMORY = -3,
32         APPL_ERROR_INVALID_PARAMETER = -4,
33         APPL_ERROR_NO_DATA = -5,
34 } appl_error_e;
35
36 #endif /* __ADVENTURE_INTERNAL_H__ */