summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:36:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:36:32 +0000
commit64555bd9b1596dca0aeac8ffe533ddca62356b80 (patch)
tree19033ca9533a8a9aab70467cea3dae417d8031a2 /cmdutils.h
parenta0b3bcd9fe8503c8e842972f7ea7f83770911b73 (diff)
Do not pass program_name as argument to show_version(), this allows some
future simplifications. Originally committed as revision 13232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmdutils.h b/cmdutils.h
index 585f9a127e..2e46ade7d0 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -25,6 +25,11 @@
#include <inttypes.h>
/**
+ * program name, defined by the program for show_version().
+ */
+extern const char program_name[];
+
+/**
* Parses a string and returns its corresponding value as a double.
* Exits from the application if the string cannot be correctly
* parsed or the corresponding value is invalid.
@@ -113,7 +118,7 @@ void show_banner(const char *program_name, int program_birth_year);
* 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