diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-09-28 14:56:30 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-14 16:41:39 +1100 |
commit | bdd34cca13be8ac075657b3981f6db91f7dab0ae (patch) | |
tree | f6ed37514d403346e3c463ae15c833123a6c9e37 /include/nvram.h | |
parent | a18e2809afa0e649224b40bf5b4bbe1d87193a89 (diff) | |
download | skiboot-bdd34cca13be8ac075657b3981f6db91f7dab0ae.zip skiboot-bdd34cca13be8ac075657b3981f6db91f7dab0ae.tar.gz skiboot-bdd34cca13be8ac075657b3981f6db91f7dab0ae.tar.bz2 |
nvram: add nvram_query_eq()
Adds a helper that looks for the given NVRAM config string and checks
that associated value is equal to the supplied value.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/nvram.h')
-rw-r--r-- | include/nvram.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/nvram.h b/include/nvram.h index d87561d..288b536 100644 --- a/include/nvram.h +++ b/include/nvram.h @@ -23,5 +23,6 @@ void nvram_reinit(void); bool nvram_validate(void); const char *nvram_query(const char *name); +bool nvram_query_eq(const char *key, const char *value); #endif /* __NVRAM_H */ |