summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd_denomination-pending-put.h
diff options
context:
space:
mode:
authorCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-04-11 18:34:24 +0200
committerCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-04-19 20:47:33 +0200
commit962bcbc6a6bd10f3bbe80766278c36b02f53c7e4 (patch)
tree39634fd97747bc2c2330c75fd93b91c8dc4dbab5 /src/auditor/taler-auditor-httpd_denomination-pending-put.h
parent99edbc9a947d494907d57ef64d124081fc475ff0 (diff)
downloadexchange-962bcbc6a6bd10f3bbe80766278c36b02f53c7e4.tar.gz
exchange-962bcbc6a6bd10f3bbe80766278c36b02f53c7e4.tar.bz2
exchange-962bcbc6a6bd10f3bbe80766278c36b02f53c7e4.zip
Add remaining CRUD
Diffstat (limited to 'src/auditor/taler-auditor-httpd_denomination-pending-put.h')
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-pending-put.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/auditor/taler-auditor-httpd_denomination-pending-put.h b/src/auditor/taler-auditor-httpd_denomination-pending-put.h
new file mode 100644
index 000000000..3af8f4eee
--- /dev/null
+++ b/src/auditor/taler-auditor-httpd_denomination-pending-put.h
@@ -0,0 +1,63 @@
+
+
+
+/*
+ This file is part of TALER
+ Copyright (C) 2024 Taler Systems SA
+
+ TALER is free software; you can redistribute it and/or modify it under the
+ terms of the GNU 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+
+
+#ifndef SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_PUT_H
+#define SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_PUT_H
+
+#include <microhttpd.h>
+#include "taler-auditor-httpd.h"
+
+/**
+* Initialize subsystem.
+*/
+void
+TEAH_BAD_DENOMINATION_PENDING_init (void);
+
+/**
+* Shut down subsystem.
+*/
+void
+TEAH_BAD_DENOMINATION_PENDING_done (void);
+
+
+/**
+* Handle a "/denomination-pending" request. Parses the JSON, and, if
+* successful, checks the signatures and stores the result in the DB.
+*
+* @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
+*/
+MHD_RESULT
+TAH_DENOMINATION_PENDING_handler_put (struct TAH_RequestHandler *rh,
+ struct MHD_Connection *
+ connection,
+ void **connection_cls,
+ const char *upload_data,
+ size_t *upload_data_size,
+ const char *const args[]);
+
+
+#endif // SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_PUT_H
+
+ \ No newline at end of file