From 5f5a1c7b44f659058175da1f69abfa709f688890 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Apr 2020 12:15:16 +0200 Subject: add JSON spec'er for booleans --- src/include/gnunet_json_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include/gnunet_json_lib.h') diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index f6cabd589..27996f18d 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h @@ -218,6 +218,17 @@ struct GNUNET_JSON_Specification GNUNET_JSON_spec_json (const char *name, json_t **jsonp); +/** + * boolean. + * + * @param name name of the JSON field + * @param[out] b where to store the boolean found under @a name + */ +struct GNUNET_JSON_Specification +GNUNET_JSON_spec_bool (const char *name, + bool *b); + + /** * 8-bit integer. * -- cgit v1.2.3