add BLI_ghash_pop() which returns the value for a key and removes it at the same...
[blender.git] / source / blender / blenlib / BLI_ghash.h
index 9034e8e51d982b0ee0bcd97da146c70d0d8287c4..c26e6cd15b329030084fc8c86c3420661d948e1a 100644 (file)
@@ -70,6 +70,7 @@ void   BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfre
 void   BLI_ghash_insert(GHash *gh, void *key, void *val);
 void  *BLI_ghash_lookup(GHash *gh, const void *key);
 int    BLI_ghash_remove(GHash *gh, void *key, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp);
+void  *BLI_ghash_pop(GHash *gh, void *key, GHashKeyFreeFP keyfreefp);
 int    BLI_ghash_haskey(GHash *gh, void *key);
 int    BLI_ghash_size(GHash *gh);