From 8f854fb04c02f2e10ab41be3140bdf9aa05e0a83 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 8 May 2017 13:31:28 +0200 Subject: add 'get_latest_reserve_in_reference' to exchangedb API --- src/include/taler_exchangedb_plugin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index e4277b46..01948a1c 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1204,6 +1204,23 @@ struct TALER_EXCHANGEDB_Plugin size_t wire_reference_size); + /** + * 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. -- cgit v1.2.3