summaryrefslogtreecommitdiff
path: root/src/lib/spl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-12-14 00:58:48 +0000
committerCarl Hetherington <cth@carlh.net>2018-12-14 00:58:48 +0000
commited227b4fdba9b4fc7f06f6db4830219f14bad358 (patch)
tree153245bd3520fb7cb7ed3b74ac7b45e67f059f70 /src/lib/spl.h
parentc7ae521e655354dd2f27766ee23766a0e698a89c (diff)
swaroop: fix up restart-after-crash.v2.13.84
Diffstat (limited to 'src/lib/spl.h')
-rw-r--r--src/lib/spl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/spl.h b/src/lib/spl.h
index b94c08571..b19ef7e7a 100644
--- a/src/lib/spl.h
+++ b/src/lib/spl.h
@@ -22,6 +22,7 @@
#define DCPOMATIC_SPL_H
#include "spl_entry.h"
+#include <dcp/util.h>
class ContentStore;
@@ -29,7 +30,8 @@ class SPL
{
public:
SPL ()
- : _missing (false)
+ : _id (dcp::make_uuid())
+ , _missing (false)
{}
void add (SPLEntry e) {
@@ -55,6 +57,10 @@ public:
void read (boost::filesystem::path path, ContentStore* store);
void write (boost::filesystem::path path) const;
+ std::string id () const {
+ return _id;
+ }
+
std::string name () const {
return _name;
}
@@ -64,6 +70,7 @@ public:
}
private:
+ std::string _id;
std::string _name;
std::vector<SPLEntry> _spl;
/** true if any content was missing when read() was last called on this SPL */