aboutsummaryrefslogtreecommitdiffstats
path: root/common/name-value.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-08-11 08:55:00 +0000
committerWerner Koch <[email protected]>2022-08-11 09:25:49 +0000
commit40f0fcfaa476152088762cf5677770d3403d6055 (patch)
tree7e7d6d1b67f75ff385b08187ce6513855b53bd63 /common/name-value.h
parentgpg: Emit an ERROR status if --quick-set-primary-uid fails (diff)
downloadgnupg-40f0fcfaa476152088762cf5677770d3403d6055.tar.gz
gnupg-40f0fcfaa476152088762cf5677770d3403d6055.zip
common: New function nvc_get_boolean.
* common/name-value.c (nvc_get_boolean): New.
Diffstat (limited to 'common/name-value.h')
-rw-r--r--common/name-value.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/name-value.h b/common/name-value.h
index a6283a649..cf854e04d 100644
--- a/common/name-value.h
+++ b/common/name-value.h
@@ -75,6 +75,9 @@ nve_t nve_next_value (nve_t entry, const char *name);
/* Return the string for the first entry in NVC with NAME or NULL. */
const char *nvc_get_string (nvc_t nvc, const char *name);
+/* Return a boolean value for the first entry in NVC with NAME. */
+int nvc_get_boolean (nvc_t nvc, const char *name);
+
/* Adding and modifying values. */