From ba15f08a16c45adbe685ecc60a75823d8910059b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 27 Jun 2011 12:37:56 +0000 Subject: Added support for multi level slot devices [Miodrag Milanovic] Now it is possible to attach slot device to other slot device, also containing multiple image devices under it. --- src/lib/util/options.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/util/options.c') 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 -- cgit v1.2.3-70-g09d2