OSDN Git Service

added ffplay utility
[coroid/ffmpeg_saccubus.git] / cmdutils.h
1 #ifndef _CMD_UTILS_H
2 #define _CMD_UTILS_H
3
4 typedef struct {
5     const char *name;
6     int flags;
7 #define HAS_ARG    0x0001
8 #define OPT_BOOL   0x0002
9 #define OPT_EXPERT 0x0004
10 #define OPT_STRING 0x0008
11     union {
12         void (*func_arg)(const char *);
13         int *int_arg;
14         char **str_arg;
15     } u;
16     const char *help;
17     const char *argname;
18 } OptionDef;
19
20 void show_help_options(const OptionDef *options);
21 void parse_options(int argc, char **argv, const OptionDef *options);
22 void parse_arg_file(const char *filename);
23 void print_error(const char *filename, int err);
24
25 #endif /* _CMD_UTILS_H */