35 return "<BLOCK DEVICE>";
37 return "<CHARACTER DEVICE>";
57 int main(
int argc,
char *argv[])
59 const char *input_dir =
NULL;
63 char filemode[4], uid_and_gid[20];
68 fprintf(stderr,
"usage: %s input_dir\n"
69 "API example program to show how to list files in directory "
70 "accessed through AVIOContext.\n", argv[0]);
100 "TYPE",
"SIZE",
"NAME",
"UID(GID)",
"UGO",
"MODIFIED",
101 "ACCESSED",
"STATUS_CHANGED");
119 return ret < 0 ? 1 : 0;
int64_t filemode
Unix file mode, -1 if unknown.
void av_log_set_level(int level)
Set the log level.
Describes single entry of the directory.
int64_t modification_timestamp
Time of last modification in microseconds since unix epoch, -1 if unknown.
int avio_read_dir(AVIODirContext *s, AVIODirEntry **next)
Get next directory entry.
int avformat_network_init(void)
Do global initialization of network components.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
Libavcodec external API header.
void avio_free_directory_entry(AVIODirEntry **entry)
Free entry allocated by avio_read_dir().
int64_t access_timestamp
Time of last access in microseconds since unix epoch, -1 if unknown.
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
int main(int argc, char *argv[])
int64_t size
File size in bytes, -1 if unknown.
int avformat_network_deinit(void)
Undo the initialization done by avformat_network_init.
#define AV_LOG_INFO
Standard information.
int type
Type of the entry.
int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options)
Open directory for reading.
int64_t group_id
Group ID of owner, -1 if unknown.
static const char * type_string(int type)
int64_t status_change_timestamp
Time of last status change in microseconds since unix epoch, -1 if unknown.
int avio_close_dir(AVIODirContext **s)
Close directory.
int64_t user_id
User ID of owner, -1 if unknown.
void av_register_all(void)
Initialize libavformat and register all the muxers, demuxers and protocols.