diff options
author | Jonathan Beck | 2009-01-29 22:30:16 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-29 22:30:16 +0100 |
commit | 0d05f8de79ee91e9be80c6296eff9ce216582ba4 (patch) | |
tree | ef50924318530ea5c25f3b841493d1400a1f0ef1 /src/MobileSync.c | |
parent | c00d8d76c04273f796c3d992300068dd21c7bd3e (diff) | |
download | libimobiledevice-0d05f8de79ee91e9be80c6296eff9ce216582ba4.tar.gz libimobiledevice-0d05f8de79ee91e9be80c6296eff9ce216582ba4.tar.bz2 |
Update to latest libplist API.
Diffstat (limited to 'src/MobileSync.c')
-rw-r--r-- | src/MobileSync.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c index 752aee9..839ed2b 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c @@ -222,7 +222,7 @@ iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client) ret = iphone_msync_recv(client, &array); - plist_t rep_node = plist_find_node(array, PLIST_STRING, "SDSyncTypeSlow", strlen("SDSyncTypeSlow")); + plist_t rep_node = plist_find_node_by_string(array, "SDSyncTypeSlow"); if (!rep_node) return ret; @@ -244,10 +244,9 @@ iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client) plist_t contact_node; plist_t switch_node; - contact_node = plist_find_node(array, PLIST_STRING, "com.apple.Contacts", strlen("com.apple.Contacts")); + contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); switch_node = - plist_find_node(array, PLIST_STRING, "SDMessageDeviceReadyToReceiveChanges", - strlen("SDMessageDeviceReadyToReceiveChanges")); + plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); while (NULL == switch_node) { @@ -264,10 +263,8 @@ iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client) ret = iphone_msync_recv(client, &array); - contact_node = plist_find_node(array, PLIST_STRING, "com.apple.Contacts", strlen("com.apple.Contacts")); - switch_node = - plist_find_node(array, PLIST_STRING, "SDMessageDeviceReadyToReceiveChanges", - strlen("SDMessageDeviceReadyToReceiveChanges")); + contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); + switch_node = plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); } array = plist_new_array(); |