summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/x11/glxhash.h')
-rw-r--r--src/glx/x11/glxhash.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glx/x11/glxhash.h b/src/glx/x11/glxhash.h
new file mode 100644
index 0000000000..e97848fa8d
--- /dev/null
+++ b/src/glx/x11/glxhash.h
@@ -0,0 +1,21 @@
+/* -*- mode: c; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3; coding: utf-8-unix -*- */
+#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_ */