Mercurial > hg > th-libs
diff th_file.h @ 475:77d1af382e08
Improve th_stat_path() by changing flags into a struct and adding more information.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Jul 2018 07:28:13 +0300 |
parents | 7fca448847a3 |
children | b1e80180818a |
line wrap: on
line diff
--- a/th_file.h Mon Jul 02 00:01:50 2018 +0300 +++ b/th_file.h Mon Jul 09 07:28:13 2018 +0300 @@ -35,10 +35,18 @@ }; +typedef struct +{ + int flags; + off_t size; + uint64_t atime, mtime; +} th_stat_data; + + char * th_get_home_dir(); char * th_get_config_dir(const char *name); -BOOL th_stat_path(const char *path, int *flags); +BOOL th_stat_path(const char *path, th_stat_data *data); BOOL th_mkdir_path(const char *cpath, int mode);