summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-06-06 19:22:46 +0200
committerGravatar Nikias Bassen2010-06-06 19:22:46 +0200
commit9cad040f01548bd9f6bd8ade6ea20466ee95e036 (patch)
tree9de9401e5aec6c8fa1c0707da16d10430c0a3d2c /include/libimobiledevice
parente5d4b8e126b0160c80103b814ef59a3f1319f22e (diff)
downloadlibimobiledevice-9cad040f01548bd9f6bd8ade6ea20466ee95e036.tar.gz
libimobiledevice-9cad040f01548bd9f6bd8ade6ea20466ee95e036.tar.bz2
mobilebackup: extend interface with functions for the restore process
Diffstat (limited to 'include/libimobiledevice')
-rw-r--r--include/libimobiledevice/mobilebackup.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libimobiledevice/mobilebackup.h b/include/libimobiledevice/mobilebackup.h
index 7dbc3fe..bf405f9 100644
--- a/include/libimobiledevice/mobilebackup.h
+++ b/include/libimobiledevice/mobilebackup.h
@@ -47,12 +47,21 @@ typedef int16_t mobilebackup_error_t;
typedef struct mobilebackup_client_private mobilebackup_client_private;
typedef mobilebackup_client_private *mobilebackup_client_t; /**< The client handle. */
+typedef enum {
+ MB_RESTORE_NOTIFY_SPRINGBOARD = 1 << 0,
+ MB_RESTORE_PRESERVE_SETTINGS = 1 << 1,
+ MB_RESTORE_PRESERVE_CAMERA_ROLL = 1 << 2
+} mobilebackup_flags_t;
+
mobilebackup_error_t mobilebackup_client_new(idevice_t device, uint16_t port, mobilebackup_client_t * client);
mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client);
mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist);
mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist);
mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version);
mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client);
+mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto_version);
+mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_client_t client, plist_t *result);
+mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t client);
mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason);
#ifdef __cplusplus