Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-17 03:56:18 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-17 03:56:18 +0400
commit4d6c34462c1473afb6a0896f97bc5cd2393d0171 (patch)
tree2d889285b713fbb05b64e64981d4e982cb85b658 /source/blender/blenlib/BLI_ghash.h
parent6f24642a2d5ff7754cf15c3cf21a89e2db54555d (diff)
Fix #29640: make duplicates release keep hierarchy and parent properties not
working for multiple objects. ID.newid only worked for one object, now it uses a hash instead.
Diffstat (limited to 'source/blender/blenlib/BLI_ghash.h')
-rw-r--r--source/blender/blenlib/BLI_ghash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h
index 976519c281a..5b9db7113cb 100644
--- a/source/blender/blenlib/BLI_ghash.h
+++ b/source/blender/blenlib/BLI_ghash.h
@@ -142,6 +142,16 @@ int BLI_ghashutil_strcmp (const void *a, const void *b);
unsigned int BLI_ghashutil_inthash (const void *ptr);
int BLI_ghashutil_intcmp (const void *a, const void *b);
+typedef struct GHashPair {
+ const void *first;
+ int second;
+} GHashPair;
+
+GHashPair* BLI_ghashutil_pairalloc (const void *first, int second);
+unsigned int BLI_ghashutil_pairhash (const void *ptr);
+int BLI_ghashutil_paircmp (const void *a, const void *b);
+void BLI_ghashutil_pairfree (const void *ptr);
+
#ifdef __cplusplus
}
#endif