xserver-multidpi/Xext
Erkki Seppälä ccb3e78124 Xext: add a generic hashtable implementation
The generic hashtable implementation adds a key-value container, that
keeps the key and value inside the hashtable structure and manages
their memory by itself. This data structure is best suited for
fixed-length keys and values.

One creates a new hash table with ht_create and disposes it with
ht_destroy. ht_create accepts the key and value sizes (in bytes) in
addition to the hashing and comparison functions to use. When adding
keys with ht_add, they will be copied into the hash and a pointer to
the value will be returned: data may be put into this structure (or if
the hash table is to be used as a set, one can just not put anything
in).

The hash table comes also with one generic hashing function plus a
comparison function to facilitate ease of use. It also has a custom
hashing and comparison functions for hashing resource IDs with
HashXID.

Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
2012-04-18 12:49:06 +03:00
..
bigreq.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dpms.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dpmsproc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dpmsstubs.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
geext.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
geext.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
geint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
hashtable.c Xext: add a generic hashtable implementation 2012-04-18 12:49:06 +03:00
hashtable.h Xext: add a generic hashtable implementation 2012-04-18 12:49:06 +03:00
Makefile.am Xext: add a generic hashtable implementation 2012-04-18 12:49:06 +03:00
panoramiX.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiX.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiXh.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiXprocs.c Indentation: Change '& stuff' to '&stuff' 2012-03-21 14:02:30 -07:00
panoramiXsrv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiXSwap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
saver.c Change lastDeviceIdleTime to be per-device 2012-03-22 13:12:56 +10:00
security.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
securitysrv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shape.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shm.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shmint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
sleepuntil.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
sleepuntil.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
sync.c Xext: Add per-device SyncCounters 2012-03-22 13:12:56 +10:00
syncsdk.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
syncsrv.h Xext: Add per-device SyncCounters 2012-03-22 13:12:56 +10:00
xace.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xace.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xacestr.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xcmisc.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86bigfont.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86bigfontsrv.h New header for XF86Bigfont server functions 2010-03-22 00:48:04 -05:00
xres.c composite: Report pixmap usage of client windows to resource extension. 2012-04-18 12:31:27 +03:00
xselinux_ext.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinux_hooks.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinux_label.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinux.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinuxint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xtest.c Xext: return BadAccess if PickPointer fails (#45796) 2012-03-22 11:33:20 +10:00
xvdisp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xvdisp.h Fix swapped Xv dispatch under Xinerama. 2007-12-02 14:15:36 -05:00
xvdix.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xvmain.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xvmc.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xvmcext.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00