aboutsummaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/dir.h b/src/dir.h
new file mode 100644
index 0000000..7c576b4
--- /dev/null
+++ b/src/dir.h
@@ -0,0 +1,30 @@
+#ifndef SF_DIR_H
+#define SF_DIR_H
+
+#include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+
+#include "wm.h"
+
+/* typedef struct { */
+/* char name[256]; */
+/* bool is_dir; */
+/* } file_entry; */
+
+/* typedef struct { */
+/* char path[PATH_MAX]; */
+/* directory dir; */
+/* size_t cursor; */
+/* file_entry *entries; */
+/* size_t count; */
+/* size_t capacity; */
+/* } dir_stat; */
+
+char *xdirname(char *path);
+char *xbasename(char *path);
+/* directory *dir_read(directory *dir, const char *path); */
+
+/* void dir_free(directory *dir); */
+
+#endif /* SF_DIR_H */