From 02716c4084c76630f35a5fcc4d2ef4e17d7e1b00 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 May 2022 15:43:40 +0200 Subject: -add skeleton logic for purse expiration --- src/include/taler_exchangedb_plugin.h | 15 +++++++++++++++ 1 file changed, 15 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 52e684f6..213fe114 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4603,6 +4603,21 @@ struct TALER_EXCHANGEDB_Plugin bool *in_conflict); + /** + * Function called to clean up one expired purse. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param start_time select purse expired after this time + * @param end_time select purse expired before this time + * @return transaction status code (#GNUNET_DB_STATUS_SUCCESS_NO_RESULTS if no purse expired in the given time interval). + */ + enum GNUNET_DB_QueryStatus + (*expire_purse)( + void *cls, + struct GNUNET_TIME_Absolute start_time, + struct GNUNET_TIME_Absolute end_time); + + /** * Function called to obtain information about a purse. * -- cgit v1.2.3