Backup : 0813
[apps/native/sample/adventure.git] / new / inc / util.h
1 /*
2
3
4
5
6
7
8
9
10  * Samsung API
11  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd.
12  *
13  * Licensed under the Apache License, Version 2.0 (the License);
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/license/
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an AS IS BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  */
25
26 #ifndef __ADVENTURE_INTERNAL_H__
27 #define __ADVENTURE_INTERNAL_H__
28
29 /* Multi-language */
30 #if !defined(_)
31 #define _(str) gettext(str)
32 #endif
33 #define gettext_noop(str) (str)
34 #define N_(str) gettext_noop(str)
35 #define D_(str) dgettext("sys_string", str)
36
37 /* SIZE */
38 #define FILE_LEN 256
39 #define BUFSZE 1024
40 #define PATH_LEN 1024
41
42 /* Build */
43 #define HAPI __attribute__((visibility("hidden")))
44
45 /* Return values */
46 typedef enum {
47         APPL_ERROR_NONE = 0,
48         APPL_ERROR_FAIL = -1,
49         APPL_ERROR_DB_FAILED = -2,
50         APPL_ERROR_OUT_OF_MEMORY = -3,
51         APPL_ERROR_INVALID_PARAMETER = -4,
52         APPL_ERROR_NO_DATA = -5,
53 } appl_error_e;
54
55 #endif /* __ADVENTURE_INTERNAL_H__ */