aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_json_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-21 16:16:02 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-21 16:16:02 +0000
commite321090a6ab5ac7228bf71983db0ae86af91ea99 (patch)
treede207fb24ecd4d18252a0f5fcdfeda860742ca24 /src/include/gnunet_json_lib.h
parentbbd7f90332fa9df514cb14bb24f2187c78db432a (diff)
downloadgnunet-e321090a6ab5ac7228bf71983db0ae86af91ea99.tar.gz
gnunet-e321090a6ab5ac7228bf71983db0ae86af91ea99.zip
define GNUNET_JSON_from_data_auto
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r--src/include/gnunet_json_lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index 8b21c01dd..9e5f9e284 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -312,6 +312,16 @@ GNUNET_JSON_from_data (const void *data,
312 312
313 313
314/** 314/**
315 * Convert binary data to a JSON string with the base32crockford
316 * encoding.
317 *
318 * @param ptr binary data, sizeof (*ptr) must yield correct size
319 * @return json string that encodes @a data
320 */
321#define GNUNET_JSON_from_data_auto(ptr) GNUNET_JSON_from_data(ptr, sizeof (*ptr))
322
323
324/**
315 * Convert absolute timestamp to a json string. 325 * Convert absolute timestamp to a json string.
316 * 326 *
317 * @param stamp the time stamp 327 * @param stamp the time stamp