summaryrefslogtreecommitdiff
path: root/src/mint/taler_mintdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-22 13:02:11 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-22 13:02:11 +0100
commit0d3ec509d7192e973123de1ab390826fff4df230 (patch)
tree30a5b91bc255c0f164a52bd17a9b42aa9ecee8c4 /src/mint/taler_mintdb_plugin.h
parent53876904c590aa9b1e7bd48395cb049f109adbd4 (diff)
downloadexchange-0d3ec509d7192e973123de1ab390826fff4df230.tar.gz
exchange-0d3ec509d7192e973123de1ab390826fff4df230.tar.bz2
exchange-0d3ec509d7192e973123de1ab390826fff4df230.zip
move free functions into plugin
Diffstat (limited to 'src/mint/taler_mintdb_plugin.h')
-rw-r--r--src/mint/taler_mintdb_plugin.h40
1 files changed, 37 insertions, 3 deletions
diff --git a/src/mint/taler_mintdb_plugin.h b/src/mint/taler_mintdb_plugin.h
index d330b817b..eabb00d9a 100644
--- a/src/mint/taler_mintdb_plugin.h
+++ b/src/mint/taler_mintdb_plugin.h
@@ -659,6 +659,17 @@ struct TALER_MINTDB_Plugin
/**
+ * Free memory associated with the given reserve history.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param rh history to free.
+ */
+ void
+ (*free_reserve_history) (void *cls,
+ struct ReserveHistory *rh);
+
+
+ /**
* Check if we have the specified deposit already in the database.
*
* @param cls the @e cls of this struct with the plugin-specific state
@@ -922,9 +933,20 @@ struct TALER_MINTDB_Plugin
* @return all known link data for the coin
*/
struct LinkDataList *
- (*get_link) (void *cls,
- struct TALER_MINTDB_Session *db_conn,
- const struct GNUNET_CRYPTO_EcdsaPublicKey *coin_pub);
+ (*get_link_data_list) (void *cls,
+ struct TALER_MINTDB_Session *db_conn,
+ const struct GNUNET_CRYPTO_EcdsaPublicKey *coin_pub);
+
+
+ /**
+ * Free memory of the link data list.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param ldl link data list to release
+ */
+ void
+ (*free_link_data_list) (void *cls,
+ struct LinkDataList *ldl);
/**
@@ -996,6 +1018,18 @@ struct TALER_MINTDB_Plugin
struct TALER_MINTDB_Session *db_conn,
const struct GNUNET_CRYPTO_EcdsaPublicKey *coin_pub);
+
+ /**
+ * Free linked list of transactions.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param list list to free
+ */
+ void
+ (*free_coin_transaction_list) (void *cls,
+ struct TALER_MINT_DB_TransactionList *list);
+
+
};