RetroArch
Functions
dir_list.c File Reference
#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>
Include dependency graph for dir_list.c:

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_listdir_list_new (const char *dir, const char *ext, bool include_dirs, bool include_hidden, bool include_compressed, bool recursive)
 

Function Documentation

◆ dir_list_append()

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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dir_list_free()

void dir_list_free ( struct string_list list)

dir_list_free: : pointer to the directory listing

Frees a directory listing.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dir_list_new()

struct string_list* dir_list_new ( const char *  dir,
const char *  ext,
bool  include_dirs,
bool  include_hidden,
bool  include_compressed,
bool  recursive 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dir_list_read()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dir_list_sort()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_dir_entry()

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qstrcmp_dir()

static int qstrcmp_dir ( const void a_,
const void b_ 
)
static
Here is the caller graph for this function:

◆ qstrcmp_plain()

static int qstrcmp_plain ( const void a_,
const void b_ 
)
static
Here is the caller graph for this function: