aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.c')
-rw-r--r--src/mint/taler-mint-httpd_parsing.c29
1 files changed, 24 insertions, 5 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.c b/src/mint/taler-mint-httpd_parsing.c
index a976c0c06..9a3fc1d6b 100644
--- a/src/mint/taler-mint-httpd_parsing.c
+++ b/src/mint/taler-mint-httpd_parsing.c
@@ -156,11 +156,11 @@ buffer_append (struct Buffer *buf,
156 * GNUNET_SYSERR on internal error 156 * GNUNET_SYSERR on internal error
157 */ 157 */
158int 158int
159process_post_json (struct MHD_Connection *connection, 159TALER_MINT_parse_post_json (struct MHD_Connection *connection,
160 void **con_cls, 160 void **con_cls,
161 const char *upload_data, 161 const char *upload_data,
162 size_t *upload_data_size, 162 size_t *upload_data_size,
163 json_t **json) 163 json_t **json)
164{ 164{
165 struct Buffer *r = *con_cls; 165 struct Buffer *r = *con_cls;
166 166
@@ -229,6 +229,23 @@ process_post_json (struct MHD_Connection *connection,
229 229
230 230
231/** 231/**
232 * Function called whenever we are done with a request
233 * to clean up our state.
234 *
235 * @param con_cls value as it was left by
236 * #TALER_MINT_parse_post_json(), to be cleaned up
237 */
238void
239TALER_MINT_parse_post_cleanup_callback (void *con_cls)
240{
241 struct Buffer *r = con_cls;
242
243 if (NULL != r)
244 buffer_deinit (r);
245}
246
247
248/**
232 * Navigate through a JSON tree. 249 * Navigate through a JSON tree.
233 * 250 *
234 * Sends an error response if navigation is impossible (i.e. 251 * Sends an error response if navigation is impossible (i.e.
@@ -451,3 +468,5 @@ TALER_MINT_mhd_request_arg_data (struct MHD_Connection *connection,
451 ? GNUNET_SYSERR : GNUNET_NO; 468 ? GNUNET_SYSERR : GNUNET_NO;
452 return GNUNET_OK; 469 return GNUNET_OK;
453} 470}
471
472/* end of taler-mint-httpd_parsing.c */