diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-11 16:29:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-11 16:29:11 +0200 |
commit | 45a0c893161d7d0abd950a303f6e2fdc6df880d4 (patch) | |
tree | b2ce4d0ef0bb81d4bcfb337269d389a92759b4b9 /src/mint/taler-mint-httpd_parsing.h | |
parent | 5f879c0b4bfe92968ab5c3fd38b5ba69177c0ef7 (diff) | |
download | exchange-45a0c893161d7d0abd950a303f6e2fdc6df880d4.tar.gz exchange-45a0c893161d7d0abd950a303f6e2fdc6df880d4.tar.bz2 exchange-45a0c893161d7d0abd950a303f6e2fdc6df880d4.zip |
implement #3471
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.h')
-rw-r--r-- | src/mint/taler-mint-httpd_parsing.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.h b/src/mint/taler-mint-httpd_parsing.h index feac6087d..0a61d0770 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h @@ -323,6 +323,23 @@ TMH_PARSE_amount_json (struct MHD_Connection *connection, /** + * Parse absolute time specified in JSON format. + * + * @param connection the MHD connection (to report errors) + * @param f json specification of the amount + * @param[out] time set to the time specified in @a f + * @return + * #GNUNET_YES if parsing was successful + * #GNUNET_NO if json is malformed, error response was generated + * #GNUNET_SYSERR on internal error, error response was not generated + */ +int +TMH_PARSE_time_abs_json (struct MHD_Connection *connection, + json_t *f, + struct GNUNET_TIME_Absolute *time); + + +/** * Extraxt fixed-size base32crockford encoded data from request. * * Queues an error response to the connection if the parameter is missing or |