diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-21 14:00:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-21 14:00:29 +0200 |
commit | f93a0592b29b66c6bbacbb38f42e8dfd5a3a6aee (patch) | |
tree | b0bc2b8a6a84919980e6b9a844ac773da26cfc5e /src/exchange/taler-exchange-httpd_mhd.c | |
parent | a51f39217ec3b659f938687e2146ceb17078733d (diff) | |
download | exchange-f93a0592b29b66c6bbacbb38f42e8dfd5a3a6aee.tar.gz exchange-f93a0592b29b66c6bbacbb38f42e8dfd5a3a6aee.tar.bz2 exchange-f93a0592b29b66c6bbacbb38f42e8dfd5a3a6aee.zip |
-change handler signatures to prepare for long polling support
Diffstat (limited to 'src/exchange/taler-exchange-httpd_mhd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_mhd.c | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/src/exchange/taler-exchange-httpd_mhd.c b/src/exchange/taler-exchange-httpd_mhd.c index c9c6303b8..8d07c3cfc 100644 --- a/src/exchange/taler-exchange-httpd_mhd.c +++ b/src/exchange/taler-exchange-httpd_mhd.c @@ -34,27 +34,18 @@ #include "taler-exchange-httpd_mhd.h" -/** - * Function to call to handle the request by sending - * back static data from the @a rh. - * - * @param rh context of the handler - * @param connection the MHD connection to handle - * @param args array of additional options (must be empty for this function) - * @return MHD result code - */ MHD_RESULT -TEH_handler_static_response (const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, +TEH_handler_static_response (struct TEH_RequestContext *rc, const char *const args[]) { + const struct TEH_RequestHandler *rh = rc->rh; size_t dlen; (void) args; dlen = (0 == rh->data_size) ? strlen ((const char *) rh->data) : rh->data_size; - return TALER_MHD_reply_static (connection, + return TALER_MHD_reply_static (rc->connection, rh->response_code, rh->mime_type, rh->data, @@ -62,24 +53,13 @@ TEH_handler_static_response (const struct TEH_RequestHandler *rh, } -/** - * Function to call to handle the request by sending - * back a redirect to the AGPL source code. - * - * @param rh context of the handler - * @param connection the MHD connection to handle - * @param args array of additional options (must be empty for this function) - * @return MHD result code - */ MHD_RESULT -TEH_handler_agpl_redirect (const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, +TEH_handler_agpl_redirect (struct TEH_RequestContext *rc, const char *const args[]) { - (void) rh; (void) args; - return TALER_MHD_reply_agpl (connection, - "http://www.git.taler.net/?p=exchange.git"); + return TALER_MHD_reply_agpl (rc->connection, + "https://git.taler.net/?p=exchange.git"); } |