diff options
| author | @syxhe <https://t.me/syxhe> | 2024-06-29 05:08:52 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2024-06-29 05:08:52 -0500 |
| commit | 863a7a0a45c3ed01af8e155a648b55b59bed4594 (patch) | |
| tree | e26cf857f8423bba7d90fd70d43b7df40457cffb /src/search.h | |
| parent | 88e58b658ba08cedf9214c01200819da354a1796 (diff) | |
Should work now
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 |
