aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_json_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r--src/include/gnunet_json_lib.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index 27996f18d..95d136239 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -173,7 +173,9 @@ GNUNET_JSON_spec_mark_optional (struct GNUNET_JSON_Specification spec);
173 * @param size number of bytes expected in @a obj 173 * @param size number of bytes expected in @a obj
174 */ 174 */
175struct GNUNET_JSON_Specification 175struct GNUNET_JSON_Specification
176GNUNET_JSON_spec_fixed (const char *name, void *obj, size_t size); 176GNUNET_JSON_spec_fixed (const char *name,
177 void *obj,
178 size_t size);
177 179
178 180
179/** 181/**
@@ -196,7 +198,9 @@ GNUNET_JSON_spec_fixed (const char *name, void *obj, size_t size);
196 * @param[out] size where to store the number of bytes allocated for @a obj 198 * @param[out] size where to store the number of bytes allocated for @a obj
197 */ 199 */
198struct GNUNET_JSON_Specification 200struct GNUNET_JSON_Specification
199GNUNET_JSON_spec_varsize (const char *name, void **obj, size_t *size); 201GNUNET_JSON_spec_varsize (const char *name,
202 void **obj,
203 size_t *size);
200 204
201 205
202/** 206/**
@@ -206,7 +210,9 @@ GNUNET_JSON_spec_varsize (const char *name, void **obj, size_t *size);
206 * @param strptr where to store a pointer to the field 210 * @param strptr where to store a pointer to the field
207 */ 211 */
208struct GNUNET_JSON_Specification 212struct GNUNET_JSON_Specification
209GNUNET_JSON_spec_string (const char *name, const char **strptr); 213GNUNET_JSON_spec_string (const char *name,
214 const char **strptr);
215
210 216
211/** 217/**
212 * JSON object. 218 * JSON object.
@@ -215,7 +221,8 @@ GNUNET_JSON_spec_string (const char *name, const char **strptr);
215 * @param[out] jsonp where to store the JSON found under @a name 221 * @param[out] jsonp where to store the JSON found under @a name
216 */ 222 */
217struct GNUNET_JSON_Specification 223struct GNUNET_JSON_Specification
218GNUNET_JSON_spec_json (const char *name, json_t **jsonp); 224GNUNET_JSON_spec_json (const char *name,
225 json_t **jsonp);
219 226
220 227
221/** 228/**
@@ -291,7 +298,8 @@ GNUNET_JSON_spec_int64 (const char *name,
291 * @param[out] boolean where to store the boolean found under @a name 298 * @param[out] boolean where to store the boolean found under @a name
292 */ 299 */
293struct GNUNET_JSON_Specification 300struct GNUNET_JSON_Specification
294GNUNET_JSON_spec_boolean (const char *name, int *boolean); 301GNUNET_JSON_spec_boolean (const char *name,
302 int *boolean);
295 303
296 304
297/* ************ GNUnet-specific parser specifications ******************* */ 305/* ************ GNUnet-specific parser specifications ******************* */