aboutsummaryrefslogtreecommitdiffstats
path: root/src/l2su.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2024-01-08 12:17:20 -0600
committerLibravatar bigfoot547 <[email protected]>2024-01-08 12:17:20 -0600
commitd38c13b2fe1293b499312bb4cfd66a56108c4b5e (patch)
tree998438c400a6b05f13d145270e95a9236ed7fb87 /src/l2su.h
parentadd to-do list (diff)
WIP: JRE stuff
Diffstat (limited to 'src/l2su.h')
-rw-r--r--src/l2su.h19
1 files changed, 19 insertions, 0 deletions
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);