diff options
Diffstat (limited to 'src/property_list_service.c')
| -rw-r--r-- | src/property_list_service.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index c260d3e..931c1ef 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -54,7 +54,7 @@ static property_list_service_error_t service_to_property_list_service_error(serv | |||
| 54 | return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR; | 54 | return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR; |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | property_list_service_error_t property_list_service_client_new(idevice_t device, lockdownd_service_descriptor_t service, property_list_service_client_t *client) | 57 | 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) |
| 58 | { | 58 | { |
| 59 | if (!device || !service || service->port == 0 || !client || *client) | 59 | if (!device || !service || service->port == 0 || !client || *client) |
| 60 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 60 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
| @@ -74,7 +74,7 @@ property_list_service_error_t property_list_service_client_new(idevice_t device, | |||
| 74 | return PROPERTY_LIST_SERVICE_E_SUCCESS; | 74 | return PROPERTY_LIST_SERVICE_E_SUCCESS; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | property_list_service_error_t property_list_service_client_free(property_list_service_client_t client) | 77 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_client_free(property_list_service_client_t client) |
| 78 | { | 78 | { |
| 79 | if (!client) | 79 | if (!client) |
| 80 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 80 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
| @@ -147,12 +147,12 @@ static property_list_service_error_t internal_plist_send(property_list_service_c | |||
| 147 | return res; | 147 | return res; |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist) | 150 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist) |
| 151 | { | 151 | { |
| 152 | return internal_plist_send(client, plist, 0); | 152 | return internal_plist_send(client, plist, 0); |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist) | 155 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist) |
| 156 | { | 156 | { |
| 157 | return internal_plist_send(client, plist, 1); | 157 | return internal_plist_send(client, plist, 1); |
| 158 | } | 158 | } |
| @@ -250,24 +250,24 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis | |||
| 250 | return res; | 250 | return res; |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | property_list_service_error_t property_list_service_receive_plist_with_timeout(property_list_service_client_t client, plist_t *plist, unsigned int timeout) | 253 | 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) |
| 254 | { | 254 | { |
| 255 | return internal_plist_receive_timeout(client, plist, timeout); | 255 | return internal_plist_receive_timeout(client, plist, timeout); |
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist) | 258 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist) |
| 259 | { | 259 | { |
| 260 | return internal_plist_receive_timeout(client, plist, 10000); | 260 | return internal_plist_receive_timeout(client, plist, 10000); |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client) | 263 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client) |
| 264 | { | 264 | { |
| 265 | if (!client || !client->parent) | 265 | if (!client || !client->parent) |
| 266 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 266 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
| 267 | return service_to_property_list_service_error(service_enable_ssl(client->parent)); | 267 | return service_to_property_list_service_error(service_enable_ssl(client->parent)); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client) | 270 | LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client) |
| 271 | { | 271 | { |
| 272 | if (!client || !client->parent) | 272 | if (!client || !client->parent) |
| 273 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 273 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
