summaryrefslogtreecommitdiff
path: root/src/core/wee-hashtable.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-10 19:44:29 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-10-10 19:44:29 +0200
commitb9d6c5c5a04b2fa06306e0b626b2318bcb797d21 (patch)
tree4bf1e67019b3ff9447a61968b1e1fa38506ec10b /src/core/wee-hashtable.h
parentcbcc89cb26c2a6e7dc647cbb7cf5c67b7596c981 (diff)
downloadweechat-b9d6c5c5a04b2fa06306e0b626b2318bcb797d21.zip
Add property "keys" for hashtable_get_string (return string with list of keys)
Diffstat (limited to 'src/core/wee-hashtable.h')
-rw-r--r--src/core/wee-hashtable.h7
1 files changed, 5 insertions, 2 deletions
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,