From 218f6e2cd9279e079ee3c19e90109d6f20cf343d Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sun, 15 Jun 2014 08:31:41 +0000 Subject: Added coucal_fetch_value() --- src/coucal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/coucal.h') diff --git a/src/coucal.h b/src/coucal.h index 2012db5..92f4541 100644 --- a/src/coucal.h +++ b/src/coucal.h @@ -422,6 +422,15 @@ COUCAL_EXTERN int coucal_inc(coucal hashtable, coucal_key_const name); **/ COUCAL_EXTERN int coucal_dec(coucal hashtable, coucal_key_const name); +/** + * Fetch an entry value from the hashtable. + * Returns NULL if the entry could not be found. + * The returned pointer is only valid until next call to this library, and can + * be used for read or write operations. + **/ +COUCAL_EXTERN coucal_value* coucal_fetch_value(coucal hashtable, + coucal_key_const name); + /** * Fetch an entry value from the hashtable, given a name, and its hashes. * Returns NULL if the entry could not be found. -- cgit v1.2.3