summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxhash.h
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2008-06-11 15:25:35 +0100
committerAlan Hourihane <[email protected]>2008-06-11 15:25:35 +0100
commit5e9fe62c7090768b82a3cc905d1da6b623304b50 (patch)
tree513b59c63455de9f79eee08e8b6ef8ba5ce0bdb5 /src/glx/x11/glxhash.h
parent1bcb817167773d6a148dd4b2cd63777d0f072c08 (diff)
add missed files for DRI2 merge
Diffstat (limited to 'src/glx/x11/glxhash.h')
-rw-r--r--src/glx/x11/glxhash.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glx/x11/glxhash.h b/src/glx/x11/glxhash.h
new file mode 100644
index 00000000000..66012fb889d
--- /dev/null
+++ b/src/glx/x11/glxhash.h
@@ -0,0 +1,16 @@
+#ifndef _GLX_HASH_H_
+#define _GLX_HASH_H_
+
+
+typedef struct __glxHashTable __glxHashTable;
+
+/* Hash table routines */
+extern __glxHashTable *__glxHashCreate(void);
+extern int __glxHashDestroy(__glxHashTable *t);
+extern int __glxHashLookup(__glxHashTable *t, unsigned long key, void **value);
+extern int __glxHashInsert(__glxHashTable *t, unsigned long key, void *value);
+extern int __glxHashDelete(__glxHashTable *t, unsigned long key);
+extern int __glxHashFirst(__glxHashTable *t, unsigned long *key, void **value);
+extern int __glxHashNext(__glxHashTable *t, unsigned long *key, void **value);
+
+#endif /* _GLX_HASH_H_ */