taler-exchange-httpd_batch-deposit.h (1812B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2014 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU Affero General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. 12 13 You should have received a copy of the GNU Affero General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file taler-exchange-httpd_batch-deposit.h 18 * @brief Handle /batch-deposit requests 19 * @author Florian Dold 20 * @author Benedikt Mueller 21 * @author Christian Grothoff 22 */ 23 #ifndef TALER_EXCHANGE_HTTPD_BATCH_DEPOSIT_H 24 #define TALER_EXCHANGE_HTTPD_BATCH_DEPOSIT_H 25 26 #include <gnunet/gnunet_util_lib.h> 27 #include <microhttpd.h> 28 #include "taler-exchange-httpd.h" 29 30 31 /** 32 * Resumes all suspended batch deposit requests 33 * during cleanup. 34 */ 35 void 36 TEH_batch_deposit_cleanup (void); 37 38 39 /** 40 * Handle a "/batch-deposit" request. Parses the JSON, and, if 41 * successful, passes the JSON data to #deposit_transaction() to 42 * further check the details of the operation specified. If everything checks 43 * out, this will ultimately lead to the "/batch-deposit" being executed, or 44 * rejected. 45 * 46 * @param rc request context 47 * @param root uploaded JSON data 48 * @param args arguments, empty in this case 49 * @return MHD result code 50 */ 51 MHD_RESULT 52 TEH_handler_batch_deposit (struct TEH_RequestContext *rc, 53 const json_t *root, 54 const char *const args[]); 55 56 57 #endif