VLC
3.0.15
|
Functions | |
DIR * | vlc_opendir (const char *dirname) |
Opens a DIR pointer. More... | |
const char * | vlc_readdir (DIR *dir) |
Reads the next file name from an open directory. More... | |
int | vlc_loaddir (DIR *dir, char ***namelist, int(*select)(const char *), int(*compar)(const char **, const char **)) |
Does the same as vlc_scandir(), but takes an open directory pointer instead of a directory path. More... | |
int | vlc_scandir (const char *dirname, char ***namelist, int(*select)(const char *), int(*compar)(const char **, const char **)) |
Selects file entries from a directory, as GNU C scandir(). More... | |
int | vlc_mkdir (const char *dirname, mode_t mode) |
Creates a directory. More... | |
char * | vlc_getcwd (void) |
Determines the current working directory. More... | |
char* vlc_getcwd | ( | void | ) |
Determines the current working directory.
References getenv(), pathconf(), ToLocaleDup, and unlikely.
Referenced by vlc_path2uri().
int vlc_loaddir | ( | DIR * | dir, |
char *** | namelist, | ||
int(*)(const char *) | select, | ||
int(*)(const char **, const char **) | compar | ||
) |
Does the same as vlc_scandir(), but takes an open directory pointer instead of a directory path.
References dummy_select(), likely, strdup(), unlikely, and vlc_readdir().
Referenced by vlc_scandir().
int vlc_mkdir | ( | const char * | dirname, |
mode_t | mode | ||
) |
Creates a directory.
dirname | a UTF-8 string with the name of the directory that you want to create. |
mode | directory permissions |
References ToLocaleDup, and unlikely.
Referenced by ArtCacheCreateDir(), config_CreateDir(), and config_GetHomeDir().
DIR* vlc_opendir | ( | const char * | dirname | ) |
Opens a DIR pointer.
dirname | UTF-8 representation of the directory name |
References ToLocaleDup, unlikely, and widen_path().
Referenced by playlist_FindArtInCache(), subtitles_Detect(), and vlc_scandir().
const char* vlc_readdir | ( | DIR * | dir | ) |
Reads the next file name from an open directory.
dir | directory handle as returned by vlc_opendir() (must not be used by another thread concurrently) |
References dirfd(), FromCharset(), and unlikely.
Referenced by playlist_FindArtInCache(), subtitles_Detect(), and vlc_loaddir().
int vlc_scandir | ( | const char * | dirname, |
char *** | namelist, | ||
int(*)(const char *) | select, | ||
int(*)(const char **, const char **) | compar | ||
) |
Selects file entries from a directory, as GNU C scandir().
dirname | UTF-8 diretory path |
pointer | [OUT] pointer set, on successful completion, to the address of a table of UTF-8 filenames. All filenames must be freed with free(). The table itself must be freed with free() as well. |
References vlc_loaddir(), and vlc_opendir().