diff options
Diffstat (limited to 'src/reverse_proxy.c')
| -rw-r--r-- | src/reverse_proxy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/reverse_proxy.c b/src/reverse_proxy.c index bca0a13..2fcfdd1 100644 --- a/src/reverse_proxy.c +++ b/src/reverse_proxy.c | |||
| @@ -528,7 +528,7 @@ static void* _reverse_proxy_control_thread(void *cdata) | |||
| 528 | return NULL; | 528 | return NULL; |
| 529 | } | 529 | } |
| 530 | 530 | ||
| 531 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_start_proxy(reverse_proxy_client_t client, int control_protocol_version) | 531 | reverse_proxy_error_t reverse_proxy_client_start_proxy(reverse_proxy_client_t client, int control_protocol_version) |
| 532 | { | 532 | { |
| 533 | char buf[16] = {0, }; | 533 | char buf[16] = {0, }; |
| 534 | uint32_t bytes = 0; | 534 | uint32_t bytes = 0; |
| @@ -607,7 +607,7 @@ LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_start_proxy(reve | |||
| 607 | return err; | 607 | return err; |
| 608 | } | 608 | } |
| 609 | 609 | ||
| 610 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_service(idevice_t device, reverse_proxy_client_t* client, const char* label) | 610 | reverse_proxy_error_t reverse_proxy_client_create_with_service(idevice_t device, reverse_proxy_client_t* client, const char* label) |
| 611 | { | 611 | { |
| 612 | reverse_proxy_error_t err = REVERSE_PROXY_E_UNKNOWN_ERROR; | 612 | reverse_proxy_error_t err = REVERSE_PROXY_E_UNKNOWN_ERROR; |
| 613 | service_client_factory_start_service(device, "com.apple.PurpleReverseProxy.Ctrl", (void**)client, label, SERVICE_CONSTRUCTOR(reverse_proxy_client_new), &err); | 613 | service_client_factory_start_service(device, "com.apple.PurpleReverseProxy.Ctrl", (void**)client, label, SERVICE_CONSTRUCTOR(reverse_proxy_client_new), &err); |
| @@ -620,7 +620,7 @@ LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_serv | |||
| 620 | return REVERSE_PROXY_E_SUCCESS; | 620 | return REVERSE_PROXY_E_SUCCESS; |
| 621 | } | 621 | } |
| 622 | 622 | ||
| 623 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_port(idevice_t device, reverse_proxy_client_t* client, uint16_t device_port) | 623 | reverse_proxy_error_t reverse_proxy_client_create_with_port(idevice_t device, reverse_proxy_client_t* client, uint16_t device_port) |
| 624 | { | 624 | { |
| 625 | reverse_proxy_client_t client_loc = NULL; | 625 | reverse_proxy_client_t client_loc = NULL; |
| 626 | reverse_proxy_error_t err; | 626 | reverse_proxy_error_t err; |
| @@ -641,7 +641,7 @@ LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_port | |||
| 641 | return REVERSE_PROXY_E_SUCCESS; | 641 | return REVERSE_PROXY_E_SUCCESS; |
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_free(reverse_proxy_client_t client) | 644 | reverse_proxy_error_t reverse_proxy_client_free(reverse_proxy_client_t client) |
| 645 | { | 645 | { |
| 646 | if (!client) | 646 | if (!client) |
| 647 | return REVERSE_PROXY_E_INVALID_ARG; | 647 | return REVERSE_PROXY_E_INVALID_ARG; |
| @@ -660,14 +660,14 @@ LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_free(reverse_pro | |||
| 660 | return err; | 660 | return err; |
| 661 | } | 661 | } |
| 662 | 662 | ||
| 663 | LIBIMOBILEDEVICE_API reverse_proxy_client_type_t reverse_proxy_get_type(reverse_proxy_client_t client) | 663 | reverse_proxy_client_type_t reverse_proxy_get_type(reverse_proxy_client_t client) |
| 664 | { | 664 | { |
| 665 | if (!client) | 665 | if (!client) |
| 666 | return 0; | 666 | return 0; |
| 667 | return client->type; | 667 | return client->type; |
| 668 | } | 668 | } |
| 669 | 669 | ||
| 670 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_status_callback(reverse_proxy_client_t client, reverse_proxy_status_cb_t status_callback, void* user_data) | 670 | void reverse_proxy_client_set_status_callback(reverse_proxy_client_t client, reverse_proxy_status_cb_t status_callback, void* user_data) |
| 671 | { | 671 | { |
| 672 | if (!client) { | 672 | if (!client) { |
| 673 | return; | 673 | return; |
| @@ -676,7 +676,7 @@ LIBIMOBILEDEVICE_API void reverse_proxy_client_set_status_callback(reverse_proxy | |||
| 676 | client->status_cb_user_data = user_data; | 676 | client->status_cb_user_data = user_data; |
| 677 | } | 677 | } |
| 678 | 678 | ||
| 679 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_log_callback(reverse_proxy_client_t client, reverse_proxy_log_cb_t log_callback, void* user_data) | 679 | void reverse_proxy_client_set_log_callback(reverse_proxy_client_t client, reverse_proxy_log_cb_t log_callback, void* user_data) |
| 680 | { | 680 | { |
| 681 | if (!client) { | 681 | if (!client) { |
| 682 | return; | 682 | return; |
| @@ -685,7 +685,7 @@ LIBIMOBILEDEVICE_API void reverse_proxy_client_set_log_callback(reverse_proxy_cl | |||
| 685 | client->log_cb_user_data = user_data; | 685 | client->log_cb_user_data = user_data; |
| 686 | } | 686 | } |
| 687 | 687 | ||
| 688 | LIBIMOBILEDEVICE_API void reverse_proxy_client_set_data_callback(reverse_proxy_client_t client, reverse_proxy_data_cb_t data_callback, void* user_data) | 688 | void reverse_proxy_client_set_data_callback(reverse_proxy_client_t client, reverse_proxy_data_cb_t data_callback, void* user_data) |
| 689 | { | 689 | { |
| 690 | if (!client) { | 690 | if (!client) { |
| 691 | return; | 691 | return; |
