aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-23 10:36:39 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-23 10:36:39 +0200
commitb3844e4923df39b41b8a8d46df173b1432c92364 (patch)
treed3bfa4a3019321d53828817994709c3ac4f1a4f5 /src/include/taler_testing_lib.h
parentfcaf508647f86af4409aaec25a138e45fcb90be3 (diff)
downloadexchange-b3844e4923df39b41b8a8d46df173b1432c92364.tar.xz
-deduplicate and expand reserve history validation logic in testing library
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index b0dee023f..ff3936cfe 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -956,6 +956,20 @@ TALER_TESTING_parse_coin_reference (
unsigned int *idx);
+/**
+ * Compare @a h1 and @a h2.
+ *
+ * @param h1 a history entry
+ * @param h2 a history entry
+ * @return 0 if @a h1 and @a h2 are equal
+ */
+int
+TALER_TESTING_history_entry_cmp (const struct
+ TALER_EXCHANGE_ReserveHistoryEntry *h1,
+ const struct
+ TALER_EXCHANGE_ReserveHistoryEntry *h2);
+
+
/* ************** Specific interpreter commands ************ */