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.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index a65293a7c..26c68fed3 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -246,7 +246,8 @@ GNUNET_JSON_spec_string (const char *name,
246 246
247 247
248/** 248/**
249 * JSON object. 249 * JSON object or array. Reference counter is
250 * incremented.
250 * 251 *
251 * @param name name of the JSON field 252 * @param name name of the JSON field
252 * @param[out] jsonp where to store the JSON found under @a name 253 * @param[out] jsonp where to store the JSON found under @a name
@@ -257,6 +258,28 @@ GNUNET_JSON_spec_json (const char *name,
257 258
258 259
259/** 260/**
261 * JSON object, reference counter not incremented.
262 *
263 * @param name name of the JSON field
264 * @param[out] jsonp where to store the JSON found under @a name
265 */
266struct GNUNET_JSON_Specification
267GNUNET_JSON_spec_object_const (const char *name,
268 const json_t **jsonp);
269
270
271/**
272 * JSON array, reference counter not incremented.
273 *
274 * @param name name of the JSON field
275 * @param[out] jsonp where to store the JSON found under @a name
276 */
277struct GNUNET_JSON_Specification
278GNUNET_JSON_spec_array_const (const char *name,
279 const json_t **jsonp);
280
281
282/**
260 * boolean. 283 * boolean.
261 * 284 *
262 * @param name name of the JSON field 285 * @param name name of the JSON field