issues
search
storoj
/
libimobiledevice-win32
win32 port of libimobiledevice (http://libimobiledevice.org)
64
stars
61
forks
source link
Unable to Send records from host to device through this code
#19
Closed
akhilritu
closed
9 years ago
akhilritu
commented
10 years ago
array = plist_new_array();
plist_add_sub_string_el(array, "DLMessagePing");
plist_add_sub_string_el(array, "Preparing to get changes for device"); +
ret = mobilesync_send(client, array);
plist_free(array);
array = NULL; +
array = plist_new_array();
plist_add_sub_string_el(array, "SDMessageProcessChanges");
plist_add_sub_string_el(array, "com.apple.Contacts");
plist_add_sub_node(array, plist_new_dict());
plist_add_sub_bool_el(array, 0);
plist_t dict = plist_new_dict();
plist_add_sub_node(array, dict);
plist_add_sub_key_el(dict, "SyncDeviceLinkEntityNamesKey");
plist_t array2 = plist_new_array();
plist_add_sub_string_el(array2, "com.apple.contacts.Contact");
plist_add_sub_string_el(array2, "com.apple.contacts.Group");
plist_add_sub_key_el(dict, "SyncDeviceLinkAllRecordsOfPulledEntityTypeSentKey");
plist_add_sub_bool_el(dict, 0); +
ret = mobilesync_send(client, array);
plist_free(array);
array = NULL; +
ret = mobilesync_recv(client, &array);
plist_free(array);
array = NULL;
array = plist_new_array();