aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_interpreter.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-07 21:11:56 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-07 21:11:56 +0200
commit18a020dd0241fbb7deead15b96d5f5fed9f1b9b5 (patch)
treef3a1173c4df79750330148f466e53134e08b9d79 /src/bank-lib/test_bank_interpreter.h
parent56786aea5a4dbdc80f257539e801176fc0697a3b (diff)
implement fakebank support (incl. tests) for #5005/#4964/4959
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.h')
-rw-r--r--src/bank-lib/test_bank_interpreter.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h
index 06b4e2d7f..d4e9c1a6c 100644
--- a/src/bank-lib/test_bank_interpreter.h
+++ b/src/bank-lib/test_bank_interpreter.h
@@ -125,6 +125,11 @@ struct TBI_Command
*/
struct TALER_BANK_AdminAddIncomingHandle *aih;
+ /**
+ * The serial ID for this record, as returned by the bank.
+ */
+ uint64_t serial_id;
+
} admin_add_incoming;
struct {
@@ -140,10 +145,10 @@ struct TBI_Command
enum TALER_BANK_Direction direction;
/**
- * At which offset do we start?
- * Use UINT64_MAX or 0 for the extremes.
+ * At which serial ID do we start? References the respective @e
+ * admin_add_incoming command. Use NULL for the extremes.
*/
- uint64_t start_row;
+ const char *start_row_ref;
/**
* How many results should be returned (if available)?
@@ -155,6 +160,16 @@ struct TBI_Command
*/
struct TALER_BANK_HistoryHandle *hh;
+ /**
+ * How many results did we actually get?
+ */
+ uint64_t results_obtained;
+
+ /**
+ * Set to #GNUNET_YES if we encountered a problem.
+ */
+ int failed;
+
} history;
/**