X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.h;h=981f0faf1eb9788ae02df6189f22f5902abf2f03;hb=acae1492cf78321689818d462db787a3f31f96fc;hp=1e27d8fcc2f549898623461fadd3ec9a48958f24;hpb=7542157d8afdf63a2cbc20a5e8aab86c85c42773;p=ffmpeg diff --git a/cmdutils.h b/cmdutils.h index 1e27d8fcc2f..981f0faf1eb 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -24,6 +24,16 @@ #include +/** + * program name, defined by the program for show_version(). + */ +extern const char program_name[]; + +/** + * program birth year, defined by the program for show_banner() + */ +extern const int program_birth_year; + /** * Parses a string and returns its corresponding value as a double. * Exits from the application if the string cannot be correctly @@ -51,7 +61,7 @@ double parse_number_or_die(const char *context, const char *numstr, int type, do * not zero \p timestr is interpreted as a duration, otherwise as a * date * - * @see av_parse_date() + * @see parse_date() */ int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration); @@ -70,6 +80,7 @@ typedef struct { #define OPT_SUBTITLE 0x0200 #define OPT_FUNC2 0x0400 #define OPT_INT64 0x0800 +#define OPT_EXIT 0x1000 union { void (*func_arg)(const char *); //FIXME passing error code as int return would be nicer then exit() in the func int *int_arg; @@ -101,18 +112,15 @@ void print_error(const char *filename, int err); * Prints the program banner to stderr. The banner contents depend on the * current version of the repository and of the libav* libraries used by * the program. - * @param program_name name of the program - * @param program_birth_year year of birth of the program */ -void show_banner(const char *program_name, int program_birth_year); +void show_banner(void); /** * Prints the version of the program to stdout. The version message * depends on the current versions of the repository and of the libav* * libraries. - * @param program_name name of the program */ -void show_version(const char *program_name); +void show_version(void); /** * Prints the license of the program to stdout. The license depends on @@ -120,4 +128,10 @@ void show_version(const char *program_name); */ void show_license(void); +/** + * Prints a listing containing all the formats supported by the + * program. + */ +void show_formats(void); + #endif /* FFMPEG_CMDUTILS_H */