[PATCH] resource: Add FreeResourceByTypeValue

Keith Packard keithp at keithp.com
Mon Jul 11 08:25:26 PDT 2011


On Mon, 11 Jul 2011 15:56:21 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:

> Another variant on the FreeResource theme. The purpose of this is to
> free the exactly matching resource for both the type and value, useful in
> circumstance where there are a number of identically typed resources
> associated with an id and only one needs to be removed.

What is trying to store multiple values using the same XID/Type pair?
The resource database isn't designed to handle that case;
FreeResourceByType stops after it frees the first one...

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110711/f7f08721/attachment.pgp>


More information about the xorg-devel mailing list