summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
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 2372b3f387..997ba1c750 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -45,6 +45,16 @@ extern struct SwsContext *sws_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.
*/