summaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/fuzzy_backend.h')
-rw-r--r--src/libserver/fuzzy_backend.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_backend.h b/src/libserver/fuzzy_backend.h
index 5fceaba12..adb7e5075 100644
--- a/src/libserver/fuzzy_backend.h
+++ b/src/libserver/fuzzy_backend.h
@@ -81,4 +81,24 @@ void rspamd_fuzzy_backend_version (struct rspamd_fuzzy_backend *bk,
const gchar *src,
rspamd_fuzzy_version_cb cb, void *ud);
+/**
+ * Returns unique id for backend
+ * @param backend
+ * @return
+ */
+const gchar * rspamd_fuzzy_backend_id (struct rspamd_fuzzy_backend *backend);
+
+/**
+ * Starts expire process for the backend
+ * @param backend
+ */
+void rspamd_fuzzy_backend_start_expire (struct rspamd_fuzzy_backend *backend,
+ gdouble timeout);
+
+/**
+ * Closes backend
+ * @param backend
+ */
+void rspamd_fuzzy_backend_close (struct rspamd_fuzzy_backend *backend);
+
#endif /* SRC_LIBSERVER_FUZZY_BACKEND_H_ */