From 1ee69f6f1d93349a3e576a86c1d93d23ccec28ce Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 13 Oct 2022 22:43:22 +0200 Subject: -towards returning reserve open deposits in coin history --- src/exchangedb/plugin_exchangedb_common.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'src/exchangedb/plugin_exchangedb_common.c') diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c index ca590350..10263adf 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -19,16 +19,14 @@ * included in each plugin. * @author Christian Grothoff */ +#include "platform.h" +#include "plugin_exchangedb_common.h" -/** - * Free memory associated with the given reserve history. - * - * @param cls the @e cls of this struct with the plugin-specific state (unused) - * @param rh history to free. - */ -static void -common_free_reserve_history (void *cls, - struct TALER_EXCHANGEDB_ReserveHistory *rh) + +void +TEH_COMMON_free_reserve_history ( + void *cls, + struct TALER_EXCHANGEDB_ReserveHistory *rh) { (void) cls; while (NULL != rh) @@ -99,15 +97,10 @@ common_free_reserve_history (void *cls, } -/** - * Free linked list of transactions. - * - * @param cls the @e cls of this struct with the plugin-specific state (unused) - * @param tl list to free - */ -static void -common_free_coin_transaction_list (void *cls, - struct TALER_EXCHANGEDB_TransactionList *tl) +void +TEH_COMMON_free_coin_transaction_list ( + void *cls, + struct TALER_EXCHANGEDB_TransactionList *tl) { (void) cls; while (NULL != tl) -- cgit v1.2.3