static int __ctsvc_ipc_unmarshal_activity(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_activity(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_activity_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_activity_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_activity,
- .marshal_record = __ctsvc_ipc_marshal_activity,
- .get_primary_id = __ctsvc_ipc_marshal_activity_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_activity
};
}
-static int __ctsvc_ipc_marshal_activity_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_ACTIVITY_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_activity_photo(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_activity_photo(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_activity_photo_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_activity_photo_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_activity_photo,
- .marshal_record = __ctsvc_ipc_marshal_activity_photo,
- .get_primary_id = __ctsvc_ipc_marshal_activity_photo_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_activity_photo
};
}
-static int __ctsvc_ipc_marshal_activity_photo_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_ACTIVITY_PHOTO_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_address(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_address(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_address_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_address_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_address,
- .marshal_record = __ctsvc_ipc_marshal_address,
- .get_primary_id = __ctsvc_ipc_marshal_address_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_address
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_address_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_ADDRESS_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-
static int __ctsvc_ipc_unmarshal_addressbook(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_addressbook(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_addressbook_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_addressbook_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_addressbook,
- .marshal_record = __ctsvc_ipc_marshal_addressbook,
- .get_primary_id = __ctsvc_ipc_marshal_addressbook_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_addressbook
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_addressbook_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_ADDRESSBOOK_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-
static int __ctsvc_ipc_unmarshal_company(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_company(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_company_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_company_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_company,
- .marshal_record = __ctsvc_ipc_marshal_company,
- .get_primary_id = __ctsvc_ipc_marshal_company_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_company
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_company_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_COMPANY_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_contact(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_contact(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_contact_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_contact_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_contact,
- .marshal_record = __ctsvc_ipc_marshal_contact,
- .get_primary_id = __ctsvc_ipc_marshal_contact_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_contact
};
static int __ctsvc_ipc_unmarshal_contact(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record)
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_contact_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_CONTACT_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_email(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_email(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_email_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_email_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_email,
- .marshal_record = __ctsvc_ipc_marshal_email,
- .get_primary_id = __ctsvc_ipc_marshal_email_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_email
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_email_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_EMAIL_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_event(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_event(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_event_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_event_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_event,
- .marshal_record = __ctsvc_ipc_marshal_event,
- .get_primary_id = __ctsvc_ipc_marshal_event_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_event
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_event_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_EVENT_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_extension(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_extension(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_extension_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_extension_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_extension,
- .marshal_record = __ctsvc_ipc_marshal_extension,
- .get_primary_id = __ctsvc_ipc_marshal_extension_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_extension
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_extension_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_EXTENSION_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-
static int __ctsvc_ipc_unmarshal_group(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_group(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_group_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_group_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_group,
- .marshal_record = __ctsvc_ipc_marshal_group,
- .get_primary_id = __ctsvc_ipc_marshal_group_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_group
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_group_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_GROUP_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_group_relation(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_group_relation(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_group_relation_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_group_relation_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_group_relation,
- .marshal_record = __ctsvc_ipc_marshal_group_relation,
- .get_primary_id = __ctsvc_ipc_marshal_group_relation_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_group_relation
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_group_relation_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_GROUP_RELATION_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_image(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_image(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_image_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_image_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_image,
- .marshal_record = __ctsvc_ipc_marshal_image,
- .get_primary_id = __ctsvc_ipc_marshal_image_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_image
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_image_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_IMAGE_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
return ret;
}
-int ctsvc_ipc_marshal_record_get_primary_id(const contacts_record_h record,
- unsigned int *property_id, int *id)
-{
- RETVM_IF(NULL == record || NULL == property_id || NULL == id, CONTACTS_ERROR_INVALID_PARAMETER, "Invalid parameter");
-
- ctsvc_record_s *temp = (ctsvc_record_s*)(record);
-
- ctsvc_ipc_marshal_record_plugin_cb_s *plugin_cb = __ctsvc_ipc_marshal_get_plugin_cb(temp->r_type);
-
- RETVM_IF(NULL == plugin_cb || NULL == plugin_cb->get_primary_id, CONTACTS_ERROR_INVALID_PARAMETER, "Invalid parameter");
-
- int ret = plugin_cb->get_primary_id(record, property_id,id);
-
- return ret;
-}
-
int ctsvc_ipc_unmarshal_string(const pims_ipc_data_h ipc_data, char** ppbufchar)
{
int ret = CONTACTS_ERROR_NONE;
*/
typedef int (*ctsvc_ipc_unmarshal_record_cb)(const pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h precord);
typedef int (*ctsvc_ipc_marshal_record_cb)(const contacts_record_h record, pims_ipc_data_h ipc_data);
-typedef int (*ctsvc_ipc_marshal_record_get_primary_id_cb)(const contacts_record_h record, unsigned int *property_id, int *id);
typedef struct {
ctsvc_ipc_unmarshal_record_cb unmarshal_record;
ctsvc_ipc_marshal_record_cb marshal_record;
- ctsvc_ipc_marshal_record_get_primary_id_cb get_primary_id;
} ctsvc_ipc_marshal_record_plugin_cb_s;
int ctsvc_ipc_unmarshal_record(const pims_ipc_data_h ipc_data, contacts_record_h* precord);
int ctsvc_ipc_marshal_record(const contacts_record_h record, pims_ipc_data_h ipc_data);
-int ctsvc_ipc_marshal_record_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
/*
* string
static int __ctsvc_ipc_unmarshal_messenger(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_messenger(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_messenger_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_messenger_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_messenger,
- .marshal_record = __ctsvc_ipc_marshal_messenger,
- .get_primary_id = __ctsvc_ipc_marshal_messenger_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_messenger
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_messenger_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_MESSENGER_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_my_profile(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_my_profile(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_my_profile_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_my_profile_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_my_profile,
- .marshal_record = __ctsvc_ipc_marshal_my_profile,
- .get_primary_id = __ctsvc_ipc_marshal_my_profile_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_my_profile
};
static int __ctsvc_ipc_unmarshal_my_profile(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record)
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_my_profile_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_CONTACT_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-
static int __ctsvc_ipc_unmarshal_name(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_name(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_name_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_name_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_name,
- .marshal_record = __ctsvc_ipc_marshal_name,
- .get_primary_id = __ctsvc_ipc_marshal_name_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_name
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_name_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_NAME_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_nickname(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_nickname(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_nickname_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_nickname_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_nickname,
- .marshal_record = __ctsvc_ipc_marshal_nickname,
- .get_primary_id = __ctsvc_ipc_marshal_nickname_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_nickname
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_nickname_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_NICKNAME_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_note(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_note(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_note_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_note_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_note,
- .marshal_record = __ctsvc_ipc_marshal_note,
- .get_primary_id = __ctsvc_ipc_marshal_note_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_note
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_note_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_NOTE_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_number(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_number(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_number_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_number_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_number,
- .marshal_record = __ctsvc_ipc_marshal_number,
- .get_primary_id = __ctsvc_ipc_marshal_number_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_number
};
static int __ctsvc_ipc_unmarshal_number(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record)
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_number_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_NUMBER_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_person(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_person(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_person_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_person_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_person,
- .marshal_record = __ctsvc_ipc_marshal_person,
- .get_primary_id = __ctsvc_ipc_marshal_person_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_person
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_person_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_PERSON_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_phonelog(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_phonelog(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_phonelog_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_phonelog_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_phonelog,
- .marshal_record = __ctsvc_ipc_marshal_phonelog,
- .get_primary_id = __ctsvc_ipc_marshal_phonelog_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_phonelog
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_phonelog_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_PHONELOG_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_profile(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_profile(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_profile_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_profile_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_profile,
- .marshal_record = __ctsvc_ipc_marshal_profile,
- .get_primary_id = __ctsvc_ipc_marshal_profile_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_profile
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_profile_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_PROFILE_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_relationship(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_relationship(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_relationship_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_relationship_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_relationship,
- .marshal_record = __ctsvc_ipc_marshal_relationship,
- .get_primary_id = __ctsvc_ipc_marshal_relationship_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_relationship
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_relationship_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_RELATIONSHIP_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_result_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_result,
- .marshal_record = __ctsvc_ipc_marshal_result,
- .get_primary_id = NULL
+ .marshal_record = __ctsvc_ipc_marshal_result
};
static int __ctsvc_ipc_unmarshal_sdn(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_sdn(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_sdn_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_sdn_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_sdn,
- .marshal_record = __ctsvc_ipc_marshal_sdn,
- .get_primary_id = __ctsvc_ipc_marshal_sdn_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_sdn
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_sdn_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_SDN_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
static int __ctsvc_ipc_unmarshal_simple_contact(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_simple_contact(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_simple_contact_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_simple_contact_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_simple_contact,
- .marshal_record = __ctsvc_ipc_marshal_simple_contact,
- .get_primary_id = __ctsvc_ipc_marshal_simple_contact_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_simple_contact
};
static int __ctsvc_ipc_unmarshal_simple_contact(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record)
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_simple_contact_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_CONTACT_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_speeddial_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_speeddial,
- .marshal_record = __ctsvc_ipc_marshal_speeddial,
- .get_primary_id = NULL
+ .marshal_record = __ctsvc_ipc_marshal_speeddial
};
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_updated_info_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_updated_info,
- .marshal_record = __ctsvc_ipc_marshal_updated_info,
- .get_primary_id = NULL
+ .marshal_record = __ctsvc_ipc_marshal_updated_info
};
static int __ctsvc_ipc_unmarshal_url(pims_ipc_data_h ipc_data, const char* view_uri, contacts_record_h record);
static int __ctsvc_ipc_marshal_url(const contacts_record_h record, pims_ipc_data_h ipc_data);
-static int __ctsvc_ipc_marshal_url_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id);
ctsvc_ipc_marshal_record_plugin_cb_s _ctsvc_ipc_record_url_plugin_cb = {
.unmarshal_record = __ctsvc_ipc_unmarshal_url,
- .marshal_record = __ctsvc_ipc_marshal_url,
- .get_primary_id = __ctsvc_ipc_marshal_url_get_primary_id
+ .marshal_record = __ctsvc_ipc_marshal_url
};
return CONTACTS_ERROR_INVALID_PARAMETER;
}
-static int __ctsvc_ipc_marshal_url_get_primary_id(const contacts_record_h record, unsigned int *property_id, int *id)
-{
- *property_id = CTSVC_PROPERTY_URL_ID;
- return contacts_record_get_int(record, *property_id, id);
-}
-