blob: 7c576b47cf42b6c6992f8996e18a770e7f92c926 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 */
|