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/reverse_proxy.h | |
| parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
| download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 | |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'include/libimobiledevice/reverse_proxy.h')
| -rw-r--r-- | include/libimobiledevice/reverse_proxy.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libimobiledevice/reverse_proxy.h b/include/libimobiledevice/reverse_proxy.h index b7a93ff..5e2f54b 100644 --- a/include/libimobiledevice/reverse_proxy.h +++ b/include/libimobiledevice/reverse_proxy.h | |||
| @@ -118,7 +118,7 @@ typedef void (*reverse_proxy_status_cb_t) (reverse_proxy_client_t client, revers | |||
| 118 | * @return REVERSE_PROXY_E_SUCCESS on success, | 118 | * @return REVERSE_PROXY_E_SUCCESS on success, |
| 119 | * or a REVERSE_PROXY_E_* error code otherwise. | 119 | * or a REVERSE_PROXY_E_* error code otherwise. |
| 120 | */ | 120 | */ |
| 121 | reverse_proxy_error_t reverse_proxy_client_create_with_service(idevice_t device, reverse_proxy_client_t* client, const char* label); | 121 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_service(idevice_t device, reverse_proxy_client_t* client, const char* label); |
| 122 | 122 | ||
| 123 | /** | 123 | /** |
| 124 | * Create a reverse proxy client using an open port on the device. This is | 124 | * Create a reverse proxy client using an open port on the device. This is |
| @@ -136,14 +136,14 @@ reverse_proxy_error_t reverse_proxy_client_create_with_service(idevice_t device, | |||
| 136 | * @return REVERSE_PROXY_E_SUCCESS on success, | 136 | * @return REVERSE_PROXY_E_SUCCESS on success, |
| 137 | * or a REVERSE_PROXY_E_* error code otherwise. | 137 | * or a REVERSE_PROXY_E_* error code otherwise. |
| 138 | */ | 138 | */ |
| 139 | reverse_proxy_error_t reverse_proxy_client_create_with_port(idevice_t device, reverse_proxy_client_t* client, uint16_t device_port); | 139 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_port(idevice_t device, reverse_proxy_client_t* client, uint16_t device_port); |
| 140 | 140 | ||
| 141 | /** | 141 | /** |
| 142 | * Disconnects a reverse proxy client and frees up the client data. | 142 | * Disconnects a reverse proxy client and frees up the client data. |
| 143 | * | 143 | * |
| 144 | * @param client The reverse proxy client to disconnect and free. | 144 | * @param client The reverse proxy client to disconnect and free. |
| 145 | */ | 145 | */ |
| 146 | reverse_proxy_error_t reverse_proxy_client_free(reverse_proxy_client_t client); | 146 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_free(reverse_proxy_client_t client); |
| 147 | 147 | ||
| 148 | /** | 148 | /** |
| 149 | * Make an initialized reverse proxy client operational, i.e. start the actual proxy. | 149 | * Make an initialized reverse proxy client operational, i.e. start the actual proxy. |
| @@ -155,7 +155,7 @@ reverse_proxy_error_t reverse_proxy_client_free(reverse_proxy_client_t client); | |||
| 155 | * @return REVERSE_PROXY_E_SUCCESS on success, | 155 | * @return REVERSE_PROXY_E_SUCCESS on success, |
| 156 | * or a REVERSE_PROXY_E_* error code otherwise. | 156 | * or a REVERSE_PROXY_E_* error code otherwise. |
| 157 | */ | 157 | */ |
| 158 | reverse_proxy_error_t reverse_proxy_client_start_proxy(reverse_proxy_client_t client, int control_protocol_version); | 158 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_start_proxy(reverse_proxy_client_t client, int control_protocol_version); |
| 159 | 159 | ||
| 160 | /** | 160 | /** |
| 161 | * Set a status callback function. This allows to report the status of the | 161 | * Set a status callback function. This allows to report the status of the |
| @@ -168,7 +168,7 @@ reverse_proxy_error_t reverse_proxy_client_start_proxy(reverse_proxy_client_t cl | |||
| 168 | * when the status of the reverse proxy changes. | 168 | * when the status of the reverse proxy changes. |
| 169 | * @param user_data A pointer that will be passed to the callback function. | 169 | * @param user_data A pointer that will be passed to the callback function. |
| 170 | */ | 170 | */ |
| 171 | void reverse_proxy_client_set_status_callback(reverse_proxy_client_t client, reverse_proxy_status_cb_t callback, void* user_data); | 171 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_status_callback(reverse_proxy_client_t client, reverse_proxy_status_cb_t callback, void* user_data); |
| 172 | 172 | ||
| 173 | /** | 173 | /** |
| 174 | * Set a log callback function. Useful for debugging or verbosity. | 174 | * Set a log callback function. Useful for debugging or verbosity. |
| @@ -180,7 +180,7 @@ void reverse_proxy_client_set_status_callback(reverse_proxy_client_t client, rev | |||
| 180 | * when the reverse proxy logs something. | 180 | * when the reverse proxy logs something. |
| 181 | * @param user_data A pointer that will be passed to the callback function. | 181 | * @param user_data A pointer that will be passed to the callback function. |
| 182 | */ | 182 | */ |
| 183 | void reverse_proxy_client_set_log_callback(reverse_proxy_client_t client, reverse_proxy_log_cb_t callback, void* user_data); | 183 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_log_callback(reverse_proxy_client_t client, reverse_proxy_log_cb_t callback, void* user_data); |
| 184 | 184 | ||
| 185 | /** | 185 | /** |
| 186 | * Set a data callback function. Useful for debugging or extra verbosity. | 186 | * Set a data callback function. Useful for debugging or extra verbosity. |
| @@ -193,7 +193,7 @@ void reverse_proxy_client_set_log_callback(reverse_proxy_client_t client, revers | |||
| 193 | * @param user_data A pointer that will be passed to the callback function. | 193 | * @param user_data A pointer that will be passed to the callback function. |
| 194 | */ | 194 | */ |
| 195 | 195 | ||
| 196 | void reverse_proxy_client_set_data_callback(reverse_proxy_client_t client, reverse_proxy_data_cb_t callback, void* user_data); | 196 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_data_callback(reverse_proxy_client_t client, reverse_proxy_data_cb_t callback, void* user_data); |
| 197 | 197 | ||
| 198 | /** | 198 | /** |
| 199 | * Helper function to return the type of a given reverse proxy client, which | 199 | * Helper function to return the type of a given reverse proxy client, which |
| @@ -204,7 +204,7 @@ void reverse_proxy_client_set_data_callback(reverse_proxy_client_t client, rever | |||
| 204 | * | 204 | * |
| 205 | * @return The type of the rerverse proxy client | 205 | * @return The type of the rerverse proxy client |
| 206 | */ | 206 | */ |
| 207 | reverse_proxy_client_type_t reverse_proxy_get_type(reverse_proxy_client_t client); | 207 | LIBIMOBILEDEVICE_API reverse_proxy_client_type_t reverse_proxy_get_type(reverse_proxy_client_t client); |
| 208 | 208 | ||
| 209 | #ifdef __cplusplus | 209 | #ifdef __cplusplus |
| 210 | } | 210 | } |
