diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-06 19:12:28 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-15 17:21:49 +0100 |
commit | d2128c263ea77e4f99bccc6ac46964ad419ec2d1 (patch) | |
tree | 15cb1d23477b6e6df689e9c60c5ec8abcfd0a638 /common/dict.h | |
parent | 86e60637394340ef2fa3b3db6b451dac1d73052b (diff) |
dict: Allow removal of current item in a p11_dict iteration
* This was already possible to do safely before
* Document and test this behavior
https://bugs.freedesktop.org/show_bug.cgi?id=61499
Diffstat (limited to 'common/dict.h')
-rw-r--r-- | common/dict.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/dict.h b/common/dict.h index e13c5d6..080f6b8 100644 --- a/common/dict.h +++ b/common/dict.h @@ -141,6 +141,8 @@ void p11_dict_iterate (p11_dict *dict, * p11_dict_next: Enumerate through hash table * - sets key and value to key and/or value * - returns whether there was another entry + * - p11_dict_remove or p11_dict_steal is safe to use on + * the current key. */ bool p11_dict_next (p11_dictiter *iter, void **key, |