From 0a1491562c846ce5b2a6b5861f3d3dc8a08972a5 Mon Sep 17 00:00:00 2001 From: Fournier Nicolas Date: Mon, 17 Aug 2015 10:56:56 +0200 Subject: preliminary work on more benchmarks --- src/mintdb/perf_taler_mintdb_init.h | 48 ++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 11 deletions(-) (limited to 'src/mintdb/perf_taler_mintdb_init.h') diff --git a/src/mintdb/perf_taler_mintdb_init.h b/src/mintdb/perf_taler_mintdb_init.h index 75ba2a82..063259f5 100644 --- a/src/mintdb/perf_taler_mintdb_init.h +++ b/src/mintdb/perf_taler_mintdb_init.h @@ -174,6 +174,29 @@ PERF_TALER_MINTDB_coin_free ( struct PERF_TALER_MINTDB_Coin *coin); +/** + * @return a randomly generated refresh session + */ +struct TALER_MINTDB_RefreshSession * +PERF_TALER_MINTDB_refresh_session_init (void); + + +/** + * @return #GNUNET_OK if the copy was successful, #GNUNET_SYSERR if it wasn't + */ +int +PERF_TALER_MINTDB_refresh_session_copy (struct TALER_MINTDB_RefreshSession *session, + struct TALER_MINTDB_RefreshSession *copy); + + +/** + * Frees memory of a refresh_session + */ +int +PERF_TALER_MINTDB_refresh_session_free ( + struct TALER_MINTDB_RefreshSession *refresh_session); + + /** * Create a melt operation * @@ -207,25 +230,28 @@ PERF_TALER_MINTDB_refresh_melt_free (struct TALER_MINTDB_RefreshMelt *melt); /** - * @return a randomly generated refresh session + * Create a #TALER_MINTDB_RefreshCommitCoin */ -struct TALER_MINTDB_RefreshSession * -PERF_TALER_MINTDB_refresh_session_init (void); +struct TALER_MINTDB_RefreshCommitCoin * +PERF_TALER_MINTDB_refresh_commit_coin_init (void); /** - * @return #GNUNET_OK if the copy was successful, #GNUNET_SYSERR if it wasn't + * Copies a #TALER_MINTDB_RefreshCommitCoin + * + * @param commit_coin the commit to copy + * @return a copy of @a commit_coin */ -int -PERF_TALER_MINTDB_refresh_session_copy (struct TALER_MINTDB_RefreshSession *session, - struct TALER_MINTDB_RefreshSession *copy); +struct TALER_MINTDB_RefreshCommitCoin * +PERF_TALER_MINTDB_refresh_commit_coin_copy (struct TALER_MINTDB_RefreshCommitCoin *commit_coin); /** - * Frees memory of a refresh_session + * Free a #TALER_MINTDB_RefreshCommitCoin + * + * @param commit_coin the coin to free */ -int -PERF_TALER_MINTDB_refresh_session_free ( - struct TALER_MINTDB_RefreshSession *refresh_session); +void +PERF_TALER_MINTDB_refresh_commit_coin_free (struct TALER_MINTDB_RefreshCommitCoin *commit_coin); #endif -- cgit v1.2.3