diff options
author | 2011-06-27 12:37:56 +0000 | |
---|---|---|
committer | 2011-06-27 12:37:56 +0000 | |
commit | ba15f08a16c45adbe685ecc60a75823d8910059b (patch) | |
tree | 7329ad498dca310fda03b4af60c44537ad0fd7a9 /src/lib/util | |
parent | d052177a6057780204f0d5fef08e3ef1af78ec04 (diff) |
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.
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/options.c | 9 | ||||
-rw-r--r-- | src/lib/util/options.h | 1 |
2 files changed, 10 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 diff --git a/src/lib/util/options.h b/src/lib/util/options.h index 4ef8a6b1170..03aa293bebf 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -175,6 +175,7 @@ public: int int_value(const char *name) const { return atoi(value(name)); } float float_value(const char *name) const { return atof(value(name)); } UINT32 seqid(const char *name) const; + bool exists(const char *name) const; // setting void set_command(const char *command); |