diff options
| author | 2013-09-21 01:51:42 +0200 | |
|---|---|---|
| committer | 2013-09-21 01:51:42 +0200 | |
| commit | 1d9f34fb5fa49c31ee30bdc4c98dc9a43bc5afb2 (patch) | |
| tree | de4a2cf96f85a1f79f67afc33ce6703011ef50b1 /src/mobilebackup2.c | |
| parent | 0eaa1c53598054ec586108f2dec8b391dc0ac473 (diff) | |
| download | libimobiledevice-1d9f34fb5fa49c31ee30bdc4c98dc9a43bc5afb2.tar.gz libimobiledevice-1d9f34fb5fa49c31ee30bdc4c98dc9a43bc5afb2.tar.bz2 | |
idevicebackup2: Add experimental support for using backups in the cloud
Diffstat (limited to 'src/mobilebackup2.c')
| -rw-r--r-- | src/mobilebackup2.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c index 577901e..350fa3e 100644 --- a/src/mobilebackup2.c +++ b/src/mobilebackup2.c | |||
| @@ -459,9 +459,15 @@ mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client, | |||
| 459 | plist_dict_insert_item(dict, "Options", plist_copy(options)); | 459 | plist_dict_insert_item(dict, "Options", plist_copy(options)); |
| 460 | } | 460 | } |
| 461 | if (!strcmp(request, "Unback") && options) { | 461 | if (!strcmp(request, "Unback") && options) { |
| 462 | plist_t password = plist_dict_get_item(options, "Password"); | 462 | plist_t node = plist_dict_get_item(options, "Password"); |
| 463 | if (password) { | 463 | if (node) { |
| 464 | plist_dict_insert_item(dict, "Password", plist_copy(password)); | 464 | plist_dict_insert_item(dict, "Password", plist_copy(node)); |
| 465 | } | ||
| 466 | } | ||
| 467 | if (!strcmp(request, "EnableCloudBackup") && options) { | ||
| 468 | plist_t node = plist_dict_get_item(options, "CloudBackupState"); | ||
| 469 | if (node) { | ||
| 470 | plist_dict_insert_item(dict, "CloudBackupState", plist_copy(node)); | ||
| 465 | } | 471 | } |
| 466 | } | 472 | } |
| 467 | mobilebackup2_error_t err = mobilebackup2_send_message(client, request, dict); | 473 | mobilebackup2_error_t err = mobilebackup2_send_message(client, request, dict); |
