fakebank_tbi.h (1812B)
1 /* 2 This file is part of TALER 3 (C) 2016-2023 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or 6 modify it under the terms of the GNU General Public License 7 as published by the Free Software Foundation; either version 3, 8 or (at your option) any later version. 9 10 TALER is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public 16 License along with TALER; see the file COPYING. If not, 17 see <http://www.gnu.org/licenses/> 18 */ 19 /** 20 * @file bank-lib/fakebank_tbi.c 21 * @brief main entry point to the Taler Bank Integration (TBI) API implementation 22 * @author Christian Grothoff <christian@grothoff.org> 23 */ 24 #include "taler/taler_fakebank_lib.h" 25 #include "taler/taler_bank_service.h" 26 #include "taler/taler_mhd_lib.h" 27 #include <gnunet/gnunet_mhd_compat.h> 28 29 30 #ifndef FAKEBANK_TBI_H 31 #define FAKEBANK_TBI_H 32 33 /** 34 * Handle incoming HTTP request to the bank integration API. 35 * 36 * @param h our fakebank handle 37 * @param connection the connection 38 * @param url the requested url 39 * @param method the method (POST, GET, ...) 40 * @param upload_data request data 41 * @param upload_data_size size of @a upload_data in bytes 42 * @param con_cls closure for request 43 * @return MHD result code 44 */ 45 MHD_RESULT 46 TALER_FAKEBANK_tbi_main_ (struct TALER_FAKEBANK_Handle *h, 47 struct MHD_Connection *connection, 48 const char *url, 49 const char *method, 50 const char *upload_data, 51 size_t *upload_data_size, 52 void **con_cls); 53 54 #endif