blob: 7ec2f3e78e7a0d4c6f4bf0409cf350eb2662b304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
typedef struct dirlsent {
char *name; /* File name */
struct stat st; /* Meta-data */
char const *type; /* Mime type */
STAILQ_ENTRY(dirlsent) next;
} DIRLSENT;
typedef struct dirls {
size_t count;
STAILQ_HEAD(, dirlsent) list;
} DIRLS;
void dirls_init(DIRLS *dirls);
void dirls_free(DIRLS *dirls);
int dirls_scan(DIRLS *dirls, char const *path, CONFIG const *conf);
void dirls_sort(DIRLS *dirls, INDEX_SORT_COL col, INDEX_SORT_ORD ord);
|