diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libiphone/libiphone.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index dedc78f..bd8d9fb 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -30,6 +30,7 @@ extern "C" { | |||
| 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 | #include <plist/plist.h> |
| 33 | #include <usbmuxd.h> | ||
| 33 | 34 | ||
| 34 | //general errors | 35 | //general errors |
| 35 | #define IPHONE_E_SUCCESS 0 | 36 | #define IPHONE_E_SUCCESS 0 |
| @@ -68,9 +69,6 @@ typedef struct iphone_device_int *iphone_device_t; | |||
| 68 | struct iphone_lckd_client_int; | 69 | struct iphone_lckd_client_int; |
| 69 | typedef struct iphone_lckd_client_int *iphone_lckd_client_t; | 70 | typedef struct iphone_lckd_client_int *iphone_lckd_client_t; |
| 70 | 71 | ||
| 71 | struct iphone_umux_client_int; | ||
| 72 | typedef struct iphone_umux_client_int *iphone_umux_client_t; | ||
| 73 | |||
| 74 | struct iphone_afc_client_int; | 72 | struct iphone_afc_client_int; |
| 75 | typedef struct iphone_afc_client_int *iphone_afc_client_t; | 73 | typedef struct iphone_afc_client_int *iphone_afc_client_t; |
| 76 | 74 | ||
| @@ -95,9 +93,10 @@ void iphone_set_debug(int level); | |||
| 95 | 93 | ||
| 96 | //device related functions | 94 | //device related functions |
| 97 | iphone_error_t iphone_get_device ( iphone_device_t *device ); | 95 | iphone_error_t iphone_get_device ( iphone_device_t *device ); |
| 98 | iphone_error_t iphone_get_specific_device( unsigned int bus_n, int dev_n, iphone_device_t * device ); | 96 | iphone_error_t iphone_get_device_by_uuid ( iphone_device_t *device, const char *uuid ); |
| 99 | iphone_error_t iphone_free_device ( iphone_device_t device ); | 97 | iphone_error_t iphone_free_device ( iphone_device_t device ); |
| 100 | 98 | ||
| 99 | uint32_t iphone_get_device_handle ( iphone_device_t device ); | ||
| 101 | 100 | ||
| 102 | //lockdownd related functions | 101 | //lockdownd related functions |
| 103 | iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); | 102 | iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); |
| @@ -110,17 +109,8 @@ iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, plist_t* plist); | |||
| 110 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); | 109 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); |
| 111 | 110 | ||
| 112 | 111 | ||
| 113 | //usbmux related functions | ||
| 114 | iphone_error_t iphone_mux_new_client ( iphone_device_t device, uint16_t src_port, uint16_t dst_port, iphone_umux_client_t *client ); | ||
| 115 | iphone_error_t iphone_mux_free_client ( iphone_umux_client_t client ); | ||
| 116 | |||
| 117 | iphone_error_t iphone_mux_send ( iphone_umux_client_t client, const char *data, uint32_t datalen, uint32_t *sent_bytes ); | ||
| 118 | iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes ); | ||
| 119 | iphone_error_t iphone_mux_recv_timeout ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes, int timeout); | ||
| 120 | |||
| 121 | |||
| 122 | //afc related functions | 112 | //afc related functions |
| 123 | iphone_error_t iphone_afc_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_afc_client_t *client ); | 113 | iphone_error_t iphone_afc_new_client ( iphone_device_t device, int dst_port, iphone_afc_client_t *client ); |
| 124 | iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); | 114 | iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); |
| 125 | int iphone_afc_get_afcerror ( iphone_afc_client_t client ); | 115 | int iphone_afc_get_afcerror ( iphone_afc_client_t client ); |
| 126 | int iphone_afc_get_errno ( iphone_afc_client_t client ); | 116 | int iphone_afc_get_errno ( iphone_afc_client_t client ); |
| @@ -143,7 +133,7 @@ iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, | |||
| 143 | 133 | ||
| 144 | 134 | ||
| 145 | 135 | ||
| 146 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, | 136 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, |
| 147 | iphone_msync_client_t * client); | 137 | iphone_msync_client_t * client); |
| 148 | iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); | 138 | iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); |
| 149 | 139 | ||
| @@ -167,7 +157,7 @@ iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); | |||
| 167 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | 157 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" |
| 168 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | 158 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" |
| 169 | 159 | ||
| 170 | iphone_error_t iphone_np_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_np_client_t *client ); | 160 | iphone_error_t iphone_np_new_client ( iphone_device_t device, int dst_port, iphone_np_client_t *client ); |
| 171 | iphone_error_t iphone_np_free_client ( iphone_np_client_t client ); | 161 | iphone_error_t iphone_np_free_client ( iphone_np_client_t client ); |
| 172 | 162 | ||
| 173 | iphone_error_t iphone_np_post_notification ( iphone_np_client_t client, const char *notification ); | 163 | iphone_error_t iphone_np_post_notification ( iphone_np_client_t client, const char *notification ); |
