From 499247a4805583dc67b9d6fef850ae86b4be1e32 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Nov 2017 23:42:17 +0100 Subject: fixing #5178 --- src/exchangedb/perf_taler_exchangedb_init.h | 60 +++-------------------------- 1 file changed, 6 insertions(+), 54 deletions(-) (limited to 'src/exchangedb/perf_taler_exchangedb_init.h') diff --git a/src/exchangedb/perf_taler_exchangedb_init.h b/src/exchangedb/perf_taler_exchangedb_init.h index 11b2f166..a1f2559e 100644 --- a/src/exchangedb/perf_taler_exchangedb_init.h +++ b/src/exchangedb/perf_taler_exchangedb_init.h @@ -44,7 +44,7 @@ struct PERF_TALER_EXCHANGEDB_Reserve /** - * All informations about a coin + * All informations about a coin */ struct PERF_TALER_EXCHANGEDB_Coin { @@ -168,43 +168,21 @@ int PERF_TALER_EXCHANGEDB_coin_free (struct PERF_TALER_EXCHANGEDB_Coin *coin); -/** - * @return a randomly generated refresh session - */ -struct TALER_EXCHANGEDB_RefreshSession * -PERF_TALER_EXCHANGEDB_refresh_session_init (void); - - -/** - * @return #GNUNET_OK if the copy was successful, #GNUNET_SYSERR if it wasn't - */ -int -PERF_TALER_EXCHANGEDB_refresh_session_copy (struct TALER_EXCHANGEDB_RefreshSession *session, - struct TALER_EXCHANGEDB_RefreshSession *copy); - - -/** - * Frees memory of a refresh_session - */ -int -PERF_TALER_EXCHANGEDB_refresh_session_free (struct TALER_EXCHANGEDB_RefreshSession *refresh_session); - - /** * Create a melt operation * - * @param session the refresh session + * @param rc the commitment of the refresh session * @param dki the denomination the melted coin uses - * @return a pointer to a #TALER_EXCHANGEDB_RefreshMelt + * @return a pointer to a #TALER_EXCHANGEDB_RefreshMelt */ struct TALER_EXCHANGEDB_RefreshMelt * -PERF_TALER_EXCHANGEDB_refresh_melt_init (struct GNUNET_HashCode *session, - struct PERF_TALER_EXCHANGEDB_Coin *coin); +PERF_TALER_EXCHANGEDB_refresh_melt_init (struct TALER_RefreshCommitmentP *rc, + struct PERF_TALER_EXCHANGEDB_Coin *coin); /** * Copies the internals of a #TALER_EXCHANGEDB_RefreshMelt - * + * * @param melt the refresh melt to copy * @return an copy of @ melt */ @@ -221,30 +199,4 @@ PERF_TALER_EXCHANGEDB_refresh_melt_copy (const struct TALER_EXCHANGEDB_RefreshMe int PERF_TALER_EXCHANGEDB_refresh_melt_free (struct TALER_EXCHANGEDB_RefreshMelt *melt); - -/** - * Create a #TALER_EXCHANGEDB_RefreshCommitCoin - */ -struct TALER_EXCHANGEDB_RefreshCommitCoin * -PERF_TALER_EXCHANGEDB_refresh_commit_coin_init (void); - - -/** - * Copies a #TALER_EXCHANGEDB_RefreshCommitCoin - * - * @param commit_coin the commit to copy - * @return a copy of @a commit_coin - */ -struct TALER_EXCHANGEDB_RefreshCommitCoin * -PERF_TALER_EXCHANGEDB_refresh_commit_coin_copy (struct TALER_EXCHANGEDB_RefreshCommitCoin *commit_coin); - - -/** - * Free a #TALER_EXCHANGEDB_RefreshCommitCoin - * - * @param commit_coin the coin to free - */ -void -PERF_TALER_EXCHANGEDB_refresh_commit_coin_free (struct TALER_EXCHANGEDB_RefreshCommitCoin *commit_coin); - #endif -- cgit v1.2.3