aboutsummaryrefslogtreecommitdiff
path: root/src/mint-lib/mint_api_json.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-22 18:11:34 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-22 18:11:34 +0200
commitd98d085ff570e8a4a45a17909b958bd436aade08 (patch)
treec93ce3d3d6b0cb5d936dc096110606126b058c01 /src/mint-lib/mint_api_json.h
parentb381a3093df0751ff3b600e7566c437d523250a7 (diff)
parent214bcf54c7099974fba0f3ea242e9488139e0d0b (diff)
Merge branch 'master' of git+ssh://git.taler.net/var/git/mint
Diffstat (limited to 'src/mint-lib/mint_api_json.h')
-rw-r--r--src/mint-lib/mint_api_json.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mint-lib/mint_api_json.h b/src/mint-lib/mint_api_json.h
index 91679831..ec3b63cb 100644
--- a/src/mint-lib/mint_api_json.h
+++ b/src/mint-lib/mint_api_json.h
@@ -219,6 +219,17 @@ MAJ_parse_free (struct MAJ_Specification *spec);
/**
+ * Variable size object (in network byte order, encoded using Crockford
+ * Base32hex encoding).
+ *
+ * @param name name of the JSON field
+ * @param obj_ptr pointer where to write the data (a `void **`)
+ * @param size where to store the number of bytes allocated for @a obj (of type `size_t *`
+ */
+#define MAJ_spec_varsize(name,obj,size) { .cmd = MAJ_CMD_BINARY_VARIABLE, .field = name, .details.variable_data.dest_p = obj, .details.variable_data.dest_size_p = size }
+
+
+/**
* Absolute time.
*
* @param name name of the JSON field