summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hash.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-01-24 00:20:23 +0000
committerBrian Paul <[email protected]>2005-01-24 00:20:23 +0000
commitc74ffb8266dc55914cba6a37143b38b5fd05b01c (patch)
tree63435a5771c649f38c8cc272faea2844823ac931 /src/mesa/main/hash.h
parent72e3664996721263858f3096e4a618a406550402 (diff)
Added _mesa_HashNextEntry() function to allow walking over all entries
in a hash table. Added _mesa_test_hash_functions() for unit testing. Updated comments, etc.
Diffstat (limited to 'src/mesa/main/hash.h')
-rw-r--r--src/mesa/main/hash.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mesa/main/hash.h b/src/mesa/main/hash.h
index 359ba512742..3cbe668e9ae 100644
--- a/src/mesa/main/hash.h
+++ b/src/mesa/main/hash.h
@@ -5,9 +5,9 @@
/*
* Mesa 3-D graphics library
- * Version: 4.1
+ * Version: 6.3
*
- * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -35,13 +35,6 @@
#include "glheader.h"
-/**
- * Opaque hash table type.
- */
-struct HashTable;
-
-
-
extern struct _mesa_HashTable *_mesa_NewHashTable(void);
extern void _mesa_DeleteHashTable(struct _mesa_HashTable *table);
@@ -54,9 +47,13 @@ extern void _mesa_HashRemove(struct _mesa_HashTable *table, GLuint key);
extern GLuint _mesa_HashFirstEntry(struct _mesa_HashTable *table);
+extern GLuint _mesa_HashNextEntry(const struct _mesa_HashTable *table, GLuint key);
+
extern void _mesa_HashPrint(const struct _mesa_HashTable *table);
extern GLuint _mesa_HashFindFreeKeyBlock(struct _mesa_HashTable *table, GLuint numKeys);
+extern void _mesa_test_hash_functions(void);
+
#endif