diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-24 18:27:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-24 18:27:24 +0100 |
commit | a3ac2587cfee3c8b6e058d4086eea8f5f297e5af (patch) | |
tree | 61e4e8881d2c7d0952a44f75f08582b852789169 /src/mint/taler-mint-httpd_parsing.h | |
parent | ec05a64e3e6346ea91b79244a0a69b06afd22562 (diff) | |
parent | 324bf3f980542cb9f209ee7edc6f142c5c34e5a2 (diff) | |
download | exchange-a3ac2587cfee3c8b6e058d4086eea8f5f297e5af.tar.gz exchange-a3ac2587cfee3c8b6e058d4086eea8f5f297e5af.tar.bz2 exchange-a3ac2587cfee3c8b6e058d4086eea8f5f297e5af.zip |
Merge branch 'master' of git.taler.net:/var/git/mint
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.h')
-rw-r--r-- | src/mint/taler-mint-httpd_parsing.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.h b/src/mint/taler-mint-httpd_parsing.h index 94e2927d8..7a322d4d7 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h @@ -120,7 +120,13 @@ enum TALER_MINT_JsonNavigationCommand * Return a `struct GNUNET_CRYPTO_rsa_Signature` which was * encoded as variable-size base32crockford encoded data. */ - JNAV_RET_RSA_SIGNATURE + JNAV_RET_RSA_SIGNATURE, + + /** + * Return a `struct TALER_Amount` which was + * encoded within its own json object. + */ + JNAV_RET_AMOUNT }; @@ -271,6 +277,14 @@ TALER_MINT_release_parsed_data (struct GNUNET_MINT_ParseFieldSpec *spec); #define TALER_MINT_PARSE_RSA_SIGNATURE(field,ptrsig) { field, ptrsig, 0, 0, JNAV_RET_RSA_SIGNATURE, 0 } /** + * Generate line in parser specification for an amount. + * + * @param field name of the field + * @param amount a `struct TALER_Amount *` to initialize + */ +#define TALER_MINT_PARSE_AMOUNT(field,amount) { field, amount, sizeof(*amount), 0, JNAV_RET_AMOUNT, 0 } + +/** * Generate line in parser specification indicating the end of the spec. */ #define TALER_MINT_PARSE_END { NULL, NULL, 0, 0, JNAV_FIELD, 0 } |