summaryrefslogtreecommitdiffstats
path: root/include/libiphone/libiphone.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-19 22:41:18 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:19 +0200
commit318f4bd51a25d5572f2dfd6f26c89fce52f43076 (patch)
tree5c4642dc0a3ba1bcaae244a54a7ac42ea3cbe9b6 /include/libiphone/libiphone.h
parentc547987d49af50bf13c1da438443778ea5785388 (diff)
downloadlibimobiledevice-318f4bd51a25d5572f2dfd6f26c89fce52f43076.tar.gz
libimobiledevice-318f4bd51a25d5572f2dfd6f26c89fce52f43076.tar.bz2
fix header and add an error
Diffstat (limited to 'include/libiphone/libiphone.h')
-rw-r--r--include/libiphone/libiphone.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index c1553b5..230343e 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -31,32 +31,33 @@ extern "C" {
31 31
32//general errors 32//general errors
33#define IPHONE_E_SUCCESS 0 33#define IPHONE_E_SUCCESS 0
34#define IPHONE_E_NO_DEVICE -1 34#define IPHONE_E_INVALID_ARG -1
35#define IPHONE_E_TIMEOUT -2 35#define IPHONE_E_NO_DEVICE -2
36#define IPHONE_E_NOT_ENOUGH_DATA -3 36#define IPHONE_E_TIMEOUT -3
37#define IPHONE_E_NOT_ENOUGH_DATA -4
37 38
38//lockdownd specific error 39//lockdownd specific error
39#define IPHONE_E_INVALID_CONF -4 40#define IPHONE_E_INVALID_CONF -5
40#define IPHONE_E_PAIRING_FAILED -5 41#define IPHONE_E_PAIRING_FAILED -6
41#define IPHONE_E_SSL_ERROR -6 42#define IPHONE_E_SSL_ERROR -7
42 43
43//afc specific error 44//afc specific error
44#define IPHONE_E_NO_SUCH_FILE -7 45#define IPHONE_E_NO_SUCH_FILE -8
45 46
46struct iphone_device_int; 47struct iphone_device_int;
47typedef iphone_device_int *iphone_device_t; 48typedef struct iphone_device_int *iphone_device_t;
48 49
49struct iphone_lckd_client_int; 50struct iphone_lckd_client_int;
50typedef iphone_lckd_client_int *iphone_lckd_client_t; 51typedef struct iphone_lckd_client_int *iphone_lckd_client_t;
51 52
52struct iphone_umux_client_int; 53struct iphone_umux_client_int;
53typedef iphone_umux_client_int *iphone_umux_client_t; 54typedef struct iphone_umux_client_int *iphone_umux_client_t;
54 55
55struct iphone_afc_client_int; 56struct iphone_afc_client_int;
56typedef iphone_afc_client_int *iphone_afc_client_t; 57typedef struct iphone_afc_client_int *iphone_afc_client_t;
57 58
58struct iphone_afc_file_int; 59struct iphone_afc_file_int;
59typedef iphone_afc_file_int *iphone_afc_file_t; 60typedef struct iphone_afc_file_int *iphone_afc_file_t;
60 61
61//device related functions 62//device related functions
62int iphone_get_device ( iphone_device_t *device ); 63int iphone_get_device ( iphone_device_t *device );
@@ -88,12 +89,12 @@ char **iphone_afc_get_devinfo ( iphone_afc_client_t client );
88char **iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir); 89char **iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir);
89 90
90int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); 91int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf );
91int iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, uint32 file_mode, iphone_afc_file_t *file ); 92int iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, uint32_t file_mode, iphone_afc_file_t *file );
92void iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); 93void iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file);
93int iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length); 94int iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length);
94int iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length); 95int iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length);
95int iphone_afc_seek_file ( iphone_afc_client_t client, iphone_afc_file_t file, int seekpos); 96int iphone_afc_seek_file ( iphone_afc_client_t client, iphone_afc_file_t file, int seekpos);
96int iphone_afc_truncate_file ( iphone_afc_client_t client, iphone_afc_file_t file, uint32 newsize); 97int iphone_afc_truncate_file ( iphone_afc_client_t client, iphone_afc_file_t file, uint32_t newsize);
97int iphone_afc_delete_file ( iphone_afc_client_t client, const char *path); 98int iphone_afc_delete_file ( iphone_afc_client_t client, const char *path);
98int iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); 99int iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to);
99int iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); 100int iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir);