summaryrefslogtreecommitdiffstats
path: root/src/glx/glxhash.h
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-02-09 09:58:36 -0500
committerKristian Høgsberg <[email protected]>2010-02-09 09:58:36 -0500
commit6e8897ff9f90601ebf6eed500ad942c11b54d1f7 (patch)
tree5a90891cfbccbf5c03f792abb2a2407c82872778 /src/glx/glxhash.h
parent538539d8791e5b3b1ea2e95473b589934d94497e (diff)
Retire miniglx and move the actual glx code up to src/glx
Diffstat (limited to 'src/glx/glxhash.h')
-rw-r--r--src/glx/glxhash.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/glx/glxhash.h b/src/glx/glxhash.h
new file mode 100644
index 00000000000..710712dd28a
--- /dev/null
+++ b/src/glx/glxhash.h
@@ -0,0 +1,20 @@
+#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_ */