xserver-multidpi/render
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
..
animcur.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
filter.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
glyph.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
glyphstr.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
Makefile.am Export a bunch of matrix operations from render. 2008-11-24 13:24:36 -08:00
matrix.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
miindex.c Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
mipict.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
mipict.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mirect.c Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
mitrap.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mitri.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
picture.c Return an appropriately-typed error from dixLookupResourceByType. 2010-05-19 12:32:48 -07:00
picture.h Add 4 missing 10bpc picture formats to the server format list. 2009-08-13 12:04:33 -07:00
picturestr.h VERIFY_PICTURE always returns BadPicture. Don't bother specifying. 2010-05-07 21:57:19 -07:00
render.c Return an appropriately-typed error from dixLookupResourceByType. 2010-05-19 12:32:48 -07:00
renderedge.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
renderedge.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00