From d093a5268e64af44bc55aec06d4c9b8efca6d9d6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jan 2013 02:09:08 +0000 Subject: Some work on KDM UI. --- src/lib/cinema.h | 23 +++++++++++++++++++++++ src/lib/util.cc | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/lib/cinema.h (limited to 'src/lib') diff --git a/src/lib/cinema.h b/src/lib/cinema.h new file mode 100644 index 000000000..232fc5ec8 --- /dev/null +++ b/src/lib/cinema.h @@ -0,0 +1,23 @@ +#include + +class Screen +{ +public: + Screen (std::string const & n) + : name (n) + {} + + std::string name; + libdcp::Certificate certificate; +}; + +class Cinema +{ +public: + Cinema (std::string const & n) + : name (n) + {} + + std::string name; + std::list screens; +}; diff --git a/src/lib/util.cc b/src/lib/util.cc index 424c736c2..9d42a52e5 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -43,6 +43,7 @@ #include #include #include +#include extern "C" { #include #include @@ -230,7 +231,7 @@ seconds (struct timeval t) void dvdomatic_setup () { - libdcp_setup (); + libdcp::init (); Format::setup_formats (); DCPContentType::setup_dcp_content_types (); -- cgit v1.2.3