summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r--src/lib/util/options.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c
index 01022a1665d..ac7897fb6d3 100644
--- a/src/lib/util/options.c
+++ b/src/lib/util/options.c
@@ -556,6 +556,15 @@ UINT32 core_options::seqid(const char *name) const
return (curentry != NULL) ? curentry->seqid() : 0;
}
+//-------------------------------------------------
+// exists - return if option exists in list
+//-------------------------------------------------
+
+bool core_options::exists(const char *name) const
+{
+ entry *curentry = m_entrymap.find(name);
+ return (curentry != NULL);
+}
//-------------------------------------------------
// set_value - set the raw option value