fakebank_twg_admin_add_incoming.h (1743B)
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_twg_admin_add_incoming.h 21 * @brief library that fakes being a Taler bank for testcases 22 * @author Christian Grothoff <christian@grothoff.org> 23 */ 24 #ifndef FAKEBANK_TWG_ADMIN_ADD_INCOMING_H 25 #define FAKEBANK_TWG_ADMIN_ADD_INCOMING_H 26 #include "taler/taler_fakebank_lib.h" 27 #include "taler/taler_bank_service.h" 28 #include "taler/taler_mhd_lib.h" 29 #include <gnunet/gnunet_mhd_compat.h> 30 #include "fakebank.h" 31 32 /** 33 * Handle incoming HTTP request for /admin/add/incoming. 34 * 35 * @param h the fakebank handle 36 * @param connection the connection 37 * @param account account into which to deposit the funds (credit) 38 * @param upload_data request data 39 * @param upload_data_size size of @a upload_data in bytes 40 * @param con_cls closure for request (a `struct ConnectionContext *`) 41 * @return MHD result code 42 */ 43 MHD_RESULT 44 TALER_FAKEBANK_twg_admin_add_incoming_ ( 45 struct TALER_FAKEBANK_Handle *h, 46 struct MHD_Connection *connection, 47 const char *account, 48 const char *upload_data, 49 size_t *upload_data_size, 50 void **con_cls); 51 52 #endif