/* * * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef __DB_DEFINE_H__ #define __DB_DEFINE_H__ #include "db-dlog.h" #include #include #include #include //tag #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "DB_ALARM" // #define DBROOT "/opt/dbspace/" #define DBNAME ".alarm.db" // #define DBHandle sqlite3 //equal #define IS_EQUAL(a, b) ((a) == (b)) #define IS_STR_EQUAL(a, b) (!strcmp(a, b)) //******************define:free ************************************* #define FREEIF(p) if (p) {free(p); p = NULL; } #define GFREEIF(p) if (p) {g_free(p); p = NULL; } #endif //__DB_DEFINE_H__