gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] 01/02: add refund header file


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] 01/02: add refund header file
Date: Wed, 14 Jun 2017 09:57:25 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant.

commit 4d16ae5b77297ea8a84f5a9f7b8056b96bc15c10
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jun 14 09:41:04 2017 +0200

    add refund header file
---
 doc/version.texi                                   |  4 +--
 src/backend/Makefile.am                            |  3 +-
 src/backend/taler-merchant-httpd.c                 |  2 +-
 src/backend/taler-merchant-httpd_refund.c          |  3 +-
 ...t-httpd_map.h => taler-merchant-httpd_refund.h} | 42 ++++++++++------------
 5 files changed, 26 insertions(+), 28 deletions(-)

diff --git a/doc/version.texi b/doc/version.texi
index fc2400a..acbfcb4 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
address@hidden UPDATED 7 June 2017
address@hidden UPDATED-MONTH June 2017
address@hidden UPDATED 31 May 2017
address@hidden UPDATED-MONTH May 2017
 @set EDITION 0.3.0
 @set VERSION 0.3.0
diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am
index 55ad752..1233ba8 100644
--- a/src/backend/Makefile.am
+++ b/src/backend/Makefile.am
@@ -24,7 +24,8 @@ taler_merchant_httpd_SOURCES = \
   taler-merchant-httpd_pay.c taler-merchant-httpd_pay.h \
   taler-merchant-httpd_history.c taler-merchant-httpd_history.h \
   taler-merchant-httpd_track-transaction.c 
taler-merchant-httpd_track-transaction.h \
-  taler-merchant-httpd_track-transfer.c taler-merchant-httpd_track-transfer.h
+  taler-merchant-httpd_track-transfer.c taler-merchant-httpd_track-transfer.h \
+  taler-merchant-httpd_refund.c taler-merchant-httpd_refund.h
 
 
 taler_merchant_httpd_LDADD = \
diff --git a/src/backend/taler-merchant-httpd.c 
b/src/backend/taler-merchant-httpd.c
index 0efa7eb..8930c10 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -40,7 +40,7 @@
 #include "taler-merchant-httpd_track-transaction.h"
 #include "taler-merchant-httpd_track-transfer.h"
 #include "taler-merchant-httpd_history.h"
-#include "taler-merchant-httpd_map.h"
+#include "taler-merchant-httpd_refund.h"
 
 /**
  * Backlog for listen operation on unix-domain sockets.
diff --git a/src/backend/taler-merchant-httpd_refund.c 
b/src/backend/taler-merchant-httpd_refund.c
index 53ca0a3..a55eb70 100644
--- a/src/backend/taler-merchant-httpd_refund.c
+++ b/src/backend/taler-merchant-httpd_refund.c
@@ -157,7 +157,8 @@ MH_handler_refund_lookup (struct TMH_RequestHandler *rh,
                                           TALER_EC_PARAMETER_MISSING,
                                            "order_id");
   /* FIXME: TBD */
-  return res;
+
+  /* return res; */
 }
 
 
diff --git a/src/backend/taler-merchant-httpd_map.h 
b/src/backend/taler-merchant-httpd_refund.h
similarity index 60%
rename from src/backend/taler-merchant-httpd_map.h
rename to src/backend/taler-merchant-httpd_refund.h
index 83aca2b..64da3f9 100644
--- a/src/backend/taler-merchant-httpd_map.h
+++ b/src/backend/taler-merchant-httpd_refund.h
@@ -1,6 +1,6 @@
 /*
   This file is part of TALER
-  (C) 2014, 2015, 2016 INRIA
+  (C) 2014, 2015, 2016, 2017 INRIA
 
   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
@@ -13,23 +13,22 @@
   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/>
 */
+
 /**
- * @file backend/taler-merchant-httpd_map.c
+ * @file backend/taler-merchant-httpd_refund.c
  * @brief HTTP serving layer mainly intended to communicate with the frontend
  * @author Marcello Stanisci
  */
 
-#ifndef TALER_MERCHANT_HTTPD_MAP_H
-#define TALER_MERCHANT_HTTPD_MAP_H
+#ifndef TALER_MERCHANT_HTTPD_REFUND_H
+#define TALER_MERCHANT_HTTPD_REFUND_H
 #include <microhttpd.h>
 #include "taler-merchant-httpd.h"
 
-
 /**
- * Manage a /map/in request. Store in db a plain text contract
- * and its hashcode.
+ * Handle request for increasing the refund associated with
+ * a contract.
  *
- * @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
@@ -37,16 +36,15 @@
  * @return MHD result code
  */
 int
-MH_handler_map_in (struct TMH_RequestHandler *rh,
-                   struct MHD_Connection *connection,
-                   void **connection_cls,
-                   const char *upload_data,
-                   size_t *upload_data_size);
+MH_handler_refund_increase (struct TMH_RequestHandler *rh,
+                            struct MHD_Connection *connection,
+                            void **connection_cls,
+                            const char *upload_data,
+                            size_t *upload_data_size);
 
 
 /**
- * Manage a /map/out request. Query the db and returns a plain
- * text contract associated with the hashcode given as input
+ * Return refund situation about a contract.
  *
  * @param rh context of the handler
  * @param connection the MHD connection to handle
@@ -56,11 +54,9 @@ MH_handler_map_in (struct TMH_RequestHandler *rh,
  * @return MHD result code
  */
 int
-MH_handler_map_out (struct TMH_RequestHandler *rh,
-                    struct MHD_Connection *connection,
-                    void **connection_cls,
-                    const char *upload_data,
-                    size_t *upload_data_size);
-
-/* end of taler-merchant-httpd_history.c */
-#endif
+MH_handler_refund_lookup (struct TMH_RequestHandler *rh,
+                          struct MHD_Connection *connection,
+                          void **connection_cls,
+                          const char *upload_data,
+                          size_t *upload_data_size);
+#endif                          

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]