FFmpeg
Loading...
Searching...
No Matches
ffplay_dir.h File Reference

The content of a directory as list entries, leaving out hidden entries, special files and links to them. More...

#include "ffplay_list.h"

Go to the source code of this file.

Data Structures

struct  DirList
 

Functions

int dir_list_read (DirList **dl, const char *path, const AVIOInterruptCB *int_cb, AVDictionary **options)
 Reads the directory into a new list.
 
void dir_list_free (DirList **dl)
 
char * dir_list_path (const DirList *dl, int entry)
 

Detailed Description

The content of a directory as list entries, leaving out hidden entries, special files and links to them.

Definition in file ffplay_dir.h.

Function Documentation

◆ dir_list_read()

int dir_list_read ( DirList ** dl,
const char * path,
const AVIOInterruptCB * int_cb,
AVDictionary ** options )

Reads the directory into a new list.

Parameters
dlset to the list
patha local directory, or the URL of a directory its protocol can list
int_cbinterrupt callback, asked between entries and by the protocol, may be NULL
optionsoptions for avio_open_dir2(), which removes those it uses
Returns
0 or a negative error code

Definition at line 113 of file ffplay_dir.c.

Referenced by dir_thread_func().

◆ dir_list_free()

void dir_list_free ( DirList ** dl)

Definition at line 159 of file ffplay_dir.c.

Referenced by dir_list_read(), do_exit(), and file_list_listed().

◆ dir_list_path()

char * dir_list_path ( const DirList * dl,
int entry )
Returns
the absolute path or the URL of the entry, without a trailing slash, to be freed with av_free(), NULL on allocation failure

Definition at line 184 of file ffplay_dir.c.

Referenced by file_list_choose().