diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-24 17:04:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-24 17:04:03 +0400 |
commit | 9c090cecfe21ef357031373b0711a2bc57ee5176 (patch) | |
tree | ba96bd247c70126fda84a5c6ee376c9f7e0b7d7a /source/blender/blenlib/BLI_ghash.h | |
parent | b187c1be4b07dd6c70c112f8b5496ff0773c0cb9 (diff) |
ghash and edgehash api, allow newly defined hashes to take in the size of the hash as an arg (avoids resizing in simple cases when the hash is created and filled immediately).
Diffstat (limited to 'source/blender/blenlib/BLI_ghash.h')
-rw-r--r-- | source/blender/blenlib/BLI_ghash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index 4688c6e3831..5f748fcaecd 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -58,6 +58,8 @@ enum { /* *** */ +GHash *BLI_ghash_new_ex(GHashHashFP hashfp, GHashCmpFP cmpfp, const char *info, + const unsigned int nentries_reserve); GHash *BLI_ghash_new(GHashHashFP hashfp, GHashCmpFP cmpfp, const char *info); void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp); void BLI_ghash_insert(GHash *gh, void *key, void *val); |