Functions

filesystem.c File Reference

Include dependency graph for filesystem.c:

Functions

FILE * vlc_fopen (const char *filename, const char *mode)
 Opens a FILE pointer.
static int dummy_select (const char *str)
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.
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().
int vlc_mkstemp (char *template)

Function Documentation

static int dummy_select ( const char *  str  )  [static]
FILE* vlc_fopen ( const char *  filename,
const char *  mode 
)

Opens a FILE pointer.

Parameters:
filename file path, using UTF-8 encoding
mode fopen file open mode
Returns:
NULL on error, an open FILE pointer on success.

References vlc_open().

Referenced by config_OpenConfigFile(), ImageWriteUrl(), libvlc_InternalInit(), playlist_Export(), playlist_SaveArt(), TsStorageNew(), and vout_snapshot_SaveImage().

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 unlikely, and vlc_readdir().

Referenced by vlc_scandir().

int vlc_mkstemp ( char *  template  ) 

References vlc_open(), and vlc_rand_bytes().

Referenced by GetTmpFile().

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().

Parameters:
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.
Returns:
How many file names were selected (possibly 0), or -1 in case of error.

References vlc_loaddir(), and vlc_opendir().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines