diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-19 12:07:15 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-19 12:07:15 +0000 |
commit | aa0f830c863cb8ddb4187f49134d9fbe2de70045 (patch) | |
tree | 569209cd96e18b7c508afea1c1f2f3fa9aa579eb /src/include/gnunet_peerstore_plugin.h | |
parent | 7528bcf5a5af0d90c06aeab964e5c6471900ae06 (diff) | |
download | gnunet-aa0f830c863cb8ddb4187f49134d9fbe2de70045.tar.gz gnunet-aa0f830c863cb8ddb4187f49134d9fbe2de70045.zip |
peerstore: record expiry
Diffstat (limited to 'src/include/gnunet_peerstore_plugin.h')
-rw-r--r-- | src/include/gnunet_peerstore_plugin.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_peerstore_plugin.h b/src/include/gnunet_peerstore_plugin.h index e9563b508..18b3f690d 100644 --- a/src/include/gnunet_peerstore_plugin.h +++ b/src/include/gnunet_peerstore_plugin.h | |||
@@ -89,6 +89,17 @@ struct GNUNET_PEERSTORE_PluginFunctions | |||
89 | const char *key, | 89 | const char *key, |
90 | GNUNET_PEERSTORE_Processor iter, void *iter_cls); | 90 | GNUNET_PEERSTORE_Processor iter, void *iter_cls); |
91 | 91 | ||
92 | /** | ||
93 | * Delete expired records (expiry < now) | ||
94 | * | ||
95 | * @param cls closure (internal context for the plugin) | ||
96 | * @param now time to use as reference | ||
97 | * @return number of records deleted | ||
98 | */ | ||
99 | int | ||
100 | (*expire_records) (void *cls, | ||
101 | struct GNUNET_TIME_Absolute now); | ||
102 | |||
92 | }; | 103 | }; |
93 | 104 | ||
94 | 105 | ||