diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.h')
-rw-r--r-- | src/mint/taler-mint-httpd_parsing.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.h b/src/mint/taler-mint-httpd_parsing.h index 9c4d8aafe..1c13c9469 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h | |||
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | #include <microhttpd.h> | 26 | #include <microhttpd.h> |
27 | #include <jansson.h> | 27 | #include <jansson.h> |
28 | #include "taler_util.h" | ||
28 | 29 | ||
29 | 30 | ||
30 | /** | 31 | /** |
@@ -216,6 +217,23 @@ TALER_MINT_release_parsed_data (struct GNUNET_MINT_ParseFieldSpec *spec); | |||
216 | 217 | ||
217 | 218 | ||
218 | /** | 219 | /** |
220 | * Parse amount specified in JSON format. | ||
221 | * | ||
222 | * @param connection the MHD connection (to report errors) | ||
223 | * @param f json specification of the amount | ||
224 | * @param amount[OUT] set to the amount specified in @a f | ||
225 | * @return | ||
226 | * #GNUNET_YES if parsing was successful | ||
227 | * #GNUNET_NO if json is malformed, error response was generated | ||
228 | * #GNUNET_SYSERR on internal error, error response was not generated | ||
229 | */ | ||
230 | int | ||
231 | TALER_MINT_parse_amount_json (struct MHD_Connection *connection, | ||
232 | json_t *f, | ||
233 | struct TALER_Amount *amount); | ||
234 | |||
235 | |||
236 | /** | ||
219 | * Extraxt fixed-size base32crockford encoded data from request. | 237 | * Extraxt fixed-size base32crockford encoded data from request. |
220 | * | 238 | * |
221 | * Queues an error response to the connection if the parameter is missing or | 239 | * Queues an error response to the connection if the parameter is missing or |