[Xcb] [proto 4/6] schema: Add attribute 'name' to <fd>

Ran Benita ran234 at gmail.com
Tue Nov 26 14:51:35 PST 2013


On Fri, Nov 22, 2013 at 11:26:52PM +0100, Daniel Martin wrote:
> Do not allow any other attribute and make sure the attribute 'name' is
> set in an fd element by adding and declaring it as required in the
> schema.

Unrelated, by I guess xml-xcb.txt needs updating too with <fd> (I'll
send a patch with some description; the important thing is that it be
there).
Perhaps even xcb-doc.txt can be incorporated into the schema directly?

> Signed-off-by: Daniel Martin <consume.noise at gmail.com>
> ---
>  src/xcb.xsd | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/xcb.xsd b/src/xcb.xsd
> index be7d81a..e566dbd 100644
> --- a/src/xcb.xsd
> +++ b/src/xcb.xsd
> @@ -90,7 +90,11 @@ authorization from the authors.
>    <xsd:element name="field" type="var" />
>  
>    <!-- fd passing parameter -->
> -  <xsd:element name="fd" />
> +  <xsd:element name="fd">
> +    <xsd:complexType>
> +      <xsd:attribute name="name" type="xsd:string" use="required" />
> +    </xsd:complexType>
> +  </xsd:element>
>  
>    <!-- list replaces ARRAYFIELD, LISTPARAM, and ARRAYREPLY.  The name and type
>         are specified as attributes.  The content is an expression giving the
> -- 
> 1.8.4.2
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list