[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37189 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37189 - gnunet/src/include |
Date: |
Sat, 21 May 2016 18:16:02 +0200 |
Author: grothoff
Date: 2016-05-21 18:16:02 +0200 (Sat, 21 May 2016)
New Revision: 37189
Modified:
gnunet/src/include/gnunet_json_lib.h
Log:
define GNUNET_JSON_from_data_auto
Modified: gnunet/src/include/gnunet_json_lib.h
===================================================================
--- gnunet/src/include/gnunet_json_lib.h 2016-05-20 15:29:50 UTC (rev
37188)
+++ gnunet/src/include/gnunet_json_lib.h 2016-05-21 16:16:02 UTC (rev
37189)
@@ -312,6 +312,16 @@
/**
+ * Convert binary data to a JSON string with the base32crockford
+ * encoding.
+ *
+ * @param ptr binary data, sizeof (*ptr) must yield correct size
+ * @return json string that encodes @a data
+ */
+#define GNUNET_JSON_from_data_auto(ptr) GNUNET_JSON_from_data(ptr, sizeof
(*ptr))
+
+
+/**
* Convert absolute timestamp to a json string.
*
* @param stamp the time stamp
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37189 - gnunet/src/include,
gnunet <=