aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglhash.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-04-22 21:09:39 +0000
committerBrian Paul <[email protected]>2005-04-22 21:09:39 +0000
commitadbff7e977c7c768e752a24fb643d68bdf961bfe (patch)
tree8ad42d96c55f25fe05921792507bc9b69d82e8f3 /src/egl/main/eglhash.h
parenta661654a33ba38990719ac9f5aea2910a5d5bf77 (diff)
initial EGL code
Diffstat (limited to 'src/egl/main/eglhash.h')
-rw-r--r--src/egl/main/eglhash.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/egl/main/eglhash.h b/src/egl/main/eglhash.h
new file mode 100644
index 00000000000..1d6db9598ce
--- /dev/null
+++ b/src/egl/main/eglhash.h
@@ -0,0 +1,39 @@
+/**
+ * \file eglhash.h
+ * Generic hash table.
+ */
+
+
+#ifndef EGLHASH_INCLUDED
+#define EGLHASH_INCLUDED
+
+
+/* XXX move this? */
+typedef unsigned int EGLuint;
+
+
+typedef struct _egl_hashtable _EGLHashtable;
+
+
+extern _EGLHashtable *_eglNewHashTable(void);
+
+extern void _eglDeleteHashTable(_EGLHashtable *table);
+
+extern void *_eglHashLookup(const _EGLHashtable *table, EGLuint key);
+
+extern void _eglHashInsert(_EGLHashtable *table, EGLuint key, void *data);
+
+extern void _eglHashRemove(_EGLHashtable *table, EGLuint key);
+
+extern EGLuint _eglHashFirstEntry(_EGLHashtable *table);
+
+extern EGLuint _eglHashNextEntry(const _EGLHashtable *table, EGLuint key);
+
+extern void _eglHashPrint(const _EGLHashtable *table);
+
+extern EGLuint _eglHashGenKey(_EGLHashtable *table);
+
+extern void _egltest_hash_functions(void);
+
+
+#endif /* EGLHASH_INCLUDED */