summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-26 20:43:08 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-26 20:43:08 +0200
commit9a5030b993d74732f8fba2879cfca03ec070ad9a (patch)
tree7e47603cacc59d6c339484acdffb9aa0726da7f9 /src/include/taler_exchangedb_plugin.h
parent35fe98a1657086af959e4512bb79b04e81ed3fc1 (diff)
downloadexchange-9a5030b993d74732f8fba2879cfca03ec070ad9a.tar.gz
exchange-9a5030b993d74732f8fba2879cfca03ec070ad9a.tar.bz2
exchange-9a5030b993d74732f8fba2879cfca03ec070ad9a.zip
add test for json_wire.c logic
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 67ebc62fc..49aac827f 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -1463,6 +1463,20 @@ struct TALER_EXCHANGEDB_Plugin
struct TALER_EXCHANGEDB_Session *session,
const struct TALER_CoinPublicInfo *coin);
+
+ /**
+ * Retrieve information about the given @a coin from the database.
+ *
+ * @param cls database connection plugin state
+ * @param session database session
+ * @param coin the coin that must be made known
+ * @return database transaction status, non-negative on success
+ */
+ enum GNUNET_DB_QueryStatus
+ (*get_known_coin) (void *cls,
+ struct TALER_EXCHANGEDB_Session *session,
+ const struct TALER_CoinSpendPublicKeyP *coin_pub,
+ struct TALER_CoinPublicInfo *coin_info);
/**
* Check if we have the specified deposit already in the database.