3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.1 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef __DB_DEFINE_H__
19 #define __DB_DEFINE_H__
30 #define LOG_TAG "DB_ALARM"
32 #define DBROOT "/opt/dbspace/"
33 #define DBNAME ".alarm.db"
35 #define DBHandle sqlite3
37 #define IS_EQUAL(a, b) ((a) == (b))
38 #define IS_STR_EQUAL(a, b) (!strcmp(a, b))
39 //******************define:free *************************************
40 #define FREEIF(p) if (p) {free(p); p = NULL; }
41 #define GFREEIF(p) if (p) {g_free(p); p = NULL; }
43 #endif //__DB_DEFINE_H__