summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/mobilebackup.h
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/mobilebackup.h
parente5d4b8e126b0160c80103b814ef59a3f1319f22e (diff)
downloadlibimobiledevice-9cad040f01548bd9f6bd8ade6ea20466ee95e036.tar.gz
libimobiledevice-9cad040f01548bd9f6bd8ade6ea20466ee95e036.tar.bz2
mobilebackup: extend interface with functions for the restore process
Diffstat (limited to 'include/libimobiledevice/mobilebackup.h')
-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;
47typedef struct mobilebackup_client_private mobilebackup_client_private; 47typedef struct mobilebackup_client_private mobilebackup_client_private;
48typedef mobilebackup_client_private *mobilebackup_client_t; /**< The client handle. */ 48typedef mobilebackup_client_private *mobilebackup_client_t; /**< The client handle. */
49 49
50typedef enum {
51 MB_RESTORE_NOTIFY_SPRINGBOARD = 1 << 0,
52 MB_RESTORE_PRESERVE_SETTINGS = 1 << 1,
53 MB_RESTORE_PRESERVE_CAMERA_ROLL = 1 << 2
54} mobilebackup_flags_t;
55
50mobilebackup_error_t mobilebackup_client_new(idevice_t device, uint16_t port, mobilebackup_client_t * client); 56mobilebackup_error_t mobilebackup_client_new(idevice_t device, uint16_t port, mobilebackup_client_t * client);
51mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client); 57mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client);
52mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist); 58mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist);
53mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist); 59mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist);
54mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version); 60mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version);
55mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client); 61mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client);
62mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto_version);
63mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_client_t client, plist_t *result);
64mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t client);
56mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason); 65mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason);
57 66
58#ifdef __cplusplus 67#ifdef __cplusplus