git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
save
[protos/libecoli.git]
/
lib
/
ecoli_keyval.c
diff --git
a/lib/ecoli_keyval.c
b/lib/ecoli_keyval.c
index
a47ded9
..
e80dd08
100644
(file)
--- a/
lib/ecoli_keyval.c
+++ b/
lib/ecoli_keyval.c
@@
-87,6
+87,11
@@
static void ec_keyval_elt_free(struct ec_keyval_elt *elt)
elt->free(elt->val);
}
+bool ec_keyval_has_key(const struct ec_keyval *keyval, const char *key)
+{
+ return !!ec_keyval_lookup(keyval, key);
+}
+
void *ec_keyval_get(const struct ec_keyval *keyval, const char *key)
{
struct ec_keyval_elt *elt;