EXPORT_API int contacts_vcard_make_from_contact(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_contact_s *contact;
RETV_IF(NULL == vcard_stream, CONTACTS_ERROR_INVALID_PARAMETER);
*vcard_stream = NULL;
EXPORT_API int contacts_vcard_make_from_my_profile(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_my_profile_s *my_profile;
RETV_IF(NULL == vcard_stream, CONTACTS_ERROR_INVALID_PARAMETER);
*vcard_stream = NULL;
#ifdef _CONTACTS_IPC_CLIENT
EXPORT_API int contacts_vcard_make_from_person(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
ctsvc_person_s *person;
contacts_query_h query = NULL;
EXPORT_API int contacts_vcard_parse_to_contacts(const char *vcard_stream, contacts_list_h *out_contacts)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_record_h record;
contacts_list_h list = NULL;
EXPORT_API int contacts_vcard_parse_to_contact_foreach(const char *vcard_file_name,
contacts_vcard_parse_cb cb, void *data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
contacts_record_h record;
FILE *file;
unsigned int buf_size, len;
EXPORT_API int contacts_vcard_get_entity_count(const char *vcard_file_name, int *count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
FILE *file;
int cnt;
char line[1024] = {0};
EXPORT_API int contacts_vcard_get_limit_size_of_photo(unsigned int *limit_size)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
#ifdef _CONTACTS_IPC_CLIENT
int ret;
bool result = false;
EXPORT_API int contacts_vcard_set_limit_size_of_photo(unsigned int limit_size)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
#ifdef _CONTACTS_IPC_CLIENT
int ret;
bool result = false;