gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 15/23: config


From: gnunet
Subject: [taler-taler-mdb] 15/23: config
Date: Wed, 04 Dec 2019 14:16:01 +0100

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

grothoff pushed a commit to branch master
in repository taler-mdb.

commit 9347f9ef1b267a53e32424127ac219db33ee6744
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 4 13:10:34 2019 +0100

    config
---
 src/main.c | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 7863c4c..691e508 100644
--- a/src/main.c
+++ b/src/main.c
@@ -96,6 +96,7 @@ along with
   * Upper lenght of the uid for a valid MIFARE target
   */
 #define UID_LEN_UPPER 7
+
 /**
   * Lower lenght of the uid for a valid MIFARE target
   */
@@ -149,7 +150,7 @@ along with
 
 struct MdbBlock
 {
-  uint8_t*bin;
+  uint8_t *bin;
 
   size_t bin_size;
 };
@@ -194,6 +195,7 @@ struct Product
   char key;
 };
 
+
 /**
  * Handle for a payment
  */
@@ -248,7 +250,9 @@ struct PaymentActivity
 };
 
 
-
+/**
+ * Data structures associated with the MDB.
+ */
 struct MdbHandle
 {
 
@@ -400,10 +404,29 @@ static unsigned int products_length;
  */
 static struct MdbHandle mdb;
 
+/**
+ * MDB response to the request for configuration.
+ */
 static struct MdbCommand readerConfigData;
+
+/**
+ * Ask MDB to begin session (with "infinite" money)
+ */
 static struct MdbCommand beginSession;
+
+/**
+ * Refuse vending request (payment failed)
+ */
 static struct MdbCommand denyVend;
+
+/**
+ * Approve vending request (payment succeeded)
+ */
 static struct MdbCommand approveVend;
+
+/**
+ * Terminate session.
+ */
 static struct MdbCommand endSession;
 
 /**

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



reply via email to

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