diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-15 15:00:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-15 15:00:26 +0200 |
commit | 74e237164ce7958c19467ad440e45576c4425570 (patch) | |
tree | e5156b7197cbb76ad0b0d617d9a04eeb2c08ea48 /src/exchange/taler-exchange-httpd_wire.h | |
parent | ebf049a8c2d982e723fe67dbff64e1eea14d8247 (diff) | |
parent | 3098c0a9e0b18a436e484ef693cdebeb16d4c131 (diff) | |
download | exchange-74e237164ce7958c19467ad440e45576c4425570.tar.gz exchange-74e237164ce7958c19467ad440e45576c4425570.tar.bz2 exchange-74e237164ce7958c19467ad440e45576c4425570.zip |
Merge branch 'master' of ssh://taler.net:/var/git/exchange
Diffstat (limited to 'src/exchange/taler-exchange-httpd_wire.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_wire.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_wire.h b/src/exchange/taler-exchange-httpd_wire.h new file mode 100644 index 000000000..cf04f16ff --- /dev/null +++ b/src/exchange/taler-exchange-httpd_wire.h @@ -0,0 +1,47 @@ +/* + This file is part of TALER + Copyright (C) 2014, 2015, 2016 Inria and GNUnet e.V. + + TALER is free software; you can redistribute it and/or modify it under the + terms of the GNU Affero General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + TALER is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License along with + TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> +*/ +/** + * @file taler-exchange-httpd_wire.h + * @brief Handle /wire requests + * @author Christian Grothoff + */ +#ifndef TALER_EXCHANGE_HTTPD_WIRE_H +#define TALER_EXCHANGE_HTTPD_WIRE_H + +#include <gnunet/gnunet_util_lib.h> +#include <microhttpd.h> +#include "taler-exchange-httpd.h" + + +/** + * Handle a "/wire" request. + * + * @param rh context of the handler + * @param connection the MHD connection to handle + * @param[in,out] connection_cls the connection's closure (can be updated) + * @param upload_data upload data + * @param[in,out] upload_data_size number of bytes (left) in @a upload_data + * @return MHD result code + */ +int +TMH_WIRE_handler_wire (struct TMH_RequestHandler *rh, + struct MHD_Connection *connection, + void **connection_cls, + const char *upload_data, + size_t *upload_data_size); + + +#endif |