From cdf7fbe35e60e9341809446a66a3e0637a74d743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 27 Apr 2020 15:00:07 +0200 Subject: cam: options: Add public method to invalidate options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend OptionsBase with a public invalidate() method. This allows for further examination of the options and if found unsuitable be invalidated. The intended user for this new interface are subclasses of KeyValueParser. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- src/cam/options.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cam/options.h') diff --git a/src/cam/options.h b/src/cam/options.h index ad5c93a4..18486619 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -54,6 +54,8 @@ public: bool isSet(const T &opt) const; const OptionValue &operator[](const T &opt) const; + void invalidate(); + private: friend class KeyValueParser; friend class OptionsParser; -- cgit v1.2.1