ADD_EXECUTABLE(${DAEMON}-tv ${DAEMON_SRCS})
ADD_DEPENDENCIES(${DAEMON}-tv GENERATED_DBUS_CODE)
-SET_TARGET_PROPERTIES(${DAEMON}-tv PROPERTIES COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}/without_contacts")
+SET_TARGET_PROPERTIES(${DAEMON}-tv PROPERTIES COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}/without_contacts -DTIZEN_FEATURE_NO_CONTACTS")
TARGET_LINK_LIBRARIES(${DAEMON}-tv ${daemon_pkgs_LIBRARIES})
IF(${TIZEN_PROFILE_TV} EQUAL 0)
static pthread_mutex_t cal_mutex_account = PTHREAD_MUTEX_INITIALIZER;
static account_subscribe_h cal_account_h = NULL;
+#ifndef TIZEN_FEATURE_NO_CONTACTS
static bool _noti_cb(const char* event_type, int account_id,
void* user_data)
{
}
return true;
}
+#endif
int cal_server_account_init(void)
{
RETV_IF(NULL == out_insert, CALENDAR_ERROR_INVALID_PARAMETER);
+#ifndef TIZEN_FEATURE_NO_CONTACTS
contacts_record_h contact = NULL;
+#endif
ret = contacts_db_get_record(_contacts_contact._uri, id, &contact);
if (CONTACTS_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
}
if (0 < address_book_id) { /* default phone addressbook is 0 */
DBG("address_book_id(%d)", address_book_id);
+#ifndef TIZEN_FEATURE_NO_CONTACTS
contacts_record_h address_book = NULL;
+#endif
ret = contacts_db_get_record(_contacts_address_book._uri, address_book_id, &address_book);
if (CONTACTS_ERROR_NONE != ret) {
/* LCOV_EXCL_START */
DBG("account_id[%d]", account_id);
}
+#ifndef TIZEN_FEATURE_NO_CONTACTS
int index = 0;
contacts_record_h contact_event = NULL;
+#endif
while (CONTACTS_ERROR_NONE == contacts_record_get_child_record_at_p(contact,
_contacts_contact.event, index++, &contact_event)) {
int type = 0;
int count = 0;
contacts_list_first(contacts_list);
do {
+#ifndef TIZEN_FEATURE_NO_CONTACTS
contacts_record_h updated = NULL;
+#endif
contacts_list_get_current_record_p(contacts_list, &updated);
int contact_id = 0;
calendar_query_destroy(query);
}
+#ifndef TIZEN_FEATURE_NO_CONTACTS
static void _changed_cb(const char* view_uri, void *user_data)
{
cal_server_contacts_start();
}
-
+#endif
static int cal_server_contacts_init(void)
{
int ret = 0;