47 LIBDCP_DISABLE_WARNINGS
48 #include <asdcp/KM_log.h>
49 LIBDCP_ENABLE_WARNINGS
50 #include <boost/filesystem.hpp>
51 #include <boost/function.hpp>
52 #include <boost/optional.hpp>
58 #define LIBDCP_UNUSED(x) (void)(x)
70 class CertificateChain;
75 extern std::string make_uuid ();
83 extern std::string
make_digest (boost::filesystem::path filename, boost::function<
void (
float)>);
92 extern bool ids_equal (std::string a, std::string b);
93 extern std::string remove_urn_uuid (std::string raw);
103 extern void init (boost::optional<boost::filesystem::path> resources_directory = boost::optional<boost::filesystem::path>());
114 extern int base64_decode (std::string
const & in,
unsigned char* out,
int out_length);
116 extern boost::optional<boost::filesystem::path> relative_to_root (boost::filesystem::path root, boost::filesystem::path file);
126 extern FILE *
fopen_boost (boost::filesystem::path, std::string);
128 extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length = 1048576);
134 extern xmlpp::Node* find_child (xmlpp::Node
const * node, std::string name);
135 extern std::string openjpeg_version();
136 extern std::string spaces (
int n);
137 extern void indent (xmlpp::Element* element,
int initial);
152 extern std::string
unique_string (std::vector<std::string> existing, std::string base);
154 extern ASDCP::Dictionary
const* asdcp_smpte_dict;
156 extern boost::filesystem::path directory_containing_executable ();
157 extern boost::filesystem::path resources_directory ();
167 Kumu::LogEntryList _log;
168 Kumu::ILogSink& _old;
169 Kumu::EntryListLogSink* _sink;
Class to hold an arbitrary block of data.
A representation of a local time (down to the second), including its offset from GMT (equivalent to x...
Namespace for everything in libdcp.
std::string unique_string(std::vector< std::string > existing, std::string base)
bool empty_or_white_space(std::string s)
void init(boost::optional< boost::filesystem::path > resources_directory=boost::optional< boost::filesystem::path >())
int base64_decode(std::string const &in, unsigned char *out, int out_length)
std::string private_key_fingerprint(std::string key)
std::string make_digest(boost::filesystem::path filename, boost::function< void(float)>)
bool day_less_than_or_equal(LocalTime a, LocalTime b)
FILE * fopen_boost(boost::filesystem::path, std::string)
bool day_greater_than_or_equal(LocalTime a, LocalTime b)