aboutsummaryrefslogtreecommitdiff
path: root/src/mintdb/perf_taler_mintdb_init.h
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-09 10:46:33 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-09 10:46:33 +0200
commit03452e65804c4f5903ee3d1b0bf6b91442647bd7 (patch)
tree008316d237eec427b9848728e7d05e827f2dff52 /src/mintdb/perf_taler_mintdb_init.h
parent155d13e417a394e2d16a01578d59e26de4f1ab1d (diff)
Added new init function
Diffstat (limited to 'src/mintdb/perf_taler_mintdb_init.h')
-rw-r--r--src/mintdb/perf_taler_mintdb_init.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/mintdb/perf_taler_mintdb_init.h b/src/mintdb/perf_taler_mintdb_init.h
index 8c49d1a96..75bb9250c 100644
--- a/src/mintdb/perf_taler_mintdb_init.h
+++ b/src/mintdb/perf_taler_mintdb_init.h
@@ -138,6 +138,38 @@ PERF_TALER_MINTDB_collectable_blindcoin_free (
/**
+ * Create a melt operation
+ *
+ * @param session the refresh session
+ * @param dki the denomination the melted coin uses
+ * @return a pointer to a #TALER_MINTDB_RefreshMelt
+ */
+struct TALER_MINTDB_RefreshMelt *
+PERF_TALER_MINTDB_refresh_melt_init (struct GNUNET_HashCode *session,
+ struct TALER_MINTDB_DenominationKeyIssueInformation *dki);
+
+
+/**
+ * Copies the internals of a #TALER_MINTDB_RefreshMelt
+ *
+ * @param melt the refresh melt to copy
+ * @return an copy of @ melt
+ */
+struct TALER_MINTDB_RefreshMelt *
+PERF_TALER_MINTDB_refresh_melt_copy (const struct TALER_MINTDB_RefreshMelt *melt);
+
+
+/**
+ * Free the internal memory of a #TALER_MINTDB_RefreshMelt
+ *
+ * @param melt the #TALER_MINTDB_RefreshMelt to free
+ * @return #GNUNET_OK if the operation was successful, #GNUNET_SYSERROR
+ */
+int
+PERF_TALER_MINTDB_refresh_melt_free (struct TALER_MINTDB_RefreshMelt *melt)
+
+
+/**
* Generate a random CoinPublicInfo
*/
struct TALER_CoinPublicInfo *
@@ -158,6 +190,14 @@ 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