From b3844e4923df39b41b8a8d46df173b1432c92364 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 May 2022 10:36:39 +0200 Subject: -deduplicate and expand reserve history validation logic in testing library --- src/include/taler_testing_lib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index b0dee023..ff3936cf 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 ************ */ -- cgit v1.2.3