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/mobilebackup2.h | |
| parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
| download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2  | |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'include/libimobiledevice/mobilebackup2.h')
| -rw-r--r-- | include/libimobiledevice/mobilebackup2.h | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/include/libimobiledevice/mobilebackup2.h b/include/libimobiledevice/mobilebackup2.h index 1af4141..2e9222d 100644 --- a/include/libimobiledevice/mobilebackup2.h +++ b/include/libimobiledevice/mobilebackup2.h  | |||
| @@ -64,7 +64,7 @@ typedef mobilebackup2_client_private *mobilebackup2_client_t; /**< The client ha | |||
| 64 | * if one or more parameter is invalid, or MOBILEBACKUP2_E_BAD_VERSION | 64 | * if one or more parameter is invalid, or MOBILEBACKUP2_E_BAD_VERSION | 
| 65 | * if the mobilebackup2 version on the device is newer. | 65 | * if the mobilebackup2 version on the device is newer. | 
| 66 | */ | 66 | */ | 
| 67 | mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup2_client_t * client); | 67 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup2_client_t * client); | 
| 68 | 68 | ||
| 69 | /** | 69 | /** | 
| 70 | * Starts a new mobilebackup2 service on the specified device and connects to it. | 70 | * Starts a new mobilebackup2 service on the specified device and connects to it. | 
| @@ -79,7 +79,7 @@ mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, lockdownd_servi | |||
| 79 | * @return MOBILEBACKUP2_E_SUCCESS on success, or an MOBILEBACKUP2_E_* error | 79 | * @return MOBILEBACKUP2_E_SUCCESS on success, or an MOBILEBACKUP2_E_* error | 
| 80 | * code otherwise. | 80 | * code otherwise. | 
| 81 | */ | 81 | */ | 
| 82 | mobilebackup2_error_t mobilebackup2_client_start_service(idevice_t device, mobilebackup2_client_t* client, const char* label); | 82 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_client_start_service(idevice_t device, mobilebackup2_client_t* client, const char* label); | 
| 83 | 83 | ||
| 84 | /** | 84 | /** | 
| 85 | * Disconnects a mobilebackup2 client from the device and frees up the | 85 | * Disconnects a mobilebackup2 client from the device and frees up the | 
| @@ -90,7 +90,7 @@ mobilebackup2_error_t mobilebackup2_client_start_service(idevice_t device, mobil | |||
| 90 | * @return MOBILEBACKUP2_E_SUCCESS on success, or MOBILEBACKUP2_E_INVALID_ARG | 90 | * @return MOBILEBACKUP2_E_SUCCESS on success, or MOBILEBACKUP2_E_INVALID_ARG | 
| 91 | * if client is NULL. | 91 | * if client is NULL. | 
| 92 | */ | 92 | */ | 
| 93 | mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t client); | 93 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t client); | 
| 94 | 94 | ||
| 95 | 95 | ||
| 96 | /** | 96 | /** | 
| @@ -105,7 +105,7 @@ mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t client); | |||
| 105 | * will be inserted into this plist before sending it. This parameter | 105 | * will be inserted into this plist before sending it. This parameter | 
| 106 | * can be NULL if message is not NULL. | 106 | * can be NULL if message is not NULL. | 
| 107 | */ | 107 | */ | 
| 108 | mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t client, const char *message, plist_t options); | 108 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t client, const char *message, plist_t options); | 
| 109 | 109 | ||
| 110 | /** | 110 | /** | 
| 111 | * Receives a DL* message plist from the device. | 111 | * Receives a DL* message plist from the device. | 
| @@ -125,7 +125,7 @@ mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t client, | |||
| 125 | * or is not a DL* message plist, or MOBILEBACKUP2_E_MUX_ERROR if | 125 | * or is not a DL* message plist, or MOBILEBACKUP2_E_MUX_ERROR if | 
| 126 | * receiving from the device failed. | 126 | * receiving from the device failed. | 
| 127 | */ | 127 | */ | 
| 128 | mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t client, plist_t *msg_plist, char **dlmessage); | 128 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t client, plist_t *msg_plist, char **dlmessage); | 
| 129 | 129 | ||
| 130 | /** | 130 | /** | 
| 131 | * Send binary data to the device. | 131 | * Send binary data to the device. | 
| @@ -143,7 +143,7 @@ mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t clien | |||
| 143 | * MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, | 143 | * MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, | 
| 144 | * or MOBILEBACKUP2_E_MUX_ERROR if sending of the data failed. | 144 | * or MOBILEBACKUP2_E_MUX_ERROR if sending of the data failed. | 
| 145 | */ | 145 | */ | 
| 146 | mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, const char *data, uint32_t length, uint32_t *bytes); | 146 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, const char *data, uint32_t length, uint32_t *bytes); | 
| 147 | 147 | ||
| 148 | /** | 148 | /** | 
| 149 | * Receive binary from the device. | 149 | * Receive binary from the device. | 
| @@ -163,7 +163,7 @@ mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, cons | |||
| 163 | * MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, | 163 | * MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, | 
| 164 | * or MOBILEBACKUP2_E_MUX_ERROR if receiving the data failed. | 164 | * or MOBILEBACKUP2_E_MUX_ERROR if receiving the data failed. | 
| 165 | */ | 165 | */ | 
| 166 | mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t client, char *data, uint32_t length, uint32_t *bytes); | 166 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t client, char *data, uint32_t length, uint32_t *bytes); | 
| 167 | 167 | ||
| 168 | /** | 168 | /** | 
| 169 | * Performs the mobilebackup2 protocol version exchange. | 169 | * Performs the mobilebackup2 protocol version exchange. | 
| @@ -176,7 +176,7 @@ mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t client, c | |||
| 176 | * @return MOBILEBACKUP2_E_SUCCESS on success, or a MOBILEBACKUP2_E_* error | 176 | * @return MOBILEBACKUP2_E_SUCCESS on success, or a MOBILEBACKUP2_E_* error | 
| 177 | * code otherwise. | 177 | * code otherwise. | 
| 178 | */ | 178 | */ | 
| 179 | mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t client, double local_versions[], char count, double *remote_version); | 179 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t client, double local_versions[], char count, double *remote_version); | 
| 180 | 180 | ||
| 181 | /** | 181 | /** | 
| 182 | * Send a request to the connected mobilebackup2 service. | 182 | * Send a request to the connected mobilebackup2 service. | 
| @@ -191,7 +191,7 @@ mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t clie | |||
| 191 | * @return MOBILEBACKUP2_E_SUCCESS if the request was successfully sent, | 191 | * @return MOBILEBACKUP2_E_SUCCESS if the request was successfully sent, | 
| 192 | * or a MOBILEBACKUP2_E_* error value otherwise. | 192 | * or a MOBILEBACKUP2_E_* error value otherwise. | 
| 193 | */ | 193 | */ | 
| 194 | mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client, const char *request, const char *target_identifier, const char *source_identifier, plist_t options); | 194 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client, const char *request, const char *target_identifier, const char *source_identifier, plist_t options); | 
| 195 | 195 | ||
| 196 | /** | 196 | /** | 
| 197 | * Sends a DLMessageStatusResponse to the device. | 197 | * Sends a DLMessageStatusResponse to the device. | 
| @@ -205,7 +205,7 @@ mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client, | |||
| 205 | * @return MOBILEBACKUP2_E_SUCCESS on success, MOBILEBACKUP2_E_INVALID_ARG | 205 | * @return MOBILEBACKUP2_E_SUCCESS on success, MOBILEBACKUP2_E_INVALID_ARG | 
| 206 | * if client is invalid, or another MOBILEBACKUP2_E_* otherwise. | 206 | * if client is invalid, or another MOBILEBACKUP2_E_* otherwise. | 
| 207 | */ | 207 | */ | 
| 208 | mobilebackup2_error_t mobilebackup2_send_status_response(mobilebackup2_client_t client, int status_code, const char *status1, plist_t status2); | 208 | LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_send_status_response(mobilebackup2_client_t client, int status_code, const char *status1, plist_t status2); | 
| 209 | 209 | ||
| 210 | #ifdef __cplusplus | 210 | #ifdef __cplusplus | 
| 211 | } | 211 | } | 
