From 45a0c893161d7d0abd950a303f6e2fdc6df880d4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 11 Apr 2015 16:29:11 +0200 Subject: implement #3471 --- src/mint/taler-mint-httpd_parsing.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mint/taler-mint-httpd_parsing.h') diff --git a/src/mint/taler-mint-httpd_parsing.h b/src/mint/taler-mint-httpd_parsing.h index feac6087..0a61d077 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h @@ -322,6 +322,23 @@ TMH_PARSE_amount_json (struct MHD_Connection *connection, struct TALER_Amount *amount); +/** + * 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. * -- cgit v1.2.3