-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix binding tests for Gck-1 and Gck-2
See #87
- Loading branch information
1 parent
abbe214
commit 576a64b
Showing
3 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet | ||
version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns="http://www.gtk.org/introspection/core/1.0" | ||
xmlns:core="http://www.gtk.org/introspection/core/1.0" | ||
xmlns:c="http://www.gtk.org/introspection/c/1.0" | ||
xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> | ||
<xsl:template match="@* | node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@* | node()" /> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_SESSION_HANDLE']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_SESSION_HANDLE in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gulong</xsl:attribute> | ||
<xsl:attribute name="c:type">gulong</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_FUNCTION_LIST_PTR']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_FUNCTION_LIST_PTR in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gpointer</xsl:attribute> | ||
<xsl:attribute name="c:type">gpointer</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_NOTIFY']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_NOTIFY in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gpointer</xsl:attribute> | ||
<xsl:attribute name="c:type">gpointer</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet | ||
version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns="http://www.gtk.org/introspection/core/1.0" | ||
xmlns:core="http://www.gtk.org/introspection/core/1.0" | ||
xmlns:c="http://www.gtk.org/introspection/c/1.0" | ||
xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> | ||
<xsl:template match="@* | node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@* | node()" /> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_SESSION_HANDLE']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_SESSION_HANDLE in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gulong</xsl:attribute> | ||
<xsl:attribute name="c:type">gulong</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_FUNCTION_LIST_PTR']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_FUNCTION_LIST_PTR in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gpointer</xsl:attribute> | ||
<xsl:attribute name="c:type">gpointer</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="core:type[@c:type='CK_NOTIFY']"> | ||
<!-- https://github.com/ianprime0509/zig-gobject/issues/87 --> | ||
<!-- See CK_NOTIFY in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html --> | ||
<xsl:copy> | ||
<xsl:attribute name="name">gpointer</xsl:attribute> | ||
<xsl:attribute name="c:type">gpointer</xsl:attribute> | ||
</xsl:copy> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters