aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_json_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-19 21:37:35 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-19 21:37:35 +0200
commit254a9f066b2fb96b347ddb07040608eacaf7b942 (patch)
tree5ccc744d7d19a9586456a93443c34d9b957dffc1 /src/include/gnunet_json_lib.h
parent3695a510a18d0bb9ed58fb5270856a88853b4e30 (diff)
downloadgnunet-254a9f066b2fb96b347ddb07040608eacaf7b942.tar.gz
gnunet-254a9f066b2fb96b347ddb07040608eacaf7b942.zip
add i64 deserializer
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r--src/include/gnunet_json_lib.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index 82b8502e0..f6cabd589 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -225,7 +225,8 @@ GNUNET_JSON_spec_json (const char *name, json_t **jsonp);
225 * @param[out] u8 where to store the integer found under @a name 225 * @param[out] u8 where to store the integer found under @a name
226 */ 226 */
227struct GNUNET_JSON_Specification 227struct GNUNET_JSON_Specification
228GNUNET_JSON_spec_uint8 (const char *name, uint8_t *u8); 228GNUNET_JSON_spec_uint8 (const char *name,
229 uint8_t *u8);
229 230
230 231
231/** 232/**
@@ -235,7 +236,8 @@ GNUNET_JSON_spec_uint8 (const char *name, uint8_t *u8);
235 * @param[out] u16 where to store the integer found under @a name 236 * @param[out] u16 where to store the integer found under @a name
236 */ 237 */
237struct GNUNET_JSON_Specification 238struct GNUNET_JSON_Specification
238GNUNET_JSON_spec_uint16 (const char *name, uint16_t *u16); 239GNUNET_JSON_spec_uint16 (const char *name,
240 uint16_t *u16);
239 241
240 242
241/** 243/**
@@ -245,7 +247,8 @@ GNUNET_JSON_spec_uint16 (const char *name, uint16_t *u16);
245 * @param[out] u32 where to store the integer found under @a name 247 * @param[out] u32 where to store the integer found under @a name
246 */ 248 */
247struct GNUNET_JSON_Specification 249struct GNUNET_JSON_Specification
248GNUNET_JSON_spec_uint32 (const char *name, uint32_t *u32); 250GNUNET_JSON_spec_uint32 (const char *name,
251 uint32_t *u32);
249 252
250 253
251/** 254/**
@@ -255,7 +258,19 @@ GNUNET_JSON_spec_uint32 (const char *name, uint32_t *u32);
255 * @param[out] u64 where to store the integer found under @a name 258 * @param[out] u64 where to store the integer found under @a name
256 */ 259 */
257struct GNUNET_JSON_Specification 260struct GNUNET_JSON_Specification
258GNUNET_JSON_spec_uint64 (const char *name, uint64_t *u64); 261GNUNET_JSON_spec_uint64 (const char *name,
262 uint64_t *u64);
263
264
265/**
266 * 64-bit signed integer.
267 *
268 * @param name name of the JSON field
269 * @param[out] i64 where to store the integer found under @a name
270 */
271struct GNUNET_JSON_Specification
272GNUNET_JSON_spec_int64 (const char *name,
273 int64_t *i64);
259 274
260 275
261/** 276/**