[PATCH 1/4] dix: Provide means to report exact sizes of resources.

Alan Coopersmith alan.coopersmith at oracle.com
Thu Oct 28 06:48:29 PDT 2010


> +/**
> + * Get the function used to calculate resource size. Extensions and
> + * drivers need to be able to determine the current size calculation
> + * function if they want to wrap or override it.
> + *
> + * @param[in] type     Resource type used in size calculations.
> + *
> + * @return Function to calculate the size of a single
> + *                     resource.
> + */
> +SizeType
> +GetResourceTypeSizeFunc(RESTYPE type)
> +{
> +    return resourceTypes[type & TypeMask].sizeFunc;
> +}

Should this add dixPrivatesSize(type) to the result or should the callers
like Xresource be doing that?

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list