aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-08 13:31:28 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-08 13:31:28 +0200
commit8f854fb04c02f2e10ab41be3140bdf9aa05e0a83 (patch)
tree08802e0ea0dc5648b5ac7d668cae7286b393b33b /src/include/taler_exchangedb_plugin.h
parent20aad54c3e010020185c76d9e0727f3f497c2f73 (diff)
add 'get_latest_reserve_in_reference' to exchangedb API
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index e4277b462..01948a1c6 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -1205,6 +1205,23 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Obtain the most recent @a wire_reference that was inserted via @e reserves_in_insert.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param db the database connection handle
+ * @param[out] wire_reference set to unique reference identifying the wire transfer (binary blob)
+ * @param[out] wire_reference_size set to number of bytes in @a wire_reference
+ * @return #GNUNET_OK upon success; #GNUNET_NO if we never got any incoming transfers
+ * #GNUNET_SYSERR upon failures (DB error)
+ */
+ int
+ (*get_latest_reserve_in_reference)(void *cls,
+ struct TALER_EXCHANGEDB_Session *db,
+ void **wire_reference,
+ size_t *wire_reference_size);
+
+
+ /**
* Locate the response for a /withdraw request under the
* key of the hash of the blinded message.
*