diff options
Diffstat (limited to 'dir.h')
| -rw-r--r-- | dir.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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 */ |
