diff options
Diffstat (limited to 'src/file_relay.c')
| -rw-r--r-- | src/file_relay.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/file_relay.c b/src/file_relay.c index 9508c2a..64b04ad 100644 --- a/src/file_relay.c +++ b/src/file_relay.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #include "property_list_service.h" | 24 | #include "property_list_service.h" |
| 25 | #include "common/debug.h" | 25 | #include "common/debug.h" |
| 26 | 26 | ||
| 27 | file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, file_relay_client_t *client) | 27 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, file_relay_client_t *client) |
| 28 | { | 28 | { |
| 29 | if (!device || !service || service->port == 0 || !client || *client) { | 29 | if (!device || !service || service->port == 0 || !client || *client) { |
| 30 | return FILE_RELAY_E_INVALID_ARG; | 30 | return FILE_RELAY_E_INVALID_ARG; |
| @@ -44,14 +44,14 @@ file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_des | |||
| 44 | return FILE_RELAY_E_SUCCESS; | 44 | return FILE_RELAY_E_SUCCESS; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | file_relay_error_t file_relay_client_start_service(idevice_t device, file_relay_client_t * client, const char* label) | 47 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_start_service(idevice_t device, file_relay_client_t * client, const char* label) |
| 48 | { | 48 | { |
| 49 | file_relay_error_t err = FILE_RELAY_E_UNKNOWN_ERROR; | 49 | file_relay_error_t err = FILE_RELAY_E_UNKNOWN_ERROR; |
| 50 | service_client_factory_start_service(device, FILE_RELAY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(file_relay_client_new), &err); | 50 | service_client_factory_start_service(device, FILE_RELAY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(file_relay_client_new), &err); |
| 51 | return err; | 51 | return err; |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | file_relay_error_t file_relay_client_free(file_relay_client_t client) | 54 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_free(file_relay_client_t client) |
| 55 | { | 55 | { |
| 56 | if (!client) | 56 | if (!client) |
| 57 | return FILE_RELAY_E_INVALID_ARG; | 57 | return FILE_RELAY_E_INVALID_ARG; |
| @@ -62,7 +62,7 @@ file_relay_error_t file_relay_client_free(file_relay_client_t client) | |||
| 62 | return FILE_RELAY_E_SUCCESS; | 62 | return FILE_RELAY_E_SUCCESS; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | file_relay_error_t file_relay_request_sources_timeout(file_relay_client_t client, const char **sources, idevice_connection_t *connection, unsigned int timeout) | 65 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_request_sources_timeout(file_relay_client_t client, const char **sources, idevice_connection_t *connection, unsigned int timeout) |
| 66 | { | 66 | { |
| 67 | if (!client || !client->parent || !sources || !sources[0]) { | 67 | if (!client || !client->parent || !sources || !sources[0]) { |
| 68 | return FILE_RELAY_E_INVALID_ARG; | 68 | return FILE_RELAY_E_INVALID_ARG; |
| @@ -154,7 +154,7 @@ leave: | |||
| 154 | return err; | 154 | return err; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | file_relay_error_t file_relay_request_sources(file_relay_client_t client, const char **sources, idevice_connection_t *connection) | 157 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_request_sources(file_relay_client_t client, const char **sources, idevice_connection_t *connection) |
| 158 | { | 158 | { |
| 159 | return file_relay_request_sources_timeout(client, sources, connection, 60000); | 159 | return file_relay_request_sources_timeout(client, sources, connection, 60000); |
| 160 | } | 160 | } |
