From d38c13b2fe1293b499312bb4cfd66a56108c4b5e Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Mon, 8 Jan 2024 12:17:20 -0600 Subject: WIP: JRE stuff --- src/l2su.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/l2su.h') diff --git a/src/l2su.h b/src/l2su.h index e46aa12..477875c 100644 --- a/src/l2su.h +++ b/src/l2su.h @@ -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); -- cgit v1.2.3-70-g09d2