From 4bd515191b6db342ff465e0595cfeafe6da8a680 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 16 Jan 2015 14:27:42 +0100 Subject: nicer TALER_MINT_parse_post_json return value handling, fixing return values where GNUNET_SYSERR is used instead of MHD_NO, marking cases where we should return a proper error message --- src/mint/taler-mint-httpd_parsing.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 d9516d48..c725187c 100644 --- a/src/mint/taler-mint-httpd_parsing.h +++ b/src/mint/taler-mint-httpd_parsing.h @@ -80,10 +80,11 @@ enum * @param upload_data the POST data * @param upload_data_size number of bytes in @a upload_data * @param json the JSON object for a completed request - * * @returns * GNUNET_YES if json object was parsed or at least - * may be parsed in the future (call again) + * may be parsed in the future (call again); + * `*json` will be NULL if we need to be called again, + * and non-NULL if we are done. * GNUNET_NO is request incomplete or invalid * (error message was generated) * GNUNET_SYSERR on internal error -- cgit v1.2.3