diff options
| author | 2009-03-24 20:58:43 +0100 | |
|---|---|---|
| committer | 2009-03-24 20:58:43 +0100 | |
| commit | 85b8a301be39c4b86cb7f38e80c3cb592240ccb9 (patch) | |
| tree | 4974fc254afbf0226e610fd962b5dc74c094cf9f /src/MobileSync.c | |
| parent | 19992c668afeb53a28e08a1f61572b5379f87590 (diff) | |
| parent | 0114d8da493e69f14bc2669ae0ec6b9813b237cf (diff) | |
| download | libimobiledevice-85b8a301be39c4b86cb7f38e80c3cb592240ccb9.tar.gz libimobiledevice-85b8a301be39c4b86cb7f38e80c3cb592240ccb9.tar.bz2 | |
Merge branch 'master' of git://github.com/MattColyer/libiphone into contact_sync
Conflicts:
Makefile.am
configure.ac
src/AFC.h
src/NotificationProxy.c
src/lockdown.c
Diffstat (limited to 'src/MobileSync.c')
| -rw-r--r-- | src/MobileSync.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c index 839ed2b..b16a51b 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c | |||
| @@ -50,8 +50,7 @@ iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int | |||
| 50 | //first receive version | 50 | //first receive version |
| 51 | ret = iphone_msync_recv(client_loc, &array); | 51 | ret = iphone_msync_recv(client_loc, &array); |
| 52 | 52 | ||
| 53 | plist_t msg_node = | 53 | plist_t msg_node = plist_find_node_by_string(array, "DLMessageVersionExchange"); |
| 54 | plist_find_node_by_string(array, "DLMessageVersionExchange"); | ||
| 55 | plist_t ver_1 = plist_get_next_sibling(msg_node); | 54 | plist_t ver_1 = plist_get_next_sibling(msg_node); |
| 56 | plist_t ver_2 = plist_get_next_sibling(ver_1); | 55 | plist_t ver_2 = plist_get_next_sibling(ver_1); |
| 57 | 56 | ||
| @@ -82,8 +81,7 @@ iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int | |||
| 82 | array = NULL; | 81 | array = NULL; |
| 83 | 82 | ||
| 84 | ret = iphone_msync_recv(client_loc, &array); | 83 | ret = iphone_msync_recv(client_loc, &array); |
| 85 | plist_t rep_node = | 84 | plist_t rep_node = plist_find_node_by_string(array, "DLMessageDeviceReady"); |
| 86 | plist_find_node_by_string(array, "DLMessageDeviceReady"); | ||
| 87 | 85 | ||
| 88 | if (rep_node) { | 86 | if (rep_node) { |
| 89 | ret = IPHONE_E_SUCCESS; | 87 | ret = IPHONE_E_SUCCESS; |
| @@ -245,8 +243,7 @@ iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client) | |||
| 245 | plist_t switch_node; | 243 | plist_t switch_node; |
| 246 | 244 | ||
| 247 | contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); | 245 | contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); |
| 248 | switch_node = | 246 | switch_node = plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); |
| 249 | plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); | ||
| 250 | 247 | ||
| 251 | while (NULL == switch_node) { | 248 | while (NULL == switch_node) { |
| 252 | 249 | ||
