|
RetroArch
|
#include <stdlib.h>#include <lists/dir_list.h>#include <lists/string_list.h>#include <file/file_path.h>#include <compat/strl.h>#include <retro_dirent.h>#include <string/stdstring.h>#include <retro_miscellaneous.h>Functions | |
| static int | qstrcmp_plain (const void *a_, const void *b_) |
| static int | qstrcmp_dir (const void *a_, const void *b_) |
| void | dir_list_sort (struct string_list *list, bool dir_first) |
| void | dir_list_free (struct string_list *list) |
: name of the directory listing entry. | |
parse_dir_entry: : file path of the directory listing entry. : is the directory listing a directory? : include directories as part of the finished directory listing? : Include compressed files, even if not part of ext_list. : pointer to directory listing. : pointer to allowed file extensions listing. : file extension of the directory listing entry. Parses a directory listing. Returns: zero on success, -1 on error, 1 if we should continue to the next entry in the directory listing. | |
| static int | parse_dir_entry (const char *name, char *file_path, bool is_dir, bool include_dirs, bool include_compressed, struct string_list *list, struct string_list *ext_list, const char *file_ext) |
| static int | dir_list_read (const char *dir, struct string_list *list, struct string_list *ext_list, bool include_dirs, bool include_hidden, bool include_compressed, bool recursive) |
| bool | dir_list_append (struct string_list *list, const char *dir, const char *ext, bool include_dirs, bool include_hidden, bool include_compressed, bool recursive) |
| struct string_list * | dir_list_new (const char *dir, const char *ext, bool include_dirs, bool include_hidden, bool include_compressed, bool recursive) |
| bool dir_list_append | ( | struct string_list * | list, |
| const char * | dir, | ||
| const char * | ext, | ||
| bool | include_dirs, | ||
| bool | include_hidden, | ||
| bool | include_compressed, | ||
| bool | recursive | ||
| ) |
| void dir_list_free | ( | struct string_list * | list | ) |
dir_list_free: : pointer to the directory listing
Frees a directory listing.
| struct string_list* dir_list_new | ( | const char * | dir, |
| const char * | ext, | ||
| bool | include_dirs, | ||
| bool | include_hidden, | ||
| bool | include_compressed, | ||
| bool | recursive | ||
| ) |
|
static |
| void dir_list_sort | ( | struct string_list * | list, |
| bool | dir_first | ||
| ) |
dir_list_sort: : pointer to the directory listing. : move the directories in the listing to the top?
Sorts a directory listing.
|
static |
1.8.15