diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-02 06:58:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-02 06:58:53 +0400 |
commit | d59b4752e432aa1188fe9082a99d3aa6f6d59ab1 (patch) | |
tree | 9ab4bc85f012d41d4addf4289f2da9b4ba4260a6 /source/blender/blenlib/intern/edgehash.c | |
parent | 26cbf331a858db0ac49e2de8b60ae7710a8c7c66 (diff) |
add hash iterator functions to access the pointer to the value.
Diffstat (limited to 'source/blender/blenlib/intern/edgehash.c')
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index 967b59cf25d..b26e007b3e6 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -484,6 +484,14 @@ void *BLI_edgehashIterator_getValue(EdgeHashIterator *ehi) } /** + * Retrieve the pointer to the value from an iterator. + */ +void **BLI_edgehashIterator_getValue_p(EdgeHashIterator *ehi) +{ + return ehi->curEntry ? &ehi->curEntry->val : NULL; +} + +/** * Set the value for an iterator. */ void BLI_edgehashIterator_setValue(EdgeHashIterator *ehi, void *val) |