aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_withdraw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd_withdraw.h')
-rw-r--r--src/mint/taler-mint-httpd_withdraw.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_withdraw.h b/src/mint/taler-mint-httpd_withdraw.h
new file mode 100644
index 000000000..1d292ebd9
--- /dev/null
+++ b/src/mint/taler-mint-httpd_withdraw.h
@@ -0,0 +1,65 @@
1/*
2 This file is part of TALER
3 (C) 2014 GNUnet e.V.
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, If not, see <http://www.gnu.org/licenses/>
15*/
16/**
17 * @file taler-mint-httpd_withdraw.h
18 * @brief Handle /withdraw/ requests
19 * @author Florian Dold
20 * @author Benedikt Mueller
21 * @author Christian Grothoff
22 */
23#ifndef TALER_MINT_HTTPD_WITHDRAW_H
24#define TALER_MINT_HTTPD_WITHDRAW_H
25
26#include <gnunet/gnunet_util_lib.h>
27#include <microhttpd.h>
28#include "taler-mint-httpd.h"
29
30/**
31 * Handle a "/withdraw/status" request
32 *
33 * @param rh context of the handler
34 * @param connection the MHD connection to handle
35 * @param[IN|OUT] connection_cls the connection's closure (can be updated)
36 * @param upload_data upload data
37 * @param[IN|OUT] upload_data_size number of bytes (left) in @a upload_data
38 * @return MHD result code
39 */
40int
41TALER_MINT_handler_withdraw_status (struct RequestHandler *rh,
42 struct MHD_Connection *connection,
43 void **connection_cls,
44 const char *upload_data,
45 size_t *upload_data_size);
46
47
48/**
49 * Handle a "/withdraw/sign" request
50 *
51 * @param rh context of the handler
52 * @param connection the MHD connection to handle
53 * @param[IN|OUT] connection_cls the connection's closure (can be updated)
54 * @param upload_data upload data
55 * @param[IN|OUT] upload_data_size number of bytes (left) in @a upload_data
56 * @return MHD result code
57 */
58int
59TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh,
60 struct MHD_Connection *connection,
61 void **connection_cls,
62 const char *upload_data,
63 size_t *upload_data_size);
64
65#endif