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
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);
+
};