diff options
| author | 2009-10-11 18:10:16 +0200 | |
|---|---|---|
| committer | 2009-10-13 17:59:57 -0700 | |
| commit | 4740e30d178c8a588f522586a817039d6be8da3b (patch) | |
| tree | ce2be1fe383342fba1cc75a8ae32931a57637d51 /src/MobileSync.c | |
| parent | 90f2ade2c9f5e242ae05417662147f46ba6c1153 (diff) | |
| download | libimobiledevice-4740e30d178c8a588f522586a817039d6be8da3b.tar.gz libimobiledevice-4740e30d178c8a588f522586a817039d6be8da3b.tar.bz2 | |
Update to latest libplist API.
Signed-off-by: Matt Colyer <matt@colyer.name>
[#77 state:resolved]
Diffstat (limited to 'src/MobileSync.c')
| -rw-r--r-- | src/MobileSync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c index 8a7d724..9e52f32 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c | |||
| @@ -76,8 +76,8 @@ mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port, | |||
| 76 | && ver_2_val == MSYNC_VERSION_INT2) { | 76 | && ver_2_val == MSYNC_VERSION_INT2) { |
| 77 | 77 | ||
| 78 | array = plist_new_array(); | 78 | array = plist_new_array(); |
| 79 | plist_add_sub_string_el(array, "DLMessageVersionExchange"); | 79 | plist_array_append_item(array, plist_new_string("DLMessageVersionExchange")); |
| 80 | plist_add_sub_string_el(array, "DLVersionsOk"); | 80 | plist_array_append_item(array, plist_new_string("DLVersionsOk")); |
| 81 | 81 | ||
| 82 | ret = mobilesync_send(client_loc, array); | 82 | ret = mobilesync_send(client_loc, array); |
| 83 | 83 | ||
| @@ -112,8 +112,8 @@ static void mobilesync_disconnect(mobilesync_client_t client) | |||
| 112 | return; | 112 | return; |
| 113 | 113 | ||
| 114 | plist_t array = plist_new_array(); | 114 | plist_t array = plist_new_array(); |
| 115 | plist_add_sub_string_el(array, "DLMessageDisconnect"); | 115 | plist_array_append_item(array, plist_new_string("DLMessageDisconnect")); |
| 116 | plist_add_sub_string_el(array, "All done, thanks for the memories"); | 116 | plist_array_append_item(array, plist_new_string("All done, thanks for the memories")); |
| 117 | 117 | ||
| 118 | mobilesync_send(client, array); | 118 | mobilesync_send(client, array); |
| 119 | plist_free(array); | 119 | plist_free(array); |
