[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.
- [taler-taler-mdb] 13/23: fix shutdown, (continued)
- [taler-taler-mdb] 13/23: fix shutdown, gnunet, 2019/12/04
- [taler-taler-mdb] 05/23: some little bugfixes, gnunet, 2019/12/04
- [taler-taler-mdb] 09/23: neg cond, gnunet, 2019/12/04
- [taler-taler-mdb] 08/23: neg cond, gnunet, 2019/12/04
- [taler-taler-mdb] 04/23: mdb communication working (test integration), gnunet, 2019/12/04
- [taler-taler-mdb] 10/23: parse filenames from config, gnunet, 2019/12/04
- [taler-taler-mdb] 01/23: Added mdb communication module, gnunet, 2019/12/04
- [taler-taler-mdb] 02/23: integration mdb first try, gnunet, 2019/12/04
- [taler-taler-mdb] 06/23: major mdb refactoring, gnunet, 2019/12/04
- [taler-taler-mdb] 23/23: add TODO, gnunet, 2019/12/04
- [taler-taler-mdb] 15/23: config,
gnunet <=
- [taler-taler-mdb] 21/23: fix NPE, gnunet, 2019/12/04
- [taler-taler-mdb] 22/23: logging, gnunet, 2019/12/04
- [taler-taler-mdb] 17/23: invert checks, gnunet, 2019/12/04
- [taler-taler-mdb] 19/23: fix end session handling, gnunet, 2019/12/04
- [taler-taler-mdb] 11/23: use more named constants, gnunet, 2019/12/04
- [taler-taler-mdb] 14/23: fix FTBFS, gnunet, 2019/12/04
- [taler-taler-mdb] 12/23: nicer logging, gnunet, 2019/12/04
- [taler-taler-mdb] 07/23: refactor, gnunet, 2019/12/04
- [taler-taler-mdb] 18/23: invert checks, gnunet, 2019/12/04
- [taler-taler-mdb] 20/23: add 'a' command, gnunet, 2019/12/04