print active/inactive information
[oweals/gnunet.git] / src / include / gnunet_peerstore_plugin.h
index e9563b5089cd561fd8570334e2186b808bc1e943..8eea796bb7857f13e7957af34d147f3d68509fc3 100644 (file)
@@ -68,7 +68,8 @@ struct GNUNET_PEERSTORE_PluginFunctions
       const char *key,
       const void *value,
       size_t size,
-      struct GNUNET_TIME_Absolute expiry);
+      struct GNUNET_TIME_Absolute expiry,
+      enum GNUNET_PEERSTORE_StoreOption options);
 
   /**
    * Iterate over the records given an optional peer id
@@ -89,6 +90,17 @@ struct GNUNET_PEERSTORE_PluginFunctions
       const char *key,
       GNUNET_PEERSTORE_Processor iter, void *iter_cls);
 
+  /**
+   * Delete expired records (expiry < now)
+   *
+   * @param cls closure (internal context for the plugin)
+   * @param now time to use as reference
+   * @return number of records deleted
+   */
+  int
+  (*expire_records) (void *cls,
+      struct GNUNET_TIME_Absolute now);
+
 };