diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libiphone/libiphone.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 32d47d3..9823bed 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -29,6 +29,7 @@ extern "C" { | |||
| 29 | #include <stdint.h> | 29 | #include <stdint.h> |
| 30 | #include <sys/types.h> | 30 | #include <sys/types.h> |
| 31 | #include <sys/stat.h> | 31 | #include <sys/stat.h> |
| 32 | #include <plist/plist.h> | ||
| 32 | 33 | ||
| 33 | //general errors | 34 | //general errors |
| 34 | #define IPHONE_E_SUCCESS 0 | 35 | #define IPHONE_E_SUCCESS 0 |
| @@ -77,8 +78,20 @@ typedef struct iphone_afc_client_int *iphone_afc_client_t; | |||
| 77 | struct iphone_afc_file_int; | 78 | struct iphone_afc_file_int; |
| 78 | typedef struct iphone_afc_file_int *iphone_afc_file_t; | 79 | typedef struct iphone_afc_file_int *iphone_afc_file_t; |
| 79 | 80 | ||
| 80 | //device related functions | 81 | struct iphone_msync_client_int; |
| 82 | typedef struct iphone_msync_client_int *iphone_msync_client_t; | ||
| 83 | |||
| 84 | //debug related functions | ||
| 85 | #define DBGMASK_ALL 0xFFFF | ||
| 86 | #define DBGMASK_NONE 0x0000 | ||
| 87 | #define DBGMASK_USBMUX (1 << 1) | ||
| 88 | #define DBGMASK_LOCKDOWND (1 << 2) | ||
| 89 | #define DBGMASK_MOBILESYNC (1 << 3) | ||
| 90 | |||
| 91 | void iphone_set_debug_mask(uint16_t mask); | ||
| 81 | void iphone_set_debug(int level); | 92 | void iphone_set_debug(int level); |
| 93 | |||
| 94 | //device related functions | ||
| 82 | iphone_error_t iphone_get_device ( iphone_device_t *device ); | 95 | iphone_error_t iphone_get_device ( iphone_device_t *device ); |
| 83 | iphone_error_t iphone_free_device ( iphone_device_t device ); | 96 | iphone_error_t iphone_free_device ( iphone_device_t device ); |
| 84 | 97 | ||
| @@ -89,8 +102,8 @@ iphone_error_t iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_clie | |||
| 89 | iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client ); | 102 | iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client ); |
| 90 | 103 | ||
| 91 | iphone_error_t iphone_lckd_start_service ( iphone_lckd_client_t client, const char *service, int *port ); | 104 | iphone_error_t iphone_lckd_start_service ( iphone_lckd_client_t client, const char *service, int *port ); |
| 92 | iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, char **dump_data, uint32_t *recv_bytes ); | 105 | iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, plist_t* plist); |
| 93 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, char *raw_data, uint32_t length, uint32_t *recv_bytes ); | 106 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); |
| 94 | 107 | ||
| 95 | 108 | ||
| 96 | //usbmux related functions | 109 | //usbmux related functions |
| @@ -120,6 +133,14 @@ iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char * | |||
| 120 | iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); | 133 | iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); |
| 121 | 134 | ||
| 122 | 135 | ||
| 136 | |||
| 137 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, | ||
| 138 | iphone_msync_client_t * client); | ||
| 139 | iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); | ||
| 140 | |||
| 141 | iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist); | ||
| 142 | iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); | ||
| 143 | |||
| 123 | #ifdef __cplusplus | 144 | #ifdef __cplusplus |
| 124 | } | 145 | } |
| 125 | #endif | 146 | #endif |
