summaryrefslogtreecommitdiff
path: root/src/lib/cinema_list.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-17 02:07:01 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-22 14:34:25 +0100
commit07b608ab6b2daa5f4cb366716e3aa6ece8a74f39 (patch)
tree5b7a91c6a1d5d2ff0dc132709f9fb9246f03bf33 /src/lib/cinema_list.h
parentefdc2359ff10ec8baf377704ef7f698aaef1ff0f (diff)
Only read screen certificates when we need them.
Diffstat (limited to 'src/lib/cinema_list.h')
-rw-r--r--src/lib/cinema_list.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/cinema_list.h b/src/lib/cinema_list.h
index 6c1e65017..1e0144f73 100644
--- a/src/lib/cinema_list.h
+++ b/src/lib/cinema_list.h
@@ -105,12 +105,16 @@ public:
std::vector<std::pair<ScreenID, dcpomatic::Screen>> screens(CinemaID cinema_id) const;
std::vector<std::pair<ScreenID, dcpomatic::Screen>> screens_by_cinema_and_name(CinemaID id, std::string const& name) const;
- void screens(std::function<void (CinemaID, ScreenID, dcpomatic::Screen const&)> callback) const;
+ /** Call a callback with every screen.
+ * @param with_trusted_devices true to read screen's trusted devices into the Screen, false to not bother.
+ */
+ void screens(std::function<void (CinemaID, ScreenID, dcpomatic::Screen const&)> callback, bool with_trusted_devices) const;
boost::optional<dcp::UTCOffset> unique_utc_offset(std::set<CinemaID> const& cinemas);
private:
- dcpomatic::Screen screen_from_result(SQLiteStatement& statement, ScreenID screen_id) const;
+ /** @param with_trusted_devices true to read screen's trusted devices into the Screen, false to not bother */
+ dcpomatic::Screen screen_from_result(SQLiteStatement& statement, ScreenID screen_id, bool with_trusted_devices) const;
std::vector<std::pair<ScreenID, dcpomatic::Screen>> screens_from_result(SQLiteStatement& statement) const;
void setup_tables();
void setup(boost::filesystem::path db_file);