aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/hash.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-14 15:38:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-14 15:38:46 +0000
commit3c9e040a7c97120ddf38c7c7629a267e576bf514 (patch)
tree69611e33ce6887f9507d80a262537ef2ea6ce17b /src/libutil/hash.h
parent830eff6a124fbcfc7d9cedd781b2ae261388503b (diff)
downloadrspamd-3c9e040a7c97120ddf38c7c7629a267e576bf514.tar.gz
rspamd-3c9e040a7c97120ddf38c7c7629a267e576bf514.zip
Add methods to extract internal fields from LRU hash
Diffstat (limited to 'src/libutil/hash.h')
-rw-r--r--src/libutil/hash.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libutil/hash.h b/src/libutil/hash.h
index 022548f3c..bb55f2595 100644
--- a/src/libutil/hash.h
+++ b/src/libutil/hash.h
@@ -71,6 +71,17 @@ void rspamd_lru_hash_insert (rspamd_lru_hash_t *hash,
void rspamd_lru_hash_destroy (rspamd_lru_hash_t *hash);
+/**
+ * Get hash table for this lru hash
+ */
+GHashTable *rspamd_lru_hash_get_htable (rspamd_lru_hash_t *hash);
+
+
+/**
+ * Get expire queue for this lru hash
+ */
+GQueue *rspamd_lru_hash_get_queue (rspamd_lru_hash_t *hash);
+
#endif
/*