diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-10 13:43:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-10 13:44:07 +0100 |
commit | db6676684a4a8f961e8ada8f627d4b178e0e1669 (patch) | |
tree | aba2f1662165e232b661fbaf3d86090b915527e8 /src/libutil/heap.h | |
parent | ef763f948579fa1b3d227df571688896c2a900e3 (diff) | |
download | rspamd-db6676684a4a8f961e8ada8f627d4b178e0e1669.tar.gz rspamd-db6676684a4a8f961e8ada8f627d4b178e0e1669.zip |
[Minor] Add rspamd_min_heap_index helper method
Diffstat (limited to 'src/libutil/heap.h')
-rw-r--r-- | src/libutil/heap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/heap.h b/src/libutil/heap.h index 20e9209ce..7d6ef4fff 100644 --- a/src/libutil/heap.h +++ b/src/libutil/heap.h @@ -77,4 +77,13 @@ void rspamd_min_heap_remove_elt (struct rspamd_min_heap *heap, */ void rspamd_min_heap_destroy (struct rspamd_min_heap *heap); +/** + * Returns element from the heap with the specified index + * @param heap + * @param idx + * @return + */ +struct rspamd_min_heap_elt* rspamd_min_heap_index (struct rspamd_min_heap *heap, + guint idx); + #endif /* SRC_LIBUTIL_HEAP_H_ */ |