1 #ifndef SCANDIR_H
2 #define SCANDIR_H
3 
4 #include "ignore.h"
5 
6 typedef struct {
7     const ignores *ig;
8     const char *base_path;
9     size_t base_path_len;
10     const char *path_start;
11 } scandir_baton_t;
12 
13 typedef int (*filter_fp)(const char *path, const struct dirent *, void *);
14 
15 int ag_scandir(const char *dirname,
16                struct dirent ***namelist,
17                filter_fp filter,
18                void *baton);
19 
20 #endif
21