summaryrefslogtreecommitdiff
path: root/src/verify.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-14 22:27:31 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-14 22:48:35 +0200
commit73913fea96a32df5bb8a4b439844839e7828af21 (patch)
tree2a54142061ba2886c2d6d797ef2f7d1bc7c999fd /src/verify.h
parent584baf7748317369b7010625e82bc58c09b3c32e (diff)
Store CPL ID in CPL-related verification notes.
Diffstat (limited to 'src/verify.h')
-rw-r--r--src/verify.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/verify.h b/src/verify.h
index 88b4d0b9..8f6ef18f 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -533,6 +533,7 @@ private:
ID,
OTHER_ID,
FRAME_RATE,
+ CPL_ID,
CALCULATED_HASH,
REFERENCE_HASH
};
@@ -632,6 +633,15 @@ public:
return data<std::string>(Data::REFERENCE_HASH);
}
+ VerificationNote& set_cpl_id(std::string id) {
+ _data[Data::CPL_ID] = id;
+ return *this;
+ }
+
+ boost::optional<std::string> cpl_id() const {
+ return data<std::string>(Data::CPL_ID);
+ }
+
private:
Type _type;
Code _code;