diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-10 20:06:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-10 20:06:36 +0200 |
commit | a5da6d3cec3b090c5aa21255eed37fc7a3ca48ec (patch) | |
tree | 0f2a93abc26c9d53690864a47250035dbb167a14 /src/backend/taler-merchant-httpd_private-get-transfers.h | |
parent | 47811a60b692e575274305d4cac429220d27a328 (diff) |
GET /transfers implementation
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-transfers.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-transfers.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-transfers.h b/src/backend/taler-merchant-httpd_private-get-transfers.h index 0463295e..556e8558 100644 --- a/src/backend/taler-merchant-httpd_private-get-transfers.h +++ b/src/backend/taler-merchant-httpd_private-get-transfers.h @@ -14,36 +14,29 @@ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ /** - * @file backend/taler-merchant-httpd_track-transfer.h - * @brief headers for /track/transfer handler + * @file backend/taler-merchant-httpd_private-get-transfers.h + * @brief headers for GET /transfers handler * @author Christian Grothoff * @author Marcello Stanisci */ -#ifndef TALER_MERCHANT_HTTPD_TRACK_TRANSFER_H -#define TALER_MERCHANT_HTTPD_TRACK_TRANSFER_H +#ifndef TALER_MERCHANT_HTTPD_PRIVATE_GET_TRANSFERS_H +#define TALER_MERCHANT_HTTPD_PRIVATE_GET_TRANSFERS_H #include <microhttpd.h> #include "taler-merchant-httpd.h" + /** - * Manages a /track/transfer call, thus it calls the /wire/transfer - * offered by the exchange in order to return the set of transfers - * (of coins) associated with a given wire transfer + * Manages a GET /private/transfers call. * * @param rh context of the handler * @param connection the MHD connection to handle - * @param[in,out] connection_cls the connection's closure (can be updated) - * @param upload_data upload data - * @param[in,out] upload_data_size number of bytes (left) in @a upload_data - * @param mi merchant backend instance, never NULL + * @param[in,out] hc context with further information about the request * @return MHD result code */ MHD_RESULT -MH_handler_track_transfer (struct TMH_RequestHandler *rh, +TMH_private_get_transfers (const struct TMH_RequestHandler *rh, struct MHD_Connection *connection, - void **connection_cls, - const char *upload_data, - size_t *upload_data_size, - struct MerchantInstance *mi); + struct TMH_HandlerContext *hc); #endif |