diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-13 15:58:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-13 15:58:01 +0100 |
commit | 25b777b360662a391454f64346589dbec792831f (patch) | |
tree | 2179566b59a65ae27500c2e4e9dcae7149d60486 /src/libserver/fuzzy_backend.h | |
parent | bbbb8d029cf889fd1c770341094417d834cab9e0 (diff) | |
download | rspamd-25b777b360662a391454f64346589dbec792831f.tar.gz rspamd-25b777b360662a391454f64346589dbec792831f.zip |
[Feature] Add versions to fuzzy storage
Diffstat (limited to 'src/libserver/fuzzy_backend.h')
-rw-r--r-- | src/libserver/fuzzy_backend.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/fuzzy_backend.h b/src/libserver/fuzzy_backend.h index 04da9bbba..bcd199d1a 100644 --- a/src/libserver/fuzzy_backend.h +++ b/src/libserver/fuzzy_backend.h @@ -56,7 +56,8 @@ gboolean rspamd_fuzzy_backend_prepare_update (struct rspamd_fuzzy_backend *backe */ gboolean rspamd_fuzzy_backend_add ( struct rspamd_fuzzy_backend *backend, - const struct rspamd_fuzzy_cmd *cmd); + const struct rspamd_fuzzy_cmd *cmd, + time_t timestamp); /** * Delete digest from the database @@ -89,6 +90,7 @@ gboolean rspamd_fuzzy_backend_sync (struct rspamd_fuzzy_backend *backend, void rspamd_fuzzy_backend_close (struct rspamd_fuzzy_backend *backend); gsize rspamd_fuzzy_backend_count (struct rspamd_fuzzy_backend *backend); +gint rspamd_fuzzy_backend_version (struct rspamd_fuzzy_backend *backend); gsize rspamd_fuzzy_backend_expired (struct rspamd_fuzzy_backend *backend); const gchar * rspamd_fuzzy_backend_id (struct rspamd_fuzzy_backend *backend); |