summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cam/options.cpp6
-rw-r--r--src/cam/options.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/cam/options.cpp b/src/cam/options.cpp
index 2c56eacf..77b3cc1f 100644
--- a/src/cam/options.cpp
+++ b/src/cam/options.cpp
@@ -65,6 +65,12 @@ const OptionValue &OptionsBase<T>::operator[](const T &opt) const
}
template<typename T>
+void OptionsBase<T>::invalidate()
+{
+ valid_ = false;
+}
+
+template<typename T>
bool OptionsBase<T>::parseValue(const T &opt, const Option &option,
const char *optarg)
{
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;