diff options
| author | Christian Grothoff <christian@grothoff.org> | 2019-11-23 21:12:27 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2019-11-23 21:12:27 +0100 | 
| commit | c22efccce8ce864ff8fd84fa968f5c0d44c36d3d (patch) | |
| tree | 97713b6ca9c4580e63ab449c7d18b8c3b208cc7c /src/exchange/taler-exchange-httpd_refresh_melt.c | |
| parent | 8f006e779e12fed604182faa096ebe6b5726d04d (diff) | |
migrate parsing logic to libtalermhd
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refresh_melt.c')
| -rw-r--r-- | src/exchange/taler-exchange-httpd_refresh_melt.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/src/exchange/taler-exchange-httpd_refresh_melt.c b/src/exchange/taler-exchange-httpd_refresh_melt.c index 2de5027f..20e78845 100644 --- a/src/exchange/taler-exchange-httpd_refresh_melt.c +++ b/src/exchange/taler-exchange-httpd_refresh_melt.c @@ -24,8 +24,8 @@  #include <gnunet/gnunet_util_lib.h>  #include <jansson.h>  #include <microhttpd.h> +#include "taler_json_lib.h"  #include "taler_mhd_lib.h" -#include "taler-exchange-httpd_parsing.h"  #include "taler-exchange-httpd_mhd.h"  #include "taler-exchange-httpd_refresh_melt.h"  #include "taler-exchange-httpd_responses.h" @@ -482,11 +482,11 @@ TEH_REFRESH_handler_refresh_melt (struct TEH_RequestHandler *rh,    };    (void) rh; -  res = TEH_PARSE_post_json (connection, -                             connection_cls, -                             upload_data, -                             upload_data_size, -                             &root); +  res = TALER_MHD_parse_post_json (connection, +                                   connection_cls, +                                   upload_data, +                                   upload_data_size, +                                   &root);    if (GNUNET_SYSERR == res)      return MHD_NO;    if ( (GNUNET_NO == res) || @@ -496,9 +496,9 @@ TEH_REFRESH_handler_refresh_melt (struct TEH_RequestHandler *rh,    memset (&rmc,            0,            sizeof (rmc)); -  res = TEH_PARSE_json_data (connection, -                             root, -                             spec); +  res = TALER_MHD_parse_json_data (connection, +                                   root, +                                   spec);    json_decref (root);    if (GNUNET_OK != res)      return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES;  | 
