diff options
| author | 2009-07-03 22:20:19 +0200 | |
|---|---|---|
| committer | 2009-07-07 08:31:25 -0700 | |
| commit | 6de08b1e12946b85a595f82c1c04391d70d8b828 (patch) | |
| tree | 82466625784125b98a88baf0017b9cd50bc20fd0 /include | |
| parent | 9990d53ba2ff4e92b1844beb001dcc9c47d30f3e (diff) | |
| download | libimobiledevice-6de08b1e12946b85a595f82c1c04391d70d8b828.tar.gz libimobiledevice-6de08b1e12946b85a595f82c1c04391d70d8b828.tar.bz2 | |
Support for creating hard- and symlinks
Diffstat (limited to 'include')
| -rw-r--r-- | include/libiphone/libiphone.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index fc24d35..463efa7 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -63,6 +63,11 @@ typedef enum { | |||
| 63 | AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT | 63 | AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT |
| 64 | } iphone_afc_file_mode_t; | 64 | } iphone_afc_file_mode_t; |
| 65 | 65 | ||
| 66 | typedef enum { | ||
| 67 | IPHONE_AFC_HARDLINK = 1, | ||
| 68 | IPHONE_AFC_SYMLINK = 2 | ||
| 69 | } iphone_afc_link_type_t; | ||
| 70 | |||
| 66 | struct iphone_device_int; | 71 | struct iphone_device_int; |
| 67 | typedef struct iphone_device_int *iphone_device_t; | 72 | typedef struct iphone_device_int *iphone_device_t; |
| 68 | 73 | ||
| @@ -127,7 +132,7 @@ iphone_error_t iphone_afc_delete_file ( iphone_afc_client_t client, const char * | |||
| 127 | iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); | 132 | iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); |
| 128 | iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); | 133 | iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); |
| 129 | iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, off_t newsize); | 134 | iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, off_t newsize); |
| 130 | 135 | iphone_error_t iphone_afc_make_link ( iphone_afc_client_t client, iphone_afc_link_type_t linktype, const char *target, const char *linkname); | |
| 131 | 136 | ||
| 132 | 137 | ||
| 133 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, | 138 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, |
