diff options
| author | 2009-10-30 18:07:20 +0100 | |
|---|---|---|
| committer | 2009-11-02 20:52:55 -0800 | |
| commit | 549f4389e3009d9f78b94d4a3570e29f428968ab (patch) | |
| tree | f5de57c8a5a3e54f634287743f0b638786b674ec /include/libiphone | |
| parent | d6226d01ce5bd00a85310061fb33d0510ecd7564 (diff) | |
| download | libimobiledevice-549f4389e3009d9f78b94d4a3570e29f428968ab.tar.gz libimobiledevice-549f4389e3009d9f78b94d4a3570e29f428968ab.tar.bz2 | |
AFC: new function afc_set_file_time
This function allows to set the modification time of a file. The
time value needs to be specified as nanoseconds since epoch.
[#81 state:resolved]
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'include/libiphone')
| -rw-r--r-- | include/libiphone/afc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libiphone/afc.h b/include/libiphone/afc.h index e913f91..1c714c9 100644 --- a/include/libiphone/afc.h +++ b/include/libiphone/afc.h | |||
| @@ -105,6 +105,7 @@ afc_error_t afc_rename_path(afc_client_t client, const char *from, const char *t | |||
| 105 | afc_error_t afc_make_directory(afc_client_t client, const char *dir); | 105 | afc_error_t afc_make_directory(afc_client_t client, const char *dir); |
| 106 | afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize); | 106 | afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize); |
| 107 | afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname); | 107 | afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname); |
| 108 | afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime); | ||
| 108 | 109 | ||
| 109 | /* Helper functions */ | 110 | /* Helper functions */ |
| 110 | afc_error_t afc_get_device_info_key(afc_client_t client, const char *key, char **value); | 111 | afc_error_t afc_get_device_info_key(afc_client_t client, const char *key, char **value); |
