> +/**
> + * 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-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to