File tree Expand file tree Collapse file tree 4 files changed +30
-24
lines changed
Expand file tree Collapse file tree 4 files changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ build = {
6464 [" xmlua.libxml2.parser" ] = " xmlua/libxml2/parser.lua" ,
6565 [" xmlua.libxml2.tree" ] = " xmlua/libxml2/tree.lua" ,
6666 [" xmlua.libxml2.valid" ] = " xmlua/libxml2/valid.lua" ,
67+ [" xmlua.libxml2.xml-io" ] = " xmlua/libxml2/xml-io.lua" ,
6768 [" xmlua.libxml2.xmlerror" ] = " xmlua/libxml2/xmlerror.lua" ,
6869 [" xmlua.libxml2.xmlsave" ] = " xmlua/libxml2/xmlsave.lua" ,
6970 [" xmlua.libxml2.xmlstring" ] = " xmlua/libxml2/xmlstring.lua" ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ require("xmlua.libxml2.html-tree")
1515require (" xmlua.libxml2.xmlsave" )
1616require (" xmlua.libxml2.xpath" )
1717require (" xmlua.libxml2.entities" )
18+ require (" xmlua.libxml2.xml-io" )
1819require (" xmlua.libxml2.c14n" )
1920
2021local ffi = require (" ffi" )
Original file line number Diff line number Diff line change 11local ffi = require (" ffi" )
22
33ffi .cdef [[
4- typedef int (* xmlOutputWriteCallback ) (void * context , const char * buffer , int len );
5- typedef int (* xmlOutputCloseCallback ) (void * context );
6-
7- struct _xmlOutputBuffer {
8- void * context ;
9- xmlOutputWriteCallback writecallback ;
10- xmlOutputCloseCallback closecallback ;
11-
12- xmlCharEncodingHandlerPtr encoder ; /* I18N conversions to UTF-8 */
13-
14- xmlBufferPtr buffer ; /* Local buffer encoded in UTF-8 or ISOLatin */
15- xmlBufferPtr conv ; /* if encoder != NULL buffer for output */
16- int written ; /* total number of byte written */
17- int error ;
18- };
19-
20- typedef struct _xmlOutputBuffer xmlOutputBuffer;
21- typedef xmlOutputBuffer *xmlOutputBufferPtr;
22-
23- xmlOutputBufferPtr xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder );
24- xmlOutputBufferPtr xmlOutputBufferCreateBuffer (xmlBufferPtr buffer , xmlCharEncodingHandlerPtr encoder );
25- int xmlOutputBufferClose (xmlOutputBufferPtr out );
26-
27-
284/*
295 * xmlC14NMode:
306 *
Original file line number Diff line number Diff line change 1+ local ffi = require (" ffi" )
2+
3+ ffi .cdef [[
4+
5+ typedef int (* xmlOutputWriteCallback ) (void * context , const char * buffer , int len );
6+ typedef int (* xmlOutputCloseCallback ) (void * context );
7+
8+ struct _xmlOutputBuffer {
9+ void * context ;
10+ xmlOutputWriteCallback writecallback ;
11+ xmlOutputCloseCallback closecallback ;
12+
13+ xmlCharEncodingHandlerPtr encoder ; /* I18N conversions to UTF-8 */
14+
15+ xmlBufferPtr buffer ; /* Local buffer encoded in UTF-8 or ISOLatin */
16+ xmlBufferPtr conv ; /* if encoder != NULL buffer for output */
17+ int written ; /* total number of byte written */
18+ int error ;
19+ };
20+
21+ typedef struct _xmlOutputBuffer xmlOutputBuffer;
22+ typedef xmlOutputBuffer *xmlOutputBufferPtr;
23+
24+ xmlOutputBufferPtr xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder );
25+ xmlOutputBufferPtr xmlOutputBufferCreateBuffer (xmlBufferPtr buffer , xmlCharEncodingHandlerPtr encoder );
26+ int xmlOutputBufferClose (xmlOutputBufferPtr out );
27+
28+ ]]
You can’t perform that action at this time.
0 commit comments