From 368178c777870459b6e1a0275b94f178bbbafb2d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Jul 2014 05:21:55 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/hash-table.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libmdsserver/hash-table.h') diff --git a/src/libmdsserver/hash-table.h b/src/libmdsserver/hash-table.h index 9a84db2..edf8d3a 100644 --- a/src/libmdsserver/hash-table.h +++ b/src/libmdsserver/hash-table.h @@ -183,6 +183,15 @@ int hash_table_contains_key(const hash_table_t* restrict this, size_t key) __att */ size_t hash_table_get(const hash_table_t* restrict this, size_t key); +/** + * Look up an entry in the table + * + * @param this The hash table + * @param key The key associated with the value + * @return The entry associated with the key, `NULL` if the key was not used + */ +hash_entry_t* hash_table_get_entry(const hash_table_t* restrict this, size_t key); + /** * Add an entry to the table * -- cgit v1.2.3-70-g09d2