diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-22 14:36:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-22 14:36:01 +0200 |
commit | 3954fbe8c0bf1501c6067907c874127109a12457 (patch) | |
tree | 4c477709e0d55ce8891da5617b641787afec2515 /src/mint-lib/mint_api_json.h | |
parent | f0c88588254e8fa671bec19e0fea45364fe13b34 (diff) | |
download | exchange-3954fbe8c0bf1501c6067907c874127109a12457.tar.xz |
finishing implementation of #3516
Diffstat (limited to 'src/mint-lib/mint_api_json.h')
-rw-r--r-- | src/mint-lib/mint_api_json.h | 11 |
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 91679831d..ec3b63cbc 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 |