diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/property_list_service.c | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'src/property_list_service.c')
-rw-r--r-- | src/property_list_service.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index 4654b6e..2fca4e7 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
@@ -58,7 +58,7 @@ static property_list_service_error_t service_to_property_list_service_error(serv | |||
58 | return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR; | 58 | return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR; |
59 | } | 59 | } |
60 | 60 | ||
61 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_client_new(idevice_t device, lockdownd_service_descriptor_t service, property_list_service_client_t *client) | 61 | property_list_service_error_t property_list_service_client_new(idevice_t device, lockdownd_service_descriptor_t service, property_list_service_client_t *client) |
62 | { | 62 | { |
63 | if (!device || !service || service->port == 0 || !client || *client) | 63 | if (!device || !service || service->port == 0 || !client || *client) |
64 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 64 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
@@ -78,7 +78,7 @@ LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_client_ | |||
78 | return PROPERTY_LIST_SERVICE_E_SUCCESS; | 78 | return PROPERTY_LIST_SERVICE_E_SUCCESS; |
79 | } | 79 | } |
80 | 80 | ||
81 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_client_free(property_list_service_client_t client) | 81 | property_list_service_error_t property_list_service_client_free(property_list_service_client_t client) |
82 | { | 82 | { |
83 | if (!client) | 83 | if (!client) |
84 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 84 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
@@ -152,12 +152,12 @@ static property_list_service_error_t internal_plist_send(property_list_service_c | |||
152 | return res; | 152 | return res; |
153 | } | 153 | } |
154 | 154 | ||
155 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist) | 155 | property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist) |
156 | { | 156 | { |
157 | return internal_plist_send(client, plist, 0); | 157 | return internal_plist_send(client, plist, 0); |
158 | } | 158 | } |
159 | 159 | ||
160 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist) | 160 | property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist) |
161 | { | 161 | { |
162 | return internal_plist_send(client, plist, 1); | 162 | return internal_plist_send(client, plist, 1); |
163 | } | 163 | } |
@@ -262,31 +262,31 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis | |||
262 | return res; | 262 | return res; |
263 | } | 263 | } |
264 | 264 | ||
265 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_receive_plist_with_timeout(property_list_service_client_t client, plist_t *plist, unsigned int timeout) | 265 | property_list_service_error_t property_list_service_receive_plist_with_timeout(property_list_service_client_t client, plist_t *plist, unsigned int timeout) |
266 | { | 266 | { |
267 | return internal_plist_receive_timeout(client, plist, timeout); | 267 | return internal_plist_receive_timeout(client, plist, timeout); |
268 | } | 268 | } |
269 | 269 | ||
270 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist) | 270 | property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist) |
271 | { | 271 | { |
272 | return internal_plist_receive_timeout(client, plist, 30000); | 272 | return internal_plist_receive_timeout(client, plist, 30000); |
273 | } | 273 | } |
274 | 274 | ||
275 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client) | 275 | property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client) |
276 | { | 276 | { |
277 | if (!client || !client->parent) | 277 | if (!client || !client->parent) |
278 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 278 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
279 | return service_to_property_list_service_error(service_enable_ssl(client->parent)); | 279 | return service_to_property_list_service_error(service_enable_ssl(client->parent)); |
280 | } | 280 | } |
281 | 281 | ||
282 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client) | 282 | property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client) |
283 | { | 283 | { |
284 | if (!client || !client->parent) | 284 | if (!client || !client->parent) |
285 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 285 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
286 | return service_to_property_list_service_error(service_disable_ssl(client->parent)); | 286 | return service_to_property_list_service_error(service_disable_ssl(client->parent)); |
287 | } | 287 | } |
288 | 288 | ||
289 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_get_service_client(property_list_service_client_t client, service_client_t *service_client) | 289 | property_list_service_error_t property_list_service_get_service_client(property_list_service_client_t client, service_client_t *service_client) |
290 | { | 290 | { |
291 | if (!client || !client->parent || !service_client) | 291 | if (!client || !client->parent || !service_client) |
292 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 292 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |