diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-10 19:44:29 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-10 19:44:29 +0200 |
commit | b9d6c5c5a04b2fa06306e0b626b2318bcb797d21 (patch) | |
tree | 4bf1e67019b3ff9447a61968b1e1fa38506ec10b /src/core/wee-hashtable.h | |
parent | cbcc89cb26c2a6e7dc647cbb7cf5c67b7596c981 (diff) | |
download | weechat-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.h | 7 |
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, |