diff options
| author | 2024-01-08 12:17:20 -0600 | |
|---|---|---|
| committer | 2024-01-08 12:17:20 -0600 | |
| commit | d38c13b2fe1293b499312bb4cfd66a56108c4b5e (patch) | |
| tree | 998438c400a6b05f13d145270e95a9236ed7fb87 /src/l2su.h | |
| parent | add to-do list (diff) | |
WIP: JRE stuff
Diffstat (limited to 'src/l2su.h')
| -rw-r--r-- | src/l2su.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -46,6 +46,25 @@ int l2_launcher_open_config(const char *path, int flags, mode_t mode); int l2_launcher_mkdir_parents(const char *path); int l2_launcher_mkdir_parents_ex(const char *path, unsigned ignore); +int l2_launcher_rm_tree(const char *path, int nfds); + +struct l2_ftw_data { + int depth; + int reloffset; + void *user; +}; + +enum { + L2_FTW_FILE = 0, + L2_FTW_DIR = 1, + L2_FTW_SYMLINK = 2, + L2_FTW_TYPEMASK = 3, + L2_FTW_NONEXIST = 4 +}; + +typedef int (l2_ftw_proc_t)(const char * /*fname*/, const struct stat * /*sb*/, int /*flags*/, struct l2_ftw_data * /*data*/); + +int l2_launcher_ftw(const char *path, int depth, l2_ftw_proc_t *proc, void *user); char *l2_launcher_parse_iso_time(const char *str, struct tm *ts); |
