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-get.h (1950B)


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