From b9d6c5c5a04b2fa06306e0b626b2318bcb797d21 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 10 Oct 2010 19:44:29 +0200 Subject: Add property "keys" for hashtable_get_string (return string with list of keys) --- src/core/wee-hashtable.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/wee-hashtable.h') diff --git a/src/core/wee-hashtable.h b/src/core/wee-hashtable.h index ab901528b..a8fe253cf 100644 --- a/src/core/wee-hashtable.h +++ b/src/core/wee-hashtable.h @@ -91,12 +91,15 @@ struct t_hashtable int items_count; /* number of items in hashtable */ /* type for keys and values */ - enum t_hashtable_type type_keys; /* type for keys: int/str/pointer */ - enum t_hashtable_type type_values; /* type for values: int/str/pointer */ + enum t_hashtable_type type_keys; /* type for keys: int/str/pointer */ + enum t_hashtable_type type_values; /* type for values: int/str/pointer */ /* callbacks */ t_hashtable_hash_key *callback_hash_key; /* hash key to integer value */ t_hashtable_keycmp *callback_keycmp; /* compare two keys */ + + /* keys */ + char *keys; /* keys list (NULL if never asked) */ }; extern struct t_hashtable *hashtable_new (int size, -- cgit v1.2.3