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/companion_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/companion_proxy.h')
| -rw-r--r-- | include/libimobiledevice/companion_proxy.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/libimobiledevice/companion_proxy.h b/include/libimobiledevice/companion_proxy.h index d786766..544322a 100644 --- a/include/libimobiledevice/companion_proxy.h +++ b/include/libimobiledevice/companion_proxy.h | |||
| @@ -67,7 +67,7 @@ typedef void (*companion_proxy_device_event_cb_t) (plist_t event, void* userdata | |||
| 67 | * @return COMPANION_PROXY_E_SUCCESS on success, COMPANION_PROXY_E_INVALID_ARG when | 67 | * @return COMPANION_PROXY_E_SUCCESS on success, COMPANION_PROXY_E_INVALID_ARG when |
| 68 | * the arguments are invalid, or an COMPANION_PROXY_E_* error code otherwise. | 68 | * the arguments are invalid, or an COMPANION_PROXY_E_* error code otherwise. |
| 69 | */ | 69 | */ |
| 70 | companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, companion_proxy_client_t* client); | 70 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, companion_proxy_client_t* client); |
| 71 | 71 | ||
| 72 | /** | 72 | /** |
| 73 | * Starts a new companion_proxy service on the specified device and connects to it. | 73 | * Starts a new companion_proxy service on the specified device and connects to it. |
| @@ -82,7 +82,7 @@ companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_s | |||
| 82 | * @return COMPANION_PROXY_E_SUCCESS on success, or an COMPANION_PROXY_E_* error | 82 | * @return COMPANION_PROXY_E_SUCCESS on success, or an COMPANION_PROXY_E_* error |
| 83 | * code otherwise. | 83 | * code otherwise. |
| 84 | */ | 84 | */ |
| 85 | companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, companion_proxy_client_t* client, const char* label); | 85 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, companion_proxy_client_t* client, const char* label); |
| 86 | 86 | ||
| 87 | /** | 87 | /** |
| 88 | * Disconnects a companion_proxy client from the device and frees up the | 88 | * Disconnects a companion_proxy client from the device and frees up the |
| @@ -93,7 +93,7 @@ companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, c | |||
| 93 | * @return COMPANION_PROXY_E_SUCCESS on success, COMPANION_PROXY_E_INVALID_ARG when | 93 | * @return COMPANION_PROXY_E_SUCCESS on success, COMPANION_PROXY_E_INVALID_ARG when |
| 94 | * client is NULL, or an COMPANION_PROXY_E_* error code otherwise. | 94 | * client is NULL, or an COMPANION_PROXY_E_* error code otherwise. |
| 95 | */ | 95 | */ |
| 96 | companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t client); | 96 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t client); |
| 97 | 97 | ||
| 98 | /** | 98 | /** |
| 99 | * Sends a plist to the service. | 99 | * Sends a plist to the service. |
| @@ -104,7 +104,7 @@ companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t cli | |||
| 104 | * @return COMPANION_PROXY_E_SUCCESS on success, | 104 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 105 | * COMPANION_PROXY_E_INVALID_ARG when client or plist is NULL | 105 | * COMPANION_PROXY_E_INVALID_ARG when client or plist is NULL |
| 106 | */ | 106 | */ |
| 107 | companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, plist_t plist); | 107 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, plist_t plist); |
| 108 | 108 | ||
| 109 | /** | 109 | /** |
| 110 | * Receives a plist from the service. | 110 | * Receives a plist from the service. |
| @@ -115,7 +115,7 @@ companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, pl | |||
| 115 | * @return COMPANION_PROXY_E_SUCCESS on success, | 115 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 116 | * COMPANION_PROXY_E_INVALID_ARG when client or plist is NULL | 116 | * COMPANION_PROXY_E_INVALID_ARG when client or plist is NULL |
| 117 | */ | 117 | */ |
| 118 | companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, plist_t * plist); | 118 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, plist_t * plist); |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | * Retrieves a list of paired devices. | 121 | * Retrieves a list of paired devices. |
| @@ -129,7 +129,7 @@ companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, | |||
| 129 | * COMPANION_PROXY_E_NO_DEVICES if no devices are paired, | 129 | * COMPANION_PROXY_E_NO_DEVICES if no devices are paired, |
| 130 | * or a COMPANION_PROXY_E_* error code otherwise. | 130 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 131 | */ | 131 | */ |
| 132 | companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_client_t client, plist_t* paired_devices); | 132 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_client_t client, plist_t* paired_devices); |
| 133 | 133 | ||
| 134 | /** | 134 | /** |
| 135 | * Starts listening for paired devices. | 135 | * Starts listening for paired devices. |
| @@ -145,7 +145,7 @@ companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_clie | |||
| 145 | * @return COMPANION_PROXY_E_SUCCESS on success, | 145 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 146 | * or a COMPANION_PROXY_E_* error code otherwise. | 146 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 147 | */ | 147 | */ |
| 148 | companion_proxy_error_t companion_proxy_start_listening_for_devices(companion_proxy_client_t client, companion_proxy_device_event_cb_t callback, void* userdata); | 148 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_start_listening_for_devices(companion_proxy_client_t client, companion_proxy_device_event_cb_t callback, void* userdata); |
| 149 | 149 | ||
| 150 | /** | 150 | /** |
| 151 | * Stops listening for paired devices | 151 | * Stops listening for paired devices |
| @@ -155,7 +155,7 @@ companion_proxy_error_t companion_proxy_start_listening_for_devices(companion_pr | |||
| 155 | * @return COMPANION_PROXY_E_SUCCESS on success, | 155 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 156 | * or a COMPANION_PROXY_E_* error code otherwise. | 156 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 157 | */ | 157 | */ |
| 158 | companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_proxy_client_t client); | 158 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_proxy_client_t client); |
| 159 | 159 | ||
| 160 | /** | 160 | /** |
| 161 | * Returns a value for the given key. | 161 | * Returns a value for the given key. |
| @@ -173,7 +173,7 @@ companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_pro | |||
| 173 | * COMPANION_PROXY_E_UNSUPPORTED_KEY if the companion device doesn't support the given key, | 173 | * COMPANION_PROXY_E_UNSUPPORTED_KEY if the companion device doesn't support the given key, |
| 174 | * or a COMPANION_PROXY_E_* error code otherwise. | 174 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 175 | */ | 175 | */ |
| 176 | companion_proxy_error_t companion_proxy_get_value_from_registry(companion_proxy_client_t client, const char* companion_udid, const char* key, plist_t* value); | 176 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_get_value_from_registry(companion_proxy_client_t client, const char* companion_udid, const char* key, plist_t* value); |
| 177 | 177 | ||
| 178 | /** | 178 | /** |
| 179 | * Start forwarding a service port on the companion device to a port on the idevice. | 179 | * Start forwarding a service port on the companion device to a port on the idevice. |
| @@ -190,7 +190,7 @@ companion_proxy_error_t companion_proxy_get_value_from_registry(companion_proxy_ | |||
| 190 | * @return COMPANION_PROXY_E_SUCCESS on success, | 190 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 191 | * or a COMPANION_PROXY_E_* error code otherwise. | 191 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 192 | */ | 192 | */ |
| 193 | companion_proxy_error_t companion_proxy_start_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port, const char* service_name, uint16_t* forward_port, plist_t options); | 193 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_start_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port, const char* service_name, uint16_t* forward_port, plist_t options); |
| 194 | 194 | ||
| 195 | /** | 195 | /** |
| 196 | * Stop forwarding a service port between companion device and idevice. | 196 | * Stop forwarding a service port between companion device and idevice. |
| @@ -203,7 +203,7 @@ companion_proxy_error_t companion_proxy_start_forwarding_service_port(companion_ | |||
| 203 | * @return COMPANION_PROXY_E_SUCCESS on success, | 203 | * @return COMPANION_PROXY_E_SUCCESS on success, |
| 204 | * or a COMPANION_PROXY_E_* error code otherwise. | 204 | * or a COMPANION_PROXY_E_* error code otherwise. |
| 205 | */ | 205 | */ |
| 206 | companion_proxy_error_t companion_proxy_stop_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port); | 206 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_stop_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port); |
| 207 | 207 | ||
| 208 | #ifdef __cplusplus | 208 | #ifdef __cplusplus |
| 209 | } | 209 | } |
