diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/file_relay.c | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
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 aa77ae6..fbe7cbf 100644 --- a/src/file_relay.c +++ b/src/file_relay.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
29 | #include "common/debug.h" | 29 | #include "common/debug.h" |
30 | 30 | ||
31 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, file_relay_client_t *client) | 31 | file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, file_relay_client_t *client) |
32 | { | 32 | { |
33 | if (!device || !service || service->port == 0 || !client || *client) { | 33 | if (!device || !service || service->port == 0 || !client || *client) { |
34 | return FILE_RELAY_E_INVALID_ARG; | 34 | return FILE_RELAY_E_INVALID_ARG; |
@@ -48,14 +48,14 @@ LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_new(idevice_t device, | |||
48 | return FILE_RELAY_E_SUCCESS; | 48 | return FILE_RELAY_E_SUCCESS; |
49 | } | 49 | } |
50 | 50 | ||
51 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_start_service(idevice_t device, file_relay_client_t * client, const char* label) | 51 | file_relay_error_t file_relay_client_start_service(idevice_t device, file_relay_client_t * client, const char* label) |
52 | { | 52 | { |
53 | file_relay_error_t err = FILE_RELAY_E_UNKNOWN_ERROR; | 53 | file_relay_error_t err = FILE_RELAY_E_UNKNOWN_ERROR; |
54 | service_client_factory_start_service(device, FILE_RELAY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(file_relay_client_new), &err); | 54 | service_client_factory_start_service(device, FILE_RELAY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(file_relay_client_new), &err); |
55 | return err; | 55 | return err; |
56 | } | 56 | } |
57 | 57 | ||
58 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_free(file_relay_client_t client) | 58 | file_relay_error_t file_relay_client_free(file_relay_client_t client) |
59 | { | 59 | { |
60 | if (!client) | 60 | if (!client) |
61 | return FILE_RELAY_E_INVALID_ARG; | 61 | return FILE_RELAY_E_INVALID_ARG; |
@@ -67,7 +67,7 @@ LIBIMOBILEDEVICE_API file_relay_error_t file_relay_client_free(file_relay_client | |||
67 | return FILE_RELAY_E_SUCCESS; | 67 | return FILE_RELAY_E_SUCCESS; |
68 | } | 68 | } |
69 | 69 | ||
70 | 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) | 70 | file_relay_error_t file_relay_request_sources_timeout(file_relay_client_t client, const char **sources, idevice_connection_t *connection, unsigned int timeout) |
71 | { | 71 | { |
72 | if (!client || !client->parent || !sources || !sources[0]) { | 72 | if (!client || !client->parent || !sources || !sources[0]) { |
73 | return FILE_RELAY_E_INVALID_ARG; | 73 | return FILE_RELAY_E_INVALID_ARG; |
@@ -159,7 +159,7 @@ leave: | |||
159 | return err; | 159 | return err; |
160 | } | 160 | } |
161 | 161 | ||
162 | LIBIMOBILEDEVICE_API file_relay_error_t file_relay_request_sources(file_relay_client_t client, const char **sources, idevice_connection_t *connection) | 162 | file_relay_error_t file_relay_request_sources(file_relay_client_t client, const char **sources, idevice_connection_t *connection) |
163 | { | 163 | { |
164 | return file_relay_request_sources_timeout(client, sources, connection, 60000); | 164 | return file_relay_request_sources_timeout(client, sources, connection, 60000); |
165 | } | 165 | } |