diff options
Diffstat (limited to 'src/property_list_service.h')
| -rw-r--r-- | src/property_list_service.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/src/property_list_service.h b/src/property_list_service.h index 5c5f38f..6775c7c 100644 --- a/src/property_list_service.h +++ b/src/property_list_service.h | |||
| @@ -22,42 +22,11 @@ | |||
| 22 | #ifndef __PROPERTY_LIST_SERVICE_H | 22 | #ifndef __PROPERTY_LIST_SERVICE_H |
| 23 | #define __PROPERTY_LIST_SERVICE_H | 23 | #define __PROPERTY_LIST_SERVICE_H |
| 24 | 24 | ||
| 25 | #include <libimobiledevice/lockdown.h> | 25 | #include "libimobiledevice/property_list_service.h" |
| 26 | #include "service.h" | 26 | #include "service.h" |
| 27 | #include "idevice.h" | ||
| 28 | |||
| 29 | /* Error Codes */ | ||
| 30 | #define PROPERTY_LIST_SERVICE_E_SUCCESS 0 | ||
| 31 | #define PROPERTY_LIST_SERVICE_E_INVALID_ARG -1 | ||
| 32 | #define PROPERTY_LIST_SERVICE_E_PLIST_ERROR -2 | ||
| 33 | #define PROPERTY_LIST_SERVICE_E_MUX_ERROR -3 | ||
| 34 | #define PROPERTY_LIST_SERVICE_E_SSL_ERROR -4 | ||
| 35 | #define PROPERTY_LIST_SERVICE_E_RECEIVE_TIMEOUT -5 | ||
| 36 | |||
| 37 | #define PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR -256 | ||
| 38 | 27 | ||
| 39 | struct property_list_service_client_private { | 28 | struct property_list_service_client_private { |
| 40 | service_client_t parent; | 29 | service_client_t parent; |
| 41 | }; | 30 | }; |
| 42 | 31 | ||
| 43 | typedef struct property_list_service_client_private *property_list_service_client_t; | ||
| 44 | |||
| 45 | typedef int16_t property_list_service_error_t; | ||
| 46 | |||
| 47 | /* creation and destruction */ | ||
| 48 | property_list_service_error_t property_list_service_client_new(idevice_t device, lockdownd_service_descriptor_t service, property_list_service_client_t *client); | ||
| 49 | property_list_service_error_t property_list_service_client_free(property_list_service_client_t client); | ||
| 50 | |||
| 51 | /* sending */ | ||
| 52 | property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist); | ||
| 53 | property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist); | ||
| 54 | |||
| 55 | /* receiving */ | ||
| 56 | property_list_service_error_t property_list_service_receive_plist_with_timeout(property_list_service_client_t client, plist_t *plist, unsigned int timeout); | ||
| 57 | property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist); | ||
| 58 | |||
| 59 | /* misc */ | ||
| 60 | property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client); | ||
| 61 | property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client); | ||
| 62 | |||
| 63 | #endif | 32 | #endif |
