diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-16 15:43:40 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-16 15:43:40 +0200 |
commit | 02716c4084c76630f35a5fcc4d2ef4e17d7e1b00 (patch) | |
tree | 3cdb2b705adb891dbda37bf44b0e08443bbea5fb /src/include/taler_exchangedb_plugin.h | |
parent | d803d86bf9c69947f6b6e37caf8800abbd24135f (diff) |
-add skeleton logic for purse expiration
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 52e684f62..213fe114d 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4604,6 +4604,21 @@ struct TALER_EXCHANGEDB_Plugin /** + * 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. * * @param cls the @e cls of this struct with the plugin-specific state |