summaryrefslogtreecommitdiffstats
path: root/src/mobile_image_mounter.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-20 23:00:20 +0100
committerGravatar Martin Szulecki2014-03-20 23:00:20 +0100
commit88ce6113593158944630435678e689bf155d9a03 (patch)
tree0757287665b7e9c7263d77fd269b0777e8228d25 /src/mobile_image_mounter.c
parenta34a537d1408f8692daeadd5e1f5859ff13a3473 (diff)
downloadlibimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.gz
libimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.bz2
Bump dependency to libplist 1.11 and remove use of "plist_dict_insert_item()"
Diffstat (limited to 'src/mobile_image_mounter.c')
-rw-r--r--src/mobile_image_mounter.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c
index 9e6d8e9..4b2818d 100644
--- a/src/mobile_image_mounter.c
+++ b/src/mobile_image_mounter.c
@@ -168,8 +168,8 @@ mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_moun
mobile_image_mounter_lock(client);
plist_t dict = plist_new_dict();
- plist_dict_insert_item(dict,"Command", plist_new_string("LookupImage"));
- plist_dict_insert_item(dict,"ImageType", plist_new_string(image_type));
+ plist_dict_set_item(dict,"Command", plist_new_string("LookupImage"));
+ plist_dict_set_item(dict,"ImageType", plist_new_string(image_type));
mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict));
plist_free(dict);
@@ -211,9 +211,9 @@ mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_moun
plist_t result = NULL;
plist_t dict = plist_new_dict();
- plist_dict_insert_item(dict, "Command", plist_new_string("ReceiveBytes"));
- plist_dict_insert_item(dict, "ImageSize", plist_new_uint(image_size));
- plist_dict_insert_item(dict, "ImageType", plist_new_string(image_type));
+ plist_dict_set_item(dict, "Command", plist_new_string("ReceiveBytes"));
+ plist_dict_set_item(dict, "ImageSize", plist_new_uint(image_size));
+ plist_dict_set_item(dict, "ImageType", plist_new_string(image_type));
mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict));
plist_free(dict);
@@ -340,10 +340,10 @@ mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mount
mobile_image_mounter_lock(client);
plist_t dict = plist_new_dict();
- plist_dict_insert_item(dict, "Command", plist_new_string("MountImage"));
- plist_dict_insert_item(dict, "ImagePath", plist_new_string(image_path));
- plist_dict_insert_item(dict, "ImageSignature", plist_new_data(image_signature, signature_length));
- plist_dict_insert_item(dict, "ImageType", plist_new_string(image_type));
+ plist_dict_set_item(dict, "Command", plist_new_string("MountImage"));
+ plist_dict_set_item(dict, "ImagePath", plist_new_string(image_path));
+ plist_dict_set_item(dict, "ImageSignature", plist_new_data(image_signature, signature_length));
+ plist_dict_set_item(dict, "ImageType", plist_new_string(image_type));
mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict));
plist_free(dict);
@@ -382,7 +382,7 @@ mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_cl
mobile_image_mounter_lock(client);
plist_t dict = plist_new_dict();
- plist_dict_insert_item(dict, "Command", plist_new_string("Hangup"));
+ plist_dict_set_item(dict, "Command", plist_new_string("Hangup"));
mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict));
plist_free(dict);