summaryrefslogtreecommitdiffstats
path: root/include/libiphone/libiphone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiphone/libiphone.h')
-rw-r--r--include/libiphone/libiphone.h27
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;
77struct iphone_afc_file_int; 78struct iphone_afc_file_int;
78typedef struct iphone_afc_file_int *iphone_afc_file_t; 79typedef struct iphone_afc_file_int *iphone_afc_file_t;
79 80
80//device related functions 81struct iphone_msync_client_int;
82typedef 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
91void iphone_set_debug_mask(uint16_t mask);
81void iphone_set_debug(int level); 92void iphone_set_debug(int level);
93
94//device related functions
82iphone_error_t iphone_get_device ( iphone_device_t *device ); 95iphone_error_t iphone_get_device ( iphone_device_t *device );
83iphone_error_t iphone_free_device ( iphone_device_t device ); 96iphone_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
89iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client ); 102iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client );
90 103
91iphone_error_t iphone_lckd_start_service ( iphone_lckd_client_t client, const char *service, int *port ); 104iphone_error_t iphone_lckd_start_service ( iphone_lckd_client_t client, const char *service, int *port );
92iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, char **dump_data, uint32_t *recv_bytes ); 105iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, plist_t* plist);
93iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, char *raw_data, uint32_t length, uint32_t *recv_bytes ); 106iphone_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 *
120iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); 133iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir);
121 134
122 135
136
137iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port,
138 iphone_msync_client_t * client);
139iphone_error_t iphone_msync_free_client(iphone_msync_client_t client);
140
141iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist);
142iphone_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