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_wire.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_wire.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_wire.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index 2617b574f..7246939d5 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c @@ -95,7 +95,7 @@ destroy_wire_state_cb (void *cls) } -int +enum GNUNET_GenericReturnValue TEH_WIRE_init () { if (0 != @@ -369,21 +369,19 @@ get_wire_state (void) MHD_RESULT -TEH_handler_wire (const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, +TEH_handler_wire (struct TEH_RequestContext *rc, const char *const args[]) { struct WireStateHandle *wsh; - (void) rh; (void) args; wsh = get_wire_state (); if (NULL == wsh) - return TALER_MHD_reply_with_error (connection, + return TALER_MHD_reply_with_error (rc->connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION, NULL); - return TALER_MHD_reply_json (connection, + return TALER_MHD_reply_json (rc->connection, wsh->wire_reply, wsh->http_status); } |