tizen 2.3 release
[framework/appfw/libslp-db-util.git] / include / db-util-common.h
1 /*
2  * libslp-db-util
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hakjoo Ko <hakjoo.ko@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __DB_UTIL_FUNC_H__
23 #define __DB_UTIL_FUNC_H__
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #include <stdio.h>
30 #include <stdlib.h>
31 #include <stdbool.h>
32 #include <sqlite3.h>
33
34 /**
35  * @addtogroup DB_UTIL
36  * @{
37  */
38
39 #ifndef EXPORT_API
40 #define EXPORT_API __attribute__ ((visibility("default")))
41 #endif
42
43 #ifndef PARAM_IN
44 #define PARAM_IN
45 #endif
46
47 #ifndef PARAM_OUT
48 #define PARAM_OUT
49 #endif
50
51 /**
52  * @brief Enumeration of error code.
53  */
54 typedef enum {
55         DB_UTIL_ERROR = SQLITE_ERROR,   /**< Error */
56         DB_UTIL_OK = SQLITE_OK, /**< Successful */
57 } db_util_err;
58
59 /**
60  * @}
61  */
62
63 #ifdef __cplusplus
64 }
65 #endif
66 #endif  /* __DB_UTIL_FUNC_H__ */