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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c
index 88c173c1c65..1144bb1202e 100644
--- a/src/lib/util/options.c
+++ b/src/lib/util/options.c
@@ -575,6 +575,17 @@ const char *core_options::value(const char *name) const
//-------------------------------------------------
+// priority - return the priority of option
+//-------------------------------------------------
+
+int core_options::priority(const char *name) const
+{
+ entry *curentry = m_entrymap.find(name);
+ return (curentry != NULL) ? curentry->priority() : 0;
+}
+
+
+//-------------------------------------------------
// seqid - return the seqid for a given option
//-------------------------------------------------