aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_terms.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-21 14:00:29 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-21 14:00:29 +0200
commitf93a0592b29b66c6bbacbb38f42e8dfd5a3a6aee (patch)
treeb0bc2b8a6a84919980e6b9a844ac773da26cfc5e /src/exchange/taler-exchange-httpd_terms.c
parenta51f39217ec3b659f938687e2146ceb17078733d (diff)
-change handler signatures to prepare for long polling support
Diffstat (limited to 'src/exchange/taler-exchange-httpd_terms.c')
-rw-r--r--src/exchange/taler-exchange-httpd_terms.c35
1 files changed, 5 insertions, 30 deletions
diff --git a/src/exchange/taler-exchange-httpd_terms.c b/src/exchange/taler-exchange-httpd_terms.c
index 1c703021..10114f15 100644
--- a/src/exchange/taler-exchange-httpd_terms.c
+++ b/src/exchange/taler-exchange-httpd_terms.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2019 Taler Systems SA
+ Copyright (C) 2019, 2021 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
@@ -38,51 +38,26 @@ static struct TALER_MHD_Legal *tos;
static struct TALER_MHD_Legal *pp;
-/**
- * Handle a "/terms" request.
- *
- * @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_terms (const struct TEH_RequestHandler *rh,
- struct MHD_Connection *connection,
+TEH_handler_terms (struct TEH_RequestContext *rc,
const char *const args[])
{
- (void) rh;
(void) args;
- return TALER_MHD_reply_legal (connection,
+ return TALER_MHD_reply_legal (rc->connection,
tos);
}
-/**
- * Handle a "/privacy" request.
- *
- * @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_privacy (const struct TEH_RequestHandler *rh,
- struct MHD_Connection *connection,
+TEH_handler_privacy (struct TEH_RequestContext *rc,
const char *const args[])
{
- (void) rh;
(void) args;
- return TALER_MHD_reply_legal (connection,
+ return TALER_MHD_reply_legal (rc->connection,
pp);
}
-/**
- * Load our terms of service as per configuration.
- *
- * @param cfg configuration to process
- */
void
TEH_load_terms (const struct GNUNET_CONFIGURATION_Handle *cfg)
{