aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-28 11:34:09 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-28 11:34:09 +0200
commit5081c7df1e9dfa8fe9a0fee18c8c2c8ce4fddacf (patch)
tree5227c81c3683e1d68460a9c6d848372f964cf6d7 /src/include
parentde953fa7bcdcfa78606753285911a6a49120327f (diff)
parent6cc0b4bad8471f29674f1a9ee6ed8e8b3fd0dec7 (diff)
downloadexchange-5081c7df1e9dfa8fe9a0fee18c8c2c8ce4fddacf.tar.xz
Merge branch 'master' of git+ssh://taler.net/var/git/mint
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_mintdb_plugin.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h
index 6cc8fd76c..63dacf73b 100644
--- a/src/include/taler_mintdb_plugin.h
+++ b/src/include/taler_mintdb_plugin.h
@@ -332,7 +332,7 @@ struct TALER_MINTDB_RefreshMelt
*/
struct TALER_Amount amount_with_fee;
- /**
+ /** FIXME: This can be retrieved from the Denomination? Do we need this?
* Melting fee charged by the mint. This must match the Mint's
* denomination key's melting fee. If the client puts in an invalid
* melting fee (too high or too low) that does not match the Mint's
@@ -843,6 +843,39 @@ struct TALER_MINTDB_Plugin
/**
+ * Retrieve the record for a known coin.
+ *
+ * @param cls the plugin closure
+ * @param session the database session handle
+ * @param coin_pub the public key of the coin to search for
+ * @param coin_info place holder for the returned coin information object
+ * @return #GNUNET_SYSERR upon error; #GNUNET_NO if no coin is found; #GNUNET_OK
+ * if upon succesfullying retrieving the record data info @a
+ * ret_coin_info
+ */
+ int
+ (*get_known_coin) (void *cls,
+ struct TALER_MINTDB_Session *session,
+ const struct TALER_CoinSpendPublicKeyP *coin_pub,
+ struct TALER_CoinPublicInfo *coin_info);
+
+
+ /**
+ * Insert a coin we know of into the DB. The coin can then be referenced by
+ * tables for deposits, lock and refresh functionality.
+ *
+ * @param cls plugin closure
+ * @param session the shared database session
+ * @param coin_info the public coin info
+ * @return #GNUNET_SYSERR upon error; #GNUNET_OK upon success
+ */
+ int
+ (*insert_known_coin) (void *cls,
+ struct TALER_MINTDB_Session *session,
+ const struct TALER_CoinPublicInfo *coin_info);
+
+
+ /**
* Store the given /refresh/melt request in the database.
*
* @param cls the @e cls of this struct with the plugin-specific state