diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-21 12:15:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-21 12:15:16 +0200 |
commit | 5f5a1c7b44f659058175da1f69abfa709f688890 (patch) | |
tree | c3494f5b9442a2403fab9cbf094a45e7adfaef19 /src/include | |
parent | 30361fe0e89a72e2dd248a93824b06d858e4e81a (diff) | |
download | gnunet-5f5a1c7b44f659058175da1f69abfa709f688890.tar.gz gnunet-5f5a1c7b44f659058175da1f69abfa709f688890.zip |
add JSON spec'er for booleans
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_json_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 | |||
@@ -219,6 +219,17 @@ GNUNET_JSON_spec_json (const char *name, json_t **jsonp); | |||
219 | 219 | ||
220 | 220 | ||
221 | /** | 221 | /** |
222 | * boolean. | ||
223 | * | ||
224 | * @param name name of the JSON field | ||
225 | * @param[out] b where to store the boolean found under @a name | ||
226 | */ | ||
227 | struct GNUNET_JSON_Specification | ||
228 | GNUNET_JSON_spec_bool (const char *name, | ||
229 | bool *b); | ||
230 | |||
231 | |||
232 | /** | ||
222 | * 8-bit integer. | 233 | * 8-bit integer. |
223 | * | 234 | * |
224 | * @param name name of the JSON field | 235 | * @param name name of the JSON field |