diff options
Diffstat (limited to 'src/mobile_image_mounter.c')
| -rw-r--r-- | src/mobile_image_mounter.c | 20 |
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 | |||
| 168 | mobile_image_mounter_lock(client); | 168 | mobile_image_mounter_lock(client); |
| 169 | 169 | ||
| 170 | plist_t dict = plist_new_dict(); | 170 | plist_t dict = plist_new_dict(); |
| 171 | plist_dict_insert_item(dict,"Command", plist_new_string("LookupImage")); | 171 | plist_dict_set_item(dict,"Command", plist_new_string("LookupImage")); |
| 172 | plist_dict_insert_item(dict,"ImageType", plist_new_string(image_type)); | 172 | plist_dict_set_item(dict,"ImageType", plist_new_string(image_type)); |
| 173 | 173 | ||
| 174 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); | 174 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); |
| 175 | plist_free(dict); | 175 | plist_free(dict); |
| @@ -211,9 +211,9 @@ mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_moun | |||
| 211 | plist_t result = NULL; | 211 | plist_t result = NULL; |
| 212 | 212 | ||
| 213 | plist_t dict = plist_new_dict(); | 213 | plist_t dict = plist_new_dict(); |
| 214 | plist_dict_insert_item(dict, "Command", plist_new_string("ReceiveBytes")); | 214 | plist_dict_set_item(dict, "Command", plist_new_string("ReceiveBytes")); |
| 215 | plist_dict_insert_item(dict, "ImageSize", plist_new_uint(image_size)); | 215 | plist_dict_set_item(dict, "ImageSize", plist_new_uint(image_size)); |
| 216 | plist_dict_insert_item(dict, "ImageType", plist_new_string(image_type)); | 216 | plist_dict_set_item(dict, "ImageType", plist_new_string(image_type)); |
| 217 | 217 | ||
| 218 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); | 218 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); |
| 219 | plist_free(dict); | 219 | plist_free(dict); |
| @@ -340,10 +340,10 @@ mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mount | |||
| 340 | mobile_image_mounter_lock(client); | 340 | mobile_image_mounter_lock(client); |
| 341 | 341 | ||
| 342 | plist_t dict = plist_new_dict(); | 342 | plist_t dict = plist_new_dict(); |
| 343 | plist_dict_insert_item(dict, "Command", plist_new_string("MountImage")); | 343 | plist_dict_set_item(dict, "Command", plist_new_string("MountImage")); |
| 344 | plist_dict_insert_item(dict, "ImagePath", plist_new_string(image_path)); | 344 | plist_dict_set_item(dict, "ImagePath", plist_new_string(image_path)); |
| 345 | plist_dict_insert_item(dict, "ImageSignature", plist_new_data(image_signature, signature_length)); | 345 | plist_dict_set_item(dict, "ImageSignature", plist_new_data(image_signature, signature_length)); |
| 346 | plist_dict_insert_item(dict, "ImageType", plist_new_string(image_type)); | 346 | plist_dict_set_item(dict, "ImageType", plist_new_string(image_type)); |
| 347 | 347 | ||
| 348 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); | 348 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); |
| 349 | plist_free(dict); | 349 | plist_free(dict); |
| @@ -382,7 +382,7 @@ mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_cl | |||
| 382 | mobile_image_mounter_lock(client); | 382 | mobile_image_mounter_lock(client); |
| 383 | 383 | ||
| 384 | plist_t dict = plist_new_dict(); | 384 | plist_t dict = plist_new_dict(); |
| 385 | plist_dict_insert_item(dict, "Command", plist_new_string("Hangup")); | 385 | plist_dict_set_item(dict, "Command", plist_new_string("Hangup")); |
| 386 | 386 | ||
| 387 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); | 387 | mobile_image_mounter_error_t res = mobile_image_mounter_error(property_list_service_send_xml_plist(client->parent, dict)); |
| 388 | plist_free(dict); | 388 | plist_free(dict); |
