diff options
| author | 2024-01-31 02:57:11 +0100 | |
|---|---|---|
| committer | 2024-01-31 02:57:11 +0100 | |
| commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
| tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/companion_proxy.c | |
| parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
| download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 | |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'src/companion_proxy.c')
| -rw-r--r-- | src/companion_proxy.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/companion_proxy.c b/src/companion_proxy.c index 5852904..421fa9a 100644 --- a/src/companion_proxy.c +++ b/src/companion_proxy.c | |||
| @@ -62,7 +62,7 @@ static companion_proxy_error_t companion_proxy_error(property_list_service_error | |||
| 62 | return COMPANION_PROXY_E_UNKNOWN_ERROR; | 62 | return COMPANION_PROXY_E_UNKNOWN_ERROR; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, companion_proxy_client_t * client) | 65 | companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, companion_proxy_client_t * client) |
| 66 | { | 66 | { |
| 67 | *client = NULL; | 67 | *client = NULL; |
| 68 | 68 | ||
| @@ -90,14 +90,14 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_new(idevice_ | |||
| 90 | return COMPANION_PROXY_E_SUCCESS; | 90 | return COMPANION_PROXY_E_SUCCESS; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, companion_proxy_client_t * client, const char* label) | 93 | companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, companion_proxy_client_t * client, const char* label) |
| 94 | { | 94 | { |
| 95 | companion_proxy_error_t err = COMPANION_PROXY_E_UNKNOWN_ERROR; | 95 | companion_proxy_error_t err = COMPANION_PROXY_E_UNKNOWN_ERROR; |
| 96 | service_client_factory_start_service(device, COMPANION_PROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(companion_proxy_client_new), &err); | 96 | service_client_factory_start_service(device, COMPANION_PROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(companion_proxy_client_new), &err); |
| 97 | return err; | 97 | return err; |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t client) | 100 | companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t client) |
| 101 | { | 101 | { |
| 102 | if (!client) | 102 | if (!client) |
| 103 | return COMPANION_PROXY_E_INVALID_ARG; | 103 | return COMPANION_PROXY_E_INVALID_ARG; |
| @@ -116,7 +116,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_client_free(compani | |||
| 116 | return err; | 116 | return err; |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, plist_t plist) | 119 | companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, plist_t plist) |
| 120 | { | 120 | { |
| 121 | companion_proxy_error_t res = COMPANION_PROXY_E_UNKNOWN_ERROR; | 121 | companion_proxy_error_t res = COMPANION_PROXY_E_UNKNOWN_ERROR; |
| 122 | 122 | ||
| @@ -129,7 +129,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_send(companion_prox | |||
| 129 | return res; | 129 | return res; |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, plist_t * plist) | 132 | companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, plist_t * plist) |
| 133 | { | 133 | { |
| 134 | companion_proxy_error_t res = COMPANION_PROXY_E_UNKNOWN_ERROR; | 134 | companion_proxy_error_t res = COMPANION_PROXY_E_UNKNOWN_ERROR; |
| 135 | plist_t outplist = NULL; | 135 | plist_t outplist = NULL; |
| @@ -143,7 +143,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_receive(companion_p | |||
| 143 | return res; | 143 | return res; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_client_t client, plist_t* paired_devices) | 146 | companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_client_t client, plist_t* paired_devices) |
| 147 | { | 147 | { |
| 148 | if (!client || !paired_devices) { | 148 | if (!client || !paired_devices) { |
| 149 | return COMPANION_PROXY_E_INVALID_ARG; | 149 | return COMPANION_PROXY_E_INVALID_ARG; |
| @@ -226,7 +226,7 @@ static void* companion_proxy_event_thread(void* arg) | |||
| 226 | return NULL; | 226 | return NULL; |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | 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) | 229 | companion_proxy_error_t companion_proxy_start_listening_for_devices(companion_proxy_client_t client, companion_proxy_device_event_cb_t callback, void* userdata) |
| 230 | { | 230 | { |
| 231 | if (!client || !client->parent || !callback) { | 231 | if (!client || !client->parent || !callback) { |
| 232 | return COMPANION_PROXY_E_INVALID_ARG; | 232 | return COMPANION_PROXY_E_INVALID_ARG; |
| @@ -252,7 +252,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_start_listening_for | |||
| 252 | return res; | 252 | return res; |
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_proxy_client_t client) | 255 | companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_proxy_client_t client) |
| 256 | { | 256 | { |
| 257 | property_list_service_client_t parent = client->parent; | 257 | property_list_service_client_t parent = client->parent; |
| 258 | client->parent = NULL; | 258 | client->parent = NULL; |
| @@ -266,7 +266,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_stop_listening_for_ | |||
| 266 | return COMPANION_PROXY_E_SUCCESS; | 266 | return COMPANION_PROXY_E_SUCCESS; |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | 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) | 269 | 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) |
| 270 | { | 270 | { |
| 271 | if (!client || !companion_udid || !key || !value) { | 271 | if (!client || !companion_udid || !key || !value) { |
| 272 | return COMPANION_PROXY_E_INVALID_ARG; | 272 | return COMPANION_PROXY_E_INVALID_ARG; |
| @@ -310,7 +310,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_get_value_from_regi | |||
| 310 | return res; | 310 | return res; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | 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) | 313 | 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) |
| 314 | { | 314 | { |
| 315 | if (!client) { | 315 | if (!client) { |
| 316 | return COMPANION_PROXY_E_INVALID_ARG; | 316 | return COMPANION_PROXY_E_INVALID_ARG; |
| @@ -353,7 +353,7 @@ LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_start_forwarding_se | |||
| 353 | return res; | 353 | return res; |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | LIBIMOBILEDEVICE_API companion_proxy_error_t companion_proxy_stop_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port) | 356 | companion_proxy_error_t companion_proxy_stop_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port) |
| 357 | { | 357 | { |
| 358 | if (!client) { | 358 | if (!client) { |
| 359 | return COMPANION_PROXY_E_INVALID_ARG; | 359 | return COMPANION_PROXY_E_INVALID_ARG; |
