[Xcb] [PATCH 0/2] xcb: Underscore placement in extension name
Eamon Walsh
ewalsh at tycho.nsa.gov
Thu Mar 29 10:46:09 PDT 2007
I'm working on protocol for the XSELinux extension, (extension-name
"SELinux") and XCB is putting an underscore in a bad place, like so:
xcb_se_linux_query_version_cookie_t
I wondered how the XvMC extension got away with not having an
underscore, until I found the following in c-client.xsl:
<func:function name="xcb:xcb-prefix">
<xsl:param name="name" />
<func:result>
<xsl:text>xcb</xsl:text>
<xsl:choose>
<xsl:when test="/xcb/@extension-name = 'RandR'">
<xsl:text>_randr</xsl:text>
</xsl:when>
<xsl:when test="/xcb/@extension-name = 'ScreenSaver'">
<xsl:text>_screensaver</xsl:text>
</xsl:when>
<xsl:when test="/xcb/@extension-name = 'XF86Dri'">
<xsl:text>_xf86dri</xsl:text>
</xsl:when>
<xsl:when test="/xcb/@extension-name = 'XFixes'">
<xsl:text>_xfixes</xsl:text>
</xsl:when>
<xsl:when test="/xcb/@extension-name = 'XvMC'">
<xsl:text>_xvmc</xsl:text>
</xsl:when>
...
The following patchset introduces a new attribute "extension-oneword" on
the xcb element that triggers this special-case behavior. Please apply,
I'd like this functionality for the SELinux extension.
--
Eamon Walsh <ewalsh at tycho.nsa.gov>
National Security Agency
More information about the Xcb
mailing list