2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * This file declares methods and variables which will be used by
19 * stc-db module internally.
24 #ifndef __STC_DB_INTERNAL_H__
25 #define __STC_DB_INTERNAL_H__
29 #endif /* __cplusplus */
31 /*****************************************************************************
33 *****************************************************************************/
35 #define DB_ACTION(command) do { \
36 if ((command) != SQLITE_OK) { \
37 error_code = STC_ERROR_DB_FAILED; \
38 __STC_LOG_FUNC_EXIT__; \
43 /*****************************************************************************
44 * Enumerations and Structures
45 *****************************************************************************/
47 void stc_db_finalize_statistics(void);
49 stc_error_e stc_db_initialize_once(void);
50 sqlite3 *stc_db_get_database(void);
54 #endif /* __cplusplus */
56 #endif /* _STC_DB_INTERNAL_H_ */