diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-16 23:17:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-16 23:18:02 +0200 |
commit | a80e4d641c49a2e9bbbf98d89a37251471f428dd (patch) | |
tree | b3416eb99e3b6c23db859de728be91d65135ddbe /src/json/json_helper.c | |
parent | b10ab4fe6e7cb00e46037a96ab78b17e3e88f2e1 (diff) | |
download | gnunet-a80e4d641c49a2e9bbbf98d89a37251471f428dd.tar.gz gnunet-a80e4d641c49a2e9bbbf98d89a37251471f428dd.zip |
-remove duplicate comments
Diffstat (limited to 'src/json/json_helper.c')
-rw-r--r-- | src/json/json_helper.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 3bf2c1299..32b262a87 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c | |||
@@ -28,9 +28,6 @@ | |||
28 | #include "gnunet_json_lib.h" | 28 | #include "gnunet_json_lib.h" |
29 | 29 | ||
30 | 30 | ||
31 | /** | ||
32 | * End of a parser specification. | ||
33 | */ | ||
34 | struct GNUNET_JSON_Specification | 31 | struct GNUNET_JSON_Specification |
35 | GNUNET_JSON_spec_end () | 32 | GNUNET_JSON_spec_end () |
36 | { | 33 | { |
@@ -84,14 +81,6 @@ parse_fixed_data (void *cls, | |||
84 | } | 81 | } |
85 | 82 | ||
86 | 83 | ||
87 | /** | ||
88 | * Variable size object (in network byte order, encoded using Crockford | ||
89 | * Base32hex encoding). | ||
90 | * | ||
91 | * @param name name of the JSON field | ||
92 | * @param[out] obj pointer where to write the data, must have @a size bytes | ||
93 | * @param size number of bytes expected in @a obj | ||
94 | */ | ||
95 | struct GNUNET_JSON_Specification | 84 | struct GNUNET_JSON_Specification |
96 | GNUNET_JSON_spec_fixed (const char *name, | 85 | GNUNET_JSON_spec_fixed (const char *name, |
97 | void *obj, | 86 | void *obj, |
@@ -178,14 +167,6 @@ clean_variable_data (void *cls, | |||
178 | } | 167 | } |
179 | 168 | ||
180 | 169 | ||
181 | /** | ||
182 | * Variable size object (in network byte order, encoded using | ||
183 | * Crockford Base32hex encoding). | ||
184 | * | ||
185 | * @param name name of the JSON field | ||
186 | * @param[out] obj pointer where to write the data, will be allocated | ||
187 | * @param[out] size where to store the number of bytes allocated for @a obj | ||
188 | */ | ||
189 | struct GNUNET_JSON_Specification | 170 | struct GNUNET_JSON_Specification |
190 | GNUNET_JSON_spec_varsize (const char *name, | 171 | GNUNET_JSON_spec_varsize (const char *name, |
191 | void **obj, | 172 | void **obj, |
@@ -234,12 +215,6 @@ parse_string (void *cls, | |||
234 | } | 215 | } |
235 | 216 | ||
236 | 217 | ||
237 | /** | ||
238 | * The expected field stores a string. | ||
239 | * | ||
240 | * @param name name of the JSON field | ||
241 | * @param strptr where to store a pointer to the field | ||
242 | */ | ||
243 | struct GNUNET_JSON_Specification | 218 | struct GNUNET_JSON_Specification |
244 | GNUNET_JSON_spec_string (const char *name, | 219 | GNUNET_JSON_spec_string (const char *name, |
245 | const char **strptr) | 220 | const char **strptr) |
@@ -303,12 +278,6 @@ clean_object (void *cls, | |||
303 | } | 278 | } |
304 | 279 | ||
305 | 280 | ||
306 | /** | ||
307 | * JSON object. | ||
308 | * | ||
309 | * @param name name of the JSON field | ||
310 | * @param[out] jsonp where to store the JSON found under @a name | ||
311 | */ | ||
312 | struct GNUNET_JSON_Specification | 281 | struct GNUNET_JSON_Specification |
313 | GNUNET_JSON_spec_json (const char *name, | 282 | GNUNET_JSON_spec_json (const char *name, |
314 | json_t **jsonp) | 283 | json_t **jsonp) |
@@ -358,12 +327,6 @@ parse_bool (void *cls, | |||
358 | } | 327 | } |
359 | 328 | ||
360 | 329 | ||
361 | /** | ||
362 | * boolean. | ||
363 | * | ||
364 | * @param name name of the JSON field | ||
365 | * @param[out] b where to store the boolean found under @a name | ||
366 | */ | ||
367 | struct GNUNET_JSON_Specification | 330 | struct GNUNET_JSON_Specification |
368 | GNUNET_JSON_spec_bool (const char *name, | 331 | GNUNET_JSON_spec_bool (const char *name, |
369 | bool *b) | 332 | bool *b) |
@@ -414,12 +377,6 @@ parse_u8 (void *cls, | |||
414 | } | 377 | } |
415 | 378 | ||
416 | 379 | ||
417 | /** | ||
418 | * 8-bit integer. | ||
419 | * | ||
420 | * @param name name of the JSON field | ||
421 | * @param[out] u8 where to store the integer found under @a name | ||
422 | */ | ||
423 | struct GNUNET_JSON_Specification | 380 | struct GNUNET_JSON_Specification |
424 | GNUNET_JSON_spec_uint8 (const char *name, | 381 | GNUNET_JSON_spec_uint8 (const char *name, |
425 | uint8_t *u8) | 382 | uint8_t *u8) |
@@ -470,12 +427,6 @@ parse_u16 (void *cls, | |||
470 | } | 427 | } |
471 | 428 | ||
472 | 429 | ||
473 | /** | ||
474 | * 16-bit integer. | ||
475 | * | ||
476 | * @param name name of the JSON field | ||
477 | * @param[out] u16 where to store the integer found under @a name | ||
478 | */ | ||
479 | struct GNUNET_JSON_Specification | 430 | struct GNUNET_JSON_Specification |
480 | GNUNET_JSON_spec_uint16 (const char *name, | 431 | GNUNET_JSON_spec_uint16 (const char *name, |
481 | uint16_t *u16) | 432 | uint16_t *u16) |
@@ -526,12 +477,6 @@ parse_u32 (void *cls, | |||
526 | } | 477 | } |
527 | 478 | ||
528 | 479 | ||
529 | /** | ||
530 | * 32-bit integer. | ||
531 | * | ||
532 | * @param name name of the JSON field | ||
533 | * @param[out] u32 where to store the integer found under @a name | ||
534 | */ | ||
535 | struct GNUNET_JSON_Specification | 480 | struct GNUNET_JSON_Specification |
536 | GNUNET_JSON_spec_uint32 (const char *name, | 481 | GNUNET_JSON_spec_uint32 (const char *name, |
537 | uint32_t *u32) | 482 | uint32_t *u32) |
@@ -577,12 +522,6 @@ parse_u64 (void *cls, | |||
577 | } | 522 | } |
578 | 523 | ||
579 | 524 | ||
580 | /** | ||
581 | * 64-bit integer. | ||
582 | * | ||
583 | * @param name name of the JSON field | ||
584 | * @param[out] u64 where to store the integer found under @a name | ||
585 | */ | ||
586 | struct GNUNET_JSON_Specification | 525 | struct GNUNET_JSON_Specification |
587 | GNUNET_JSON_spec_uint64 (const char *name, | 526 | GNUNET_JSON_spec_uint64 (const char *name, |
588 | uint64_t *u64) | 527 | uint64_t *u64) |
@@ -628,12 +567,6 @@ parse_i64 (void *cls, | |||
628 | } | 567 | } |
629 | 568 | ||
630 | 569 | ||
631 | /** | ||
632 | * 64-bit signed integer. | ||
633 | * | ||
634 | * @param name name of the JSON field | ||
635 | * @param[out] i64 where to store the integer found under @a name | ||
636 | */ | ||
637 | struct GNUNET_JSON_Specification | 570 | struct GNUNET_JSON_Specification |
638 | GNUNET_JSON_spec_int64 (const char *name, | 571 | GNUNET_JSON_spec_int64 (const char *name, |
639 | int64_t *i64) | 572 | int64_t *i64) |
@@ -707,12 +640,6 @@ parse_abs_time (void *cls, | |||
707 | } | 640 | } |
708 | 641 | ||
709 | 642 | ||
710 | /** | ||
711 | * Absolute time. | ||
712 | * | ||
713 | * @param name name of the JSON field | ||
714 | * @param[out] at where to store the absolute time found under @a name | ||
715 | */ | ||
716 | struct GNUNET_JSON_Specification | 643 | struct GNUNET_JSON_Specification |
717 | GNUNET_JSON_spec_absolute_time (const char *name, | 644 | GNUNET_JSON_spec_absolute_time (const char *name, |
718 | struct GNUNET_TIME_Absolute *at) | 645 | struct GNUNET_TIME_Absolute *at) |
@@ -761,12 +688,6 @@ parse_abs_time_nbo (void *cls, | |||
761 | } | 688 | } |
762 | 689 | ||
763 | 690 | ||
764 | /** | ||
765 | * Absolute time in network byte order. | ||
766 | * | ||
767 | * @param name name of the JSON field | ||
768 | * @param[out] at where to store the absolute time found under @a name | ||
769 | */ | ||
770 | struct GNUNET_JSON_Specification | 691 | struct GNUNET_JSON_Specification |
771 | GNUNET_JSON_spec_absolute_time_nbo (const char *name, | 692 | GNUNET_JSON_spec_absolute_time_nbo (const char *name, |
772 | struct GNUNET_TIME_AbsoluteNBO *at) | 693 | struct GNUNET_TIME_AbsoluteNBO *at) |
@@ -838,12 +759,6 @@ parse_rel_time (void *cls, | |||
838 | } | 759 | } |
839 | 760 | ||
840 | 761 | ||
841 | /** | ||
842 | * Relative time. | ||
843 | * | ||
844 | * @param name name of the JSON field | ||
845 | * @param[out] rt where to store the relative time found under @a name | ||
846 | */ | ||
847 | struct GNUNET_JSON_Specification | 762 | struct GNUNET_JSON_Specification |
848 | GNUNET_JSON_spec_relative_time (const char *name, | 763 | GNUNET_JSON_spec_relative_time (const char *name, |
849 | struct GNUNET_TIME_Relative *rt) | 764 | struct GNUNET_TIME_Relative *rt) |
@@ -931,12 +846,6 @@ clean_rsa_public_key (void *cls, | |||
931 | } | 846 | } |
932 | 847 | ||
933 | 848 | ||
934 | /** | ||
935 | * Specification for parsing an RSA public key. | ||
936 | * | ||
937 | * @param name name of the JSON field | ||
938 | * @param pk where to store the RSA key found under @a name | ||
939 | */ | ||
940 | struct GNUNET_JSON_Specification | 849 | struct GNUNET_JSON_Specification |
941 | GNUNET_JSON_spec_rsa_public_key (const char *name, | 850 | GNUNET_JSON_spec_rsa_public_key (const char *name, |
942 | struct GNUNET_CRYPTO_RsaPublicKey **pk) | 851 | struct GNUNET_CRYPTO_RsaPublicKey **pk) |
@@ -1025,12 +934,6 @@ clean_rsa_signature (void *cls, | |||
1025 | } | 934 | } |
1026 | 935 | ||
1027 | 936 | ||
1028 | /** | ||
1029 | * Specification for parsing an RSA signature. | ||
1030 | * | ||
1031 | * @param name name of the JSON field | ||
1032 | * @param sig where to store the RSA signature found under @a name | ||
1033 | */ | ||
1034 | struct GNUNET_JSON_Specification | 937 | struct GNUNET_JSON_Specification |
1035 | GNUNET_JSON_spec_rsa_signature (const char *name, | 938 | GNUNET_JSON_spec_rsa_signature (const char *name, |
1036 | struct GNUNET_CRYPTO_RsaSignature **sig) | 939 | struct GNUNET_CRYPTO_RsaSignature **sig) |
@@ -1075,12 +978,6 @@ parse_boolean (void *cls, | |||
1075 | } | 978 | } |
1076 | 979 | ||
1077 | 980 | ||
1078 | /** | ||
1079 | * Boolean (true mapped to GNUNET_YES, false mapped to GNUNET_NO). | ||
1080 | * | ||
1081 | * @param name name of the JSON field | ||
1082 | * @param[out] boolean where to store the boolean found under @a name | ||
1083 | */ | ||
1084 | struct GNUNET_JSON_Specification | 981 | struct GNUNET_JSON_Specification |
1085 | GNUNET_JSON_spec_boolean (const char *name, | 982 | GNUNET_JSON_spec_boolean (const char *name, |
1086 | int *boolean) | 983 | int *boolean) |