diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-19 21:37:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-19 21:37:35 +0200 |
commit | 254a9f066b2fb96b347ddb07040608eacaf7b942 (patch) | |
tree | 5ccc744d7d19a9586456a93443c34d9b957dffc1 /src/include/gnunet_json_lib.h | |
parent | 3695a510a18d0bb9ed58fb5270856a88853b4e30 (diff) | |
download | gnunet-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.h | 23 |
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 | */ |
227 | struct GNUNET_JSON_Specification | 227 | struct GNUNET_JSON_Specification |
228 | GNUNET_JSON_spec_uint8 (const char *name, uint8_t *u8); | 228 | GNUNET_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 | */ |
237 | struct GNUNET_JSON_Specification | 238 | struct GNUNET_JSON_Specification |
238 | GNUNET_JSON_spec_uint16 (const char *name, uint16_t *u16); | 239 | GNUNET_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 | */ |
247 | struct GNUNET_JSON_Specification | 249 | struct GNUNET_JSON_Specification |
248 | GNUNET_JSON_spec_uint32 (const char *name, uint32_t *u32); | 250 | GNUNET_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 | */ |
257 | struct GNUNET_JSON_Specification | 260 | struct GNUNET_JSON_Specification |
258 | GNUNET_JSON_spec_uint64 (const char *name, uint64_t *u64); | 261 | GNUNET_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 | */ | ||
271 | struct GNUNET_JSON_Specification | ||
272 | GNUNET_JSON_spec_int64 (const char *name, | ||
273 | int64_t *i64); | ||
259 | 274 | ||
260 | 275 | ||
261 | /** | 276 | /** |