summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-16 15:43:40 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-16 15:43:40 +0200
commit02716c4084c76630f35a5fcc4d2ef4e17d7e1b00 (patch)
tree3cdb2b705adb891dbda37bf44b0e08443bbea5fb /src/include
parentd803d86bf9c69947f6b6e37caf8800abbd24135f (diff)
downloadexchange-02716c4084c76630f35a5fcc4d2ef4e17d7e1b00.tar.gz
exchange-02716c4084c76630f35a5fcc4d2ef4e17d7e1b00.tar.bz2
exchange-02716c4084c76630f35a5fcc4d2ef4e17d7e1b00.zip
-add skeleton logic for purse expiration
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h15
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