RETV_IF(NULL == view_uri, CONTACTS_ERROR_INVALID_PARAMETER);
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_init();
+#endif
+
com_filter = calloc(1, sizeof(ctsvc_composite_filter_s));
RETV_IF(NULL == com_filter, CONTACTS_ERROR_OUT_OF_MEMORY);
EXPORT_API int contacts_filter_destroy(contacts_filter_h filter)
{
RETV_IF(NULL == filter, CONTACTS_ERROR_INVALID_PARAMETER);
-
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_deinit();
+#endif
return __ctsvc_composite_filter_destroy((ctsvc_composite_filter_s*)filter);
}
RETV_IF(NULL == view_uri || NULL == out_query, CONTACTS_ERROR_INVALID_PARAMETER);
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_init();
+#endif
+
query = calloc(1, sizeof(ctsvc_query_s));
RETV_IF(NULL == query, CONTACTS_ERROR_OUT_OF_MEMORY);
RETV_IF(NULL == query, CONTACTS_ERROR_INVALID_PARAMETER);
s_query = (ctsvc_query_s*)query;
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_deinit();
+#endif
+
if (s_query->filter)
contacts_filter_destroy((contacts_filter_h)s_query->filter);
RETV_IF(NULL == out_record, CONTACTS_ERROR_INVALID_PARAMETER);
*out_record = NULL;
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_init();
+#endif
+
r_type = ctsvc_view_get_record_type(view_uri);
RETVM_IF(CTSVC_RECORD_INVALID == r_type, CONTACTS_ERROR_INVALID_PARAMETER,
"view_uri(%s)", view_uri);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
s_record = (ctsvc_record_s*)record;
+#ifdef _CONTACTS_IPC_CLIENT
+ ctsvc_view_uri_deinit();
+#endif
if (s_record && s_record->plugin_cbs && s_record->plugin_cbs->destroy)
return s_record->plugin_cbs->destroy(record, delete_child);
__ctsvc_view_ref_count--;
if (__ctsvc_view_ref_count != 0)
return;
+#endif
if (NULL == __ctsvc_view_uri_hash) {
ERR("contacts-service is not initialized");
g_hash_table_destroy(__ctsvc_view_uri_hash);
__ctsvc_view_uri_hash = NULL;
-#endif
+
}
ctsvc_record_type_e ctsvc_view_get_record_type(const char *view_uri)