3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (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 __KIES_DEFINE_H__
19 #define __KIES_DEFINE_H__
21 #include "kies_dlog.h"
27 #define LOG_TAG "KIES_ALARM"
29 #define MAX_FILE_LENGTH 256
31 #define IS_EQUAL(a, b) ((a) == (b))
32 #define IS_STR_EQUAL(a, b) (!strcmp(a, b))
33 #define FCLOSE_IF(p) if (p) {fclose(p); p = NULL; }
34 #define FREE_ADLIST(p) if (p) {alarmdb_free_data_list(p); p = NULL; }
43 #define SET_TIME_DATA_T(pTime_data, YEAR, MONTH, DAY, HOUR, MIN, SEC) \
45 (pTime_data)->year = (YEAR);\
46 (pTime_data)->month = (MONTH);\
47 (pTime_data)->day = (DAY);\
48 (pTime_data)->hour = (HOUR);\
49 (pTime_data)->min = (MIN);\
50 (pTime_data)->sec = (SEC);\
53 //#define PKGNAME "kies_alarm"
54 //#define ALARMRING_PKGNAME "org.tizen.alarmring"
55 #endif //__KIES_DEFINE_H__