summaryrefslogtreecommitdiffstats
path: root/include/libiphone
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiphone')
-rw-r--r--include/libiphone/libiphone.h22
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;
68struct iphone_lckd_client_int; 69struct iphone_lckd_client_int;
69typedef struct iphone_lckd_client_int *iphone_lckd_client_t; 70typedef struct iphone_lckd_client_int *iphone_lckd_client_t;
70 71
71struct iphone_umux_client_int;
72typedef struct iphone_umux_client_int *iphone_umux_client_t;
73
74struct iphone_afc_client_int; 72struct iphone_afc_client_int;
75typedef struct iphone_afc_client_int *iphone_afc_client_t; 73typedef 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
97iphone_error_t iphone_get_device ( iphone_device_t *device ); 95iphone_error_t iphone_get_device ( iphone_device_t *device );
98iphone_error_t iphone_get_specific_device( unsigned int bus_n, int dev_n, iphone_device_t * device ); 96iphone_error_t iphone_get_device_by_uuid ( iphone_device_t *device, const char *uuid );
99iphone_error_t iphone_free_device ( iphone_device_t device ); 97iphone_error_t iphone_free_device ( iphone_device_t device );
100 98
99uint32_t iphone_get_device_handle ( iphone_device_t device );
101 100
102//lockdownd related functions 101//lockdownd related functions
103iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); 102iphone_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);
110iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); 109iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist);
111 110
112 111
113//usbmux related functions
114iphone_error_t iphone_mux_new_client ( iphone_device_t device, uint16_t src_port, uint16_t dst_port, iphone_umux_client_t *client );
115iphone_error_t iphone_mux_free_client ( iphone_umux_client_t client );
116
117iphone_error_t iphone_mux_send ( iphone_umux_client_t client, const char *data, uint32_t datalen, uint32_t *sent_bytes );
118iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes );
119iphone_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
123iphone_error_t iphone_afc_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_afc_client_t *client ); 113iphone_error_t iphone_afc_new_client ( iphone_device_t device, int dst_port, iphone_afc_client_t *client );
124iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); 114iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client );
125int iphone_afc_get_afcerror ( iphone_afc_client_t client ); 115int iphone_afc_get_afcerror ( iphone_afc_client_t client );
126int iphone_afc_get_errno ( iphone_afc_client_t client ); 116int 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
146iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, 136iphone_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);
148iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); 138iphone_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
170iphone_error_t iphone_np_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_np_client_t *client ); 160iphone_error_t iphone_np_new_client ( iphone_device_t device, int dst_port, iphone_np_client_t *client );
171iphone_error_t iphone_np_free_client ( iphone_np_client_t client ); 161iphone_error_t iphone_np_free_client ( iphone_np_client_t client );
172 162
173iphone_error_t iphone_np_post_notification ( iphone_np_client_t client, const char *notification ); 163iphone_error_t iphone_np_post_notification ( iphone_np_client_t client, const char *notification );