diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-24 15:17:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-24 15:17:36 +0100 |
commit | d89c91e64aac6b8ba0a77eb8b95d975776969e2a (patch) | |
tree | ead8a1cac5ac5419370b7e61b414a3298f2a6863 /src/mint-lib/mint_api_json.h | |
parent | 76b5350c30bb6d36ee548a7de554f388b5068e01 (diff) | |
parent | d6553966f11e24f8f86aa21c0ce3760b6e966006 (diff) |
Merge branch 'master' of git+ssh://taler.net/var/git/mint
Diffstat (limited to 'src/mint-lib/mint_api_json.h')
-rw-r--r-- | src/mint-lib/mint_api_json.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mint-lib/mint_api_json.h b/src/mint-lib/mint_api_json.h index 68809059..6bc3a557 100644 --- a/src/mint-lib/mint_api_json.h +++ b/src/mint-lib/mint_api_json.h @@ -79,6 +79,11 @@ enum MAJ_Command MAJ_CMD_UINT16, /** + * Parse `uint64_t` integer at the current position. + */ + MAJ_CMD_UINT64, + + /** * Parse JSON object at the current position. */ MAJ_CMD_JSON_OBJECT, @@ -192,6 +197,11 @@ struct MAJ_Specification uint16_t *u16; /** + * Where to store 64-bit integer. + */ + uint64_t *u64; + + /** * Where to store a JSON object. */ json_t **obj; @@ -283,6 +293,17 @@ MAJ_spec_uint16 (const char *name, /** + * 64-bit integer. + * + * @param name name of the JSON field + * @param[out] u64 where to store the integer found under @a name + */ +struct MAJ_Specification +MAJ_spec_uint64 (const char *name, + uint64_t *u64); + + +/** * JSON object. * * @param name name of the JSON field |