xserver/hw/xfree86
Jamey Sharp e291c56182 Return an appropriately-typed error from dixLookupResourceByType.
Rather than always returning BadValue, associate an error status like
BadWindow with a resource type like RT_WINDOW, and return the
appropriate one for the requested type.

This patch only touches the core protocol resource types. Others still
return BadValue and need to be mapped appropriately.

dixLookupResourceByType can now return BadImplementation, if the caller
asked for a resource type that has not been allocated in the server.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-05-19 12:32:48 -07:00
..
common Only link Xorg with libconfig.la 2010-05-17 09:41:16 -07:00
ddc Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dixmods Return an appropriately-typed error from dixLookupResourceByType. 2010-05-19 12:32:48 -07:00
doc xfree86: Fix reference to SGML entities 2010-04-26 11:35:53 -05:00
dri Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
dri2 Set event sequence number in WriteEventsToClient instead of at callers. 2010-05-19 12:32:34 -07:00
exa Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
fbdevhw Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
i2c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
int10 Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
loader Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
modes Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
os-support Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
parser xfree86: check for NULL pointer before dereferences it in parser code 2010-04-21 18:07:17 +03:00
ramdac Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
shadowfb Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
utils Fix .man.N targets for AM_SILENT_RULES 2010-03-22 00:45:55 -05:00
vbe Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
vgahw Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
x86emu Convert x86emu fixed size int typedefs to use stdint types 2010-04-07 16:18:24 -07:00
xaa Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
xf8_16bpp Update several of my and/or Red Hat's licenses to standard form. 2009-05-14 07:02:44 -04:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Fix relink targets for silent rules 2010-03-22 00:45:52 -05:00
xorgconf.cpp Update xorg.conf man page & sample for changes in Xorg 1.7 2009-09-14 16:03:18 +10:00