diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /include/libimobiledevice/mobilebackup.h | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'include/libimobiledevice/mobilebackup.h')
-rw-r--r-- | include/libimobiledevice/mobilebackup.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/libimobiledevice/mobilebackup.h b/include/libimobiledevice/mobilebackup.h index d4c042e..2ecb60c 100644 --- a/include/libimobiledevice/mobilebackup.h +++ b/include/libimobiledevice/mobilebackup.h | |||
@@ -69,7 +69,7 @@ typedef enum { | |||
69 | * or more parameters are invalid, or DEVICE_LINK_SERVICE_E_BAD_VERSION if | 69 | * or more parameters are invalid, or DEVICE_LINK_SERVICE_E_BAD_VERSION if |
70 | * the mobilebackup version on the device is newer. | 70 | * the mobilebackup version on the device is newer. |
71 | */ | 71 | */ |
72 | mobilebackup_error_t mobilebackup_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup_client_t * client); | 72 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup_client_t * client); |
73 | 73 | ||
74 | /** | 74 | /** |
75 | * Starts a new mobilebackup service on the specified device and connects to it. | 75 | * Starts a new mobilebackup service on the specified device and connects to it. |
@@ -84,7 +84,7 @@ mobilebackup_error_t mobilebackup_client_new(idevice_t device, lockdownd_service | |||
84 | * @return MOBILEBACKUP_E_SUCCESS on success, or an MOBILEBACKUP_E_* error | 84 | * @return MOBILEBACKUP_E_SUCCESS on success, or an MOBILEBACKUP_E_* error |
85 | * code otherwise. | 85 | * code otherwise. |
86 | */ | 86 | */ |
87 | mobilebackup_error_t mobilebackup_client_start_service(idevice_t device, mobilebackup_client_t* client, const char* label); | 87 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_client_start_service(idevice_t device, mobilebackup_client_t* client, const char* label); |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * Disconnects a mobilebackup client from the device and frees up the | 90 | * Disconnects a mobilebackup client from the device and frees up the |
@@ -95,7 +95,7 @@ mobilebackup_error_t mobilebackup_client_start_service(idevice_t device, mobileb | |||
95 | * @return MOBILEBACKUP_E_SUCCESS on success, or MOBILEBACKUP_E_INVALID_ARG | 95 | * @return MOBILEBACKUP_E_SUCCESS on success, or MOBILEBACKUP_E_INVALID_ARG |
96 | * if client is NULL. | 96 | * if client is NULL. |
97 | */ | 97 | */ |
98 | mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client); | 98 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client); |
99 | 99 | ||
100 | 100 | ||
101 | /** | 101 | /** |
@@ -106,7 +106,7 @@ mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client); | |||
106 | * | 106 | * |
107 | * @return an error code | 107 | * @return an error code |
108 | */ | 108 | */ |
109 | mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist); | 109 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist); |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * Sends mobilebackup data to the device | 112 | * Sends mobilebackup data to the device |
@@ -119,7 +119,7 @@ mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t | |||
119 | * | 119 | * |
120 | * @return an error code | 120 | * @return an error code |
121 | */ | 121 | */ |
122 | mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist); | 122 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist); |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * Request a backup from the connected device. | 125 | * Request a backup from the connected device. |
@@ -138,7 +138,7 @@ mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t pli | |||
138 | * backup_manifest is not of type PLIST_DICT, MOBILEBACKUP_E_MUX_ERROR | 138 | * backup_manifest is not of type PLIST_DICT, MOBILEBACKUP_E_MUX_ERROR |
139 | * if a communication error occurs, MOBILEBACKUP_E_REPLY_NOT_OK | 139 | * if a communication error occurs, MOBILEBACKUP_E_REPLY_NOT_OK |
140 | */ | 140 | */ |
141 | mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version); | 141 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version); |
142 | 142 | ||
143 | /** | 143 | /** |
144 | * Sends a confirmation to the device that a backup file has been received. | 144 | * Sends a confirmation to the device that a backup file has been received. |
@@ -149,7 +149,7 @@ mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, p | |||
149 | * client is invalid, or MOBILEBACKUP_E_MUX_ERROR if a communication error | 149 | * client is invalid, or MOBILEBACKUP_E_MUX_ERROR if a communication error |
150 | * occurs. | 150 | * occurs. |
151 | */ | 151 | */ |
152 | mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client); | 152 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client); |
153 | 153 | ||
154 | /** | 154 | /** |
155 | * Request that a backup should be restored to the connected device. | 155 | * Request that a backup should be restored to the connected device. |
@@ -172,7 +172,7 @@ mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_ | |||
172 | * if a communication error occurs, or MOBILEBACKUP_E_REPLY_NOT_OK | 172 | * if a communication error occurs, or MOBILEBACKUP_E_REPLY_NOT_OK |
173 | * if the device did not accept the request. | 173 | * if the device did not accept the request. |
174 | */ | 174 | */ |
175 | mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto_version); | 175 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto_version); |
176 | 176 | ||
177 | /** | 177 | /** |
178 | * Receive a confirmation from the device that it successfully received | 178 | * Receive a confirmation from the device that it successfully received |
@@ -192,7 +192,7 @@ mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, | |||
192 | * message plist, or MOBILEBACKUP_E_MUX_ERROR if a communication error | 192 | * message plist, or MOBILEBACKUP_E_MUX_ERROR if a communication error |
193 | * occurs. | 193 | * occurs. |
194 | */ | 194 | */ |
195 | mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_client_t client, plist_t *result); | 195 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_client_t client, plist_t *result); |
196 | 196 | ||
197 | /** | 197 | /** |
198 | * Receive a confirmation from the device that it successfully received | 198 | * Receive a confirmation from the device that it successfully received |
@@ -212,7 +212,7 @@ mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_cli | |||
212 | * message plist, or MOBILEBACKUP_E_MUX_ERROR if a communication error | 212 | * message plist, or MOBILEBACKUP_E_MUX_ERROR if a communication error |
213 | * occurs. | 213 | * occurs. |
214 | */ | 214 | */ |
215 | mobilebackup_error_t mobilebackup_receive_restore_application_received(mobilebackup_client_t client, plist_t *result); | 215 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_receive_restore_application_received(mobilebackup_client_t client, plist_t *result); |
216 | 216 | ||
217 | /** | 217 | /** |
218 | * Tells the device that the restore process is complete and waits for the | 218 | * Tells the device that the restore process is complete and waits for the |
@@ -225,7 +225,7 @@ mobilebackup_error_t mobilebackup_receive_restore_application_received(mobilebac | |||
225 | * message plist is invalid, or MOBILEBACKUP_E_MUX_ERROR if a communication | 225 | * message plist is invalid, or MOBILEBACKUP_E_MUX_ERROR if a communication |
226 | * error occurs. | 226 | * error occurs. |
227 | */ | 227 | */ |
228 | mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t client); | 228 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t client); |
229 | 229 | ||
230 | /** | 230 | /** |
231 | * Sends a backup error message to the device. | 231 | * Sends a backup error message to the device. |
@@ -237,7 +237,7 @@ mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t cl | |||
237 | * one of the parameters is invalid, or MOBILEBACKUP_E_MUX_ERROR if a | 237 | * one of the parameters is invalid, or MOBILEBACKUP_E_MUX_ERROR if a |
238 | * communication error occurs. | 238 | * communication error occurs. |
239 | */ | 239 | */ |
240 | mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason); | 240 | LIBIMOBILEDEVICE_API mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason); |
241 | 241 | ||
242 | #ifdef __cplusplus | 242 | #ifdef __cplusplus |
243 | } | 243 | } |