aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-08 04:34:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-08 04:34:11 +0200
commitf982d006bb9e5ffb6bc032e62b5f34177a83df85 (patch)
treed0c88573dd27d0633675955165a64b036cc10974 /cmdutils.h
parent4cd066b69c08cd91aa4b5e40deb4b2f5c7e651ee (diff)
parent636ced8e1dc8248a1353b416240b93d70ad03edb (diff)
downloadffmpeg-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.h10
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.
*/