diff options
Diffstat (limited to 'src/search.h')
| -rw-r--r-- | src/search.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search.h b/src/search.h index 8b5f502..f0e9144 100644 --- a/src/search.h +++ b/src/search.h | |||
| @@ -16,4 +16,10 @@ int foldersort(const struct dirent *node); // Only | |||
| 16 | int filesort(const struct dirent *node); // Only display files when using scandir | 16 | int filesort(const struct dirent *node); // Only display files when using scandir |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | // Create a linked list of full paths to folders, using CMP to order them. Returns NULL on error | ||
| 20 | struct nodelist* scanfolders(const char *STARTPATH, int (*cmp)(const struct dirent **, const struct dirent **)); | ||
| 21 | |||
| 22 | // Create a linked list of full paths to files, using CMP to order them. Returns NULL on error | ||
| 23 | struct nodelist* scanfiles(const char *STARTPATH, int (*cmp)(const struct dirent **, const struct dirent **)); | ||
| 24 | |||
| 19 | #endif \ No newline at end of file | 25 | #endif \ No newline at end of file |
