diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-13 21:52:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-13 21:52:27 +0100 |
| commit | 006e38346a8bcdcc889979b7c00802d9bb8fc6f8 (patch) | |
| tree | 352caad1d2863ef4385b0d91fa7de07f52ff5e27 /src/lib/encrypted_ecinema_kdm.cc | |
| parent | 6cde6bcc0b604c1a157a4ccbdce29e91f4d45a91 (diff) | |
swaroop: allow ScreenKDM subclasses for different KDM types.
Diffstat (limited to 'src/lib/encrypted_ecinema_kdm.cc')
| -rw-r--r-- | src/lib/encrypted_ecinema_kdm.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/encrypted_ecinema_kdm.cc b/src/lib/encrypted_ecinema_kdm.cc index e4e19d7fb..f0502ab31 100644 --- a/src/lib/encrypted_ecinema_kdm.cc +++ b/src/lib/encrypted_ecinema_kdm.cc @@ -22,6 +22,7 @@ #include "encrypted_ecinema_kdm.h" #include "exceptions.h" +#include "cross.h" #include <dcp/key.h> #include <dcp/certificate.h> #include <dcp/util.h> @@ -85,4 +86,13 @@ EncryptedECinemaKDM::as_xml () const return document.write_to_string ("UTF-8"); } +void +EncryptedECinemaKDM::as_xml (boost::filesystem::path path) const +{ + FILE* f = fopen_boost (path, "w"); + string const x = as_xml (); + fwrite (x.c_str(), 1, x.length(), f); + fclose (f); +} + #endif |
