39 #define DL_SHOW_DOT_FILES 0x1
58 int (*qsort_compare)(
const void *,
const void *);
73 const char **patterns,
82 int (*qsort_compare)(
const void *,
const void *));
86 int make_path(
const char *path, mode_t mode);
int nalloced
allocated length of the file list
int make_path(const char *path, mode_t mode)
Make the full path to a directory.
Regular Expression Utilities.
char * path
path to the directory
int dirlist_get_file_list(DirList *dirlist, char ***file_list)
Get the list of files in a directory.
void dirlist_set_qsort_compare(DirList *dirlist, int(*qsort_compare)(const void *, const void *))
Set the file name compare function.
char ** file_list
list of files in the directory
int dirlist_add_patterns(DirList *dirlist, int npatterns, const char **patterns, int ignore_case)
Add file patterns to a directory list.
Regular Expressions List.
DirList * dirlist_create(const char *path, int flags)
Create a new directory list.
void dirlist_free(DirList *dirlist)
Free all memory used by a directory list.
REList * patterns
list of file patterns to look for
int nfiles
number of files in the file list