summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-22 03:58:05 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-22 03:58:05 +0000
commit59f63e2b6d0dba963faee7dfee54fbb48dee396a (patch)
tree29ecb7853c0429a3c8050bde2d147b7d59ff2a8c /src/lib/util.h
parent3f8953593f8f55cef214ca259fe4aa4fa2f25ad4 (diff)
Remove POSIX backtraces; move ScopedTemporary into its own file.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index 1c122b70c..ede53e0d9 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -1,6 +1,5 @@
/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
- Copyright (C) 2000-2007 Paul Davis
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,7 +44,9 @@ extern "C" {
/** The maximum number of audio channels that we can have in a DCP */
#define MAX_DCP_AUDIO_CHANNELS 12
+/** Message broadcast to find possible encoding servers */
#define DCPOMATIC_HELLO "Boys, you gotta learn not to talk to nuns that way"
+/** Number of films to keep in history */
#define HISTORY_SIZE 10
#define REPORT_PROBLEM _("Please report this problem by using Help -> Report a problem or via email to carl@dcpomatic.com")
@@ -56,7 +57,6 @@ struct AVSubtitle;
extern std::string seconds_to_hms (int);
extern std::string seconds_to_approximate_hms (int);
-extern void stacktrace (std::ostream &, int);
extern std::string dependency_version_summary ();
extern double seconds (struct timeval);
extern void dcpomatic_setup ();
@@ -128,28 +128,5 @@ private:
extern int64_t video_frames_to_audio_frames (VideoFrame v, float audio_sample_rate, float frames_per_second);
-/** @class ScopedTemporary
- * @brief A temporary file which is deleted when the ScopedTemporary object goes out of scope.
- */
-class ScopedTemporary
-{
-public:
- ScopedTemporary ();
- ~ScopedTemporary ();
-
- /** @return temporary filename */
- boost::filesystem::path file () const {
- return _file;
- }
-
- char const * c_str () const;
- FILE* open (char const *);
- void close ();
-
-private:
- boost::filesystem::path _file;
- FILE* _open;
-};
-
#endif