aboutsummaryrefslogtreecommitdiff
path: root/include/path.h
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-05-31 03:47:04 +0200
committerDavid Moc <personal@cdatgoose.org>2026-05-31 03:47:04 +0200
commit6aeaa171dc1ca43392f53cbd02097f76e1b1c5a0 (patch)
treeb16f559f5a701123ebe7b15ecebb9325263b4a3c /include/path.h
parente930cc6bdc7f62befac063d7d9d016ffb0a64f1a (diff)
Hardened API, tetris, MD-View
Diffstat (limited to 'include/path.h')
-rw-r--r--include/path.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h
new file mode 100644
index 0000000..e76a654
--- /dev/null
+++ b/include/path.h
@@ -0,0 +1,22 @@
+#ifndef ECEX_PATH_H
+#define ECEX_PATH_H
+
+#include <stddef.h>
+
+int ecex_path_copy(char *out, size_t out_size, const char *text);
+char *ecex_path_expand_user(const char *path);
+char *ecex_path_join(const char *dir, const char *name);
+char *ecex_path_dirname(const char *path);
+char *ecex_path_basename_dup(const char *path);
+char *ecex_path_normalize(const char *path);
+int ecex_path_is_dir(const char *path);
+int ecex_path_is_file(const char *path);
+int ecex_path_exists(const char *path);
+long long ecex_path_file_size(const char *path);
+int ecex_path_is_image(const char *path);
+int ecex_path_is_previewable_image(const char *path);
+int ecex_path_is_video(const char *path);
+int ecex_path_is_media(const char *path);
+int ecex_path_cwd(char *out, size_t out_size);
+
+#endif