diff options
| author | 2009-04-12 13:09:25 +0200 | |
|---|---|---|
| committer | 2009-04-12 13:09:25 +0200 | |
| commit | e1751b8c02822da3881b41a8e07a36665a163130 (patch) | |
| tree | 76679eec9f375789c5e302f68ef27d7dc1643825 /iphone.h | |
| parent | 0915fa88ac895e2ccbe6e34669c8b1bd73a5034e (diff) | |
| download | usbmuxd-e1751b8c02822da3881b41a8e07a36665a163130.tar.gz usbmuxd-e1751b8c02822da3881b41a8e07a36665a163130.tar.bz2 | |
better error handling, some cleanup, and changed confusing
struct/variable naming.
Diffstat (limited to 'iphone.h')
| -rw-r--r-- | iphone.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -50,6 +50,7 @@ | |||
| 50 | #define IPHONE_E_ETIMEDOUT -ETIMEDOUT | 50 | #define IPHONE_E_ETIMEDOUT -ETIMEDOUT |
| 51 | #define IPHONE_E_ECONNREFUSED -ECONNREFUSED | 51 | #define IPHONE_E_ECONNREFUSED -ECONNREFUSED |
| 52 | 52 | ||
| 53 | void iphone_set_debug(int e); | ||
| 53 | 54 | ||
| 54 | typedef int16_t iphone_error_t; | 55 | typedef int16_t iphone_error_t; |
| 55 | 56 | ||
| @@ -72,7 +73,7 @@ iphone_error_t iphone_mux_send(iphone_umux_client_t client, const char *data, ui | |||
| 72 | iphone_error_t iphone_mux_recv(iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t * recv_bytes); | 73 | iphone_error_t iphone_mux_recv(iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t * recv_bytes); |
| 73 | iphone_error_t iphone_mux_recv_timeout(iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t * recv_bytes, int timeout); | 74 | iphone_error_t iphone_mux_recv_timeout(iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t * recv_bytes, int timeout); |
| 74 | 75 | ||
| 75 | void iphone_mux_pullbulk(iphone_device_t phone); | 76 | int iphone_mux_pullbulk(iphone_device_t phone); |
| 76 | 77 | ||
| 77 | iphone_error_t iphone_mux_get_error(iphone_umux_client_t client); | 78 | iphone_error_t iphone_mux_get_error(iphone_umux_client_t client); |
| 78 | 79 | ||
