From 07b608ab6b2daa5f4cb366716e3aa6ece8a74f39 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Jan 2025 02:07:01 +0100 Subject: Only read screen certificates when we need them. --- src/lib/cinema_list.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/cinema_list.h') 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> screens(CinemaID cinema_id) const; std::vector> screens_by_cinema_and_name(CinemaID id, std::string const& name) const; - void screens(std::function 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 callback, bool with_trusted_devices) const; boost::optional unique_utc_offset(std::set 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> screens_from_result(SQLiteStatement& statement) const; void setup_tables(); void setup(boost::filesystem::path db_file); -- cgit v1.2.3