diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-08 04:34:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-08 04:34:11 +0200 |
commit | f982d006bb9e5ffb6bc032e62b5f34177a83df85 (patch) | |
tree | d0c88573dd27d0633675955165a64b036cc10974 /cmdutils.h | |
parent | 4cd066b69c08cd91aa4b5e40deb4b2f5c7e651ee (diff) | |
parent | 636ced8e1dc8248a1353b416240b93d70ad03edb (diff) | |
download | ffmpeg-f982d006bb9e5ffb6bc032e62b5f34177a83df85.tar.gz |
Merge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'
* commit '636ced8e1dc8248a1353b416240b93d70ad03edb':
cmdutils: wrap exit explicitly
Conflicts:
avprobe.c
cmdutils.c
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.h')
-rw-r--r-- | cmdutils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h index 8a5dada7f7..3af4476d7f 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -55,6 +55,16 @@ extern AVDictionary *swr_opts; extern AVDictionary *format_opts, *codec_opts, *resample_opts; /** + * Register a program-specific cleanup routine. + */ +void register_exit(void (*cb)(int ret)); + +/** + * Wraps exit with a program-specific cleanup routine. + */ +void exit_program(int ret); + +/** * Initialize the cmdutils option system, in particular * allocate the *_opts contexts. */ |