From 94e167995537015f5100b526791cd51268aa0f2f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 May 2016 09:13:03 +0200 Subject: adding a few more uniqueness constraints to DB --- src/include/taler_exchangedb_plugin.h | 12 ++++++++++++ 1 file changed, 12 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 978c335d..d55bd8d1 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1488,6 +1488,18 @@ struct TALER_EXCHANGEDB_Plugin void *cb_cls); + /** + * Function called to perform "garbage collection" on the + * database, expiring records we no longer require. + * + * @param cls closure + * @return #GNUNET_OK on success, + * #GNUNET_NO if there was nothing to GC + * #GNUNET_SYSERR on DB errors + */ + int + (*gc) (void *cls); + }; -- cgit v1.2.3