aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxhash.h
blob: 382d69ec4df434e5d3042d38fc6a0a0a50db3e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* -*- 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_ */