exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

taler-auditor-httpd_deposit-confirmation.h (1932B)


      1 /*
      2   This file is part of TALER
      3   Copyright (C) 2018 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-auditor-httpd_deposit-confirmation.h
     18  * @brief Handle /deposit-confirmation requests
     19  * @author Christian Grothoff
     20  */
     21 #ifndef TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_H
     22 #define TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_H
     23 
     24 
     25 #include <microhttpd.h>
     26 #include "taler-auditor-httpd.h"
     27 
     28 /**
     29  * Initialize subsystem.
     30  */
     31 void
     32 TEAH_DEPOSIT_CONFIRMATION_init (void);
     33 
     34 /**
     35  * Shut down subsystem.
     36  */
     37 void
     38 TEAH_DEPOSIT_CONFIRMATION_done (void);
     39 
     40 
     41 /**
     42  * Handle a "/deposit-confirmation" request.  Parses the JSON, and, if
     43  * successful, checks the signatures and stores the result in the DB.
     44  *
     45  * @param rh context of the handler
     46  * @param connection the MHD connection to handle
     47  * @param[in,out] connection_cls the connection's closure (can be updated)
     48  * @param upload_data upload data
     49  * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
     50  * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
     51  * @return MHD result code
     52  */
     53 MHD_RESULT
     54 TAH_DEPOSIT_CONFIRMATION_handler (
     55   struct TAH_RequestHandler *rh,
     56   struct MHD_Connection *connection,
     57   void **connection_cls,
     58   const char *upload_data,
     59   size_t *upload_data_size,
     60   const char *const args[]);
     61 
     62 
     63 #endif