summaryrefslogtreecommitdiffstats
path: root/src/MobileSync.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-11 18:10:16 +0200
committerGravatar Matt Colyer2009-10-13 17:59:57 -0700
commit4740e30d178c8a588f522586a817039d6be8da3b (patch)
treece2be1fe383342fba1cc75a8ae32931a57637d51 /src/MobileSync.c
parent90f2ade2c9f5e242ae05417662147f46ba6c1153 (diff)
downloadlibimobiledevice-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.c8
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,
&& ver_2_val == MSYNC_VERSION_INT2) {
array = plist_new_array();
- plist_add_sub_string_el(array, "DLMessageVersionExchange");
- plist_add_sub_string_el(array, "DLVersionsOk");
+ plist_array_append_item(array, plist_new_string("DLMessageVersionExchange"));
+ plist_array_append_item(array, plist_new_string("DLVersionsOk"));
ret = mobilesync_send(client_loc, array);
@@ -112,8 +112,8 @@ static void mobilesync_disconnect(mobilesync_client_t client)
return;
plist_t array = plist_new_array();
- plist_add_sub_string_el(array, "DLMessageDisconnect");
- plist_add_sub_string_el(array, "All done, thanks for the memories");
+ plist_array_append_item(array, plist_new_string("DLMessageDisconnect"));
+ plist_array_append_item(array, plist_new_string("All done, thanks for the memories"));
mobilesync_send(client, array);
plist_free(array);