summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-08 19:36:08 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-08 19:36:08 +0200
commitc3cd21508b0900ee5437edb3828b4b7c2f359495 (patch)
tree04058188f8a2772e3ebdcdc7564de57322a019f5 /src/include
parentc93f64710674bb4f635288c5e326f2cf47b8e8c7 (diff)
downloadexchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.gz
exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.bz2
exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.zip
synchronize with latest GANA
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index a12aaa426..8b4e63cd7 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -1841,7 +1841,33 @@ struct TALER_EXCHANGEDB_Plugin
* @param coin the coin that must be made known
* @return database transaction status, non-negative on success
*/
- enum GNUNET_DB_QueryStatus
+ enum TALER_EXCHANGEDB_CoinKnownStatus
+ {
+ /**
+ * The coin was successfully added.
+ */
+ TALER_EXCHANGEDB_CKS_ADDED = 1,
+
+ /**
+ * The coin was already present.
+ */
+ TALER_EXCHANGEDB_CKS_PRESENT = 0,
+
+ /**
+ * Serialization failure.
+ */
+ TALER_EXCHANGEDB_CKS_SOFT_FAIL = -1,
+
+ /**
+ * Hard database failure.
+ */
+ TALER_EXCHANGEDB_CKS_HARD_FAIL = -2,
+
+ /**
+ * Conflicting coin (different denomination key) already in database.
+ */
+ TALER_EXCHANGEDB_CKS_CONFLICT = -3,
+ }
(*ensure_coin_known)(void *cls,
struct TALER_EXCHANGEDB_Session *session,
const struct TALER_CoinPublicInfo *coin);