mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-02 20:42:30 +03:00
include: Stop using *Ptr typedefs in public headers
This commit is contained in:
@ -7,26 +7,26 @@ functions = {
|
||||
'xmlRegisterXPathFunction': (
|
||||
'Register a Python written function to the XPath interpreter',
|
||||
['int', '1 in case of success, 0 or -1 in case of error', None],
|
||||
[['ctx', 'xmlXPathContextPtr', 'the xpathContext'], ['name', 'xmlChar *', 'the function name'], ['ns_uri', 'xmlChar *', 'the namespace or NULL'], ['f', 'pythonObject', 'the python function']],
|
||||
[['ctx', 'xmlXPathContext *', 'the xpathContext'], ['name', 'xmlChar *', 'the function name'], ['ns_uri', 'xmlChar *', 'the namespace or NULL'], ['f', 'pythonObject', 'the python function']],
|
||||
'python', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathRegisterVariable': (
|
||||
'Register a variable with the XPath context',
|
||||
['int', '1 in case of success, 0 or -1 in case of error', None],
|
||||
[['ctx', 'xmlXPathContextPtr', 'the xpathContext'], ['name', 'xmlChar *', 'the variable name'], ['ns_uri', 'xmlChar *', 'the namespace or NULL'], ['value', 'pythonObject', 'the value']],
|
||||
[['ctx', 'xmlXPathContext *', 'the xpathContext'], ['name', 'xmlChar *', 'the variable name'], ['ns_uri', 'xmlChar *', 'the namespace or NULL'], ['value', 'pythonObject', 'the value']],
|
||||
'python', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlNewNode': (
|
||||
'Create a new Node',
|
||||
['xmlNodePtr', 'A new element node', None],
|
||||
['xmlNode *', 'A new element node', None],
|
||||
[['name', 'xmlChar *', 'the node name']],
|
||||
'python', None),
|
||||
'xmlCreatePushParser': (
|
||||
'Create a progressive XML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.',
|
||||
['xmlParserCtxtPtr', 'the parser context or None in case of error', None],
|
||||
['xmlParserCtxt *', 'the parser context or None in case of error', None],
|
||||
[['SAX', 'pythonObject', 'the SAX callback object or None'], ['chunk', 'xmlChar *', 'the initial data'], ['size', 'int', 'the size of the initial data'], ['URI', 'xmlChar *', 'The URI used for base computations']],
|
||||
'python', None),
|
||||
'htmlCreatePushParser': (
|
||||
'Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.',
|
||||
['xmlParserCtxtPtr', 'the parser context or None in case of error', None],
|
||||
['xmlParserCtxt *', 'the parser context or None in case of error', None],
|
||||
[['SAX', 'pythonObject', 'the SAX callback object or None'], ['chunk', 'xmlChar *', 'the initial data'], ['size', 'int', 'the size of the initial data'], ['URI', 'xmlChar *', 'The URI used for base computations']],
|
||||
'python', 'defined(LIBXML_HTML_ENABLED)'),
|
||||
'xmlSAXParseFile': (
|
||||
@ -41,12 +41,12 @@ functions = {
|
||||
'python', 'defined(LIBXML_HTML_ENABLED)'),
|
||||
'xmlCreateOutputBuffer': (
|
||||
'Create a libxml2 output buffer from a Python file',
|
||||
['xmlOutputBufferPtr', 'the output buffer', None],
|
||||
['xmlOutputBuffer *', 'the output buffer', None],
|
||||
[['file', 'pythonObject', 'the Python file'], ['encoding', 'xmlChar *', 'an optional encoding']],
|
||||
'python', None),
|
||||
'xmlCreateInputBuffer': (
|
||||
'Create a libxml2 input buffer from a Python file',
|
||||
['xmlParserInputBufferPtr', 'the input buffer', None],
|
||||
['xmlParserInputBuffer *', 'the input buffer', None],
|
||||
[['file', 'pythonObject', 'the Python file'], ['encoding', 'xmlChar *', 'an optional encoding']],
|
||||
'python', None),
|
||||
'xmlSetEntityLoader': (
|
||||
@ -56,43 +56,43 @@ functions = {
|
||||
'python', None),
|
||||
'xmlParserGetDoc': (
|
||||
'Get the document tree from a parser context.',
|
||||
['xmlDocPtr', 'the document tree', 'myDoc'],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context']],
|
||||
['xmlDoc *', 'the document tree', 'myDoc'],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context']],
|
||||
'python_accessor', None),
|
||||
'xmlParserGetWellFormed': (
|
||||
'Get the well formed information from a parser context.',
|
||||
['int', 'the wellFormed field', 'wellFormed'],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context']],
|
||||
'python_accessor', None),
|
||||
'xmlParserGetIsValid': (
|
||||
'Get the validity information from a parser context.',
|
||||
['int', 'the valid field', 'valid'],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context']],
|
||||
'python_accessor', None),
|
||||
'xmlParserSetValidate': (
|
||||
'Switch the parser to validation mode.',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context'], ['validate', 'int', '1 to activate validation']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context'], ['validate', 'int', '1 to activate validation']],
|
||||
'python_accessor', None),
|
||||
'xmlParserSetReplaceEntities': (
|
||||
'Switch the parser to replace entities.',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context'], ['replaceEntities', 'int', '1 to replace entities']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context'], ['replaceEntities', 'int', '1 to replace entities']],
|
||||
'python_accessor', None),
|
||||
'xmlParserSetPedantic': (
|
||||
'Switch the parser to be pedantic.',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context'], ['pedantic', 'int', '1 to run in pedantic mode']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context'], ['pedantic', 'int', '1 to run in pedantic mode']],
|
||||
'python_accessor', None),
|
||||
'xmlParserSetLoadSubset': (
|
||||
'Switch the parser to load the DTD without validating.',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context'], ['loadsubset', 'int', '1 to load the DTD']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context'], ['loadsubset', 'int', '1 to load the DTD']],
|
||||
'python_accessor', None),
|
||||
'xmlParserSetLineNumbers': (
|
||||
'Switch on the generation of line number for elements nodes.',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlParserCtxtPtr', 'the parser context'], ['linenumbers', 'int', '1 to save line numbers']],
|
||||
[['ctxt', 'xmlParserCtxt *', 'the parser context'], ['linenumbers', 'int', '1 to save line numbers']],
|
||||
'python_accessor', None),
|
||||
'xmlDebugMemory': (
|
||||
'Switch on the generation of line number for elements nodes. Also returns the number of bytes allocated and not freed by libxml2 since memory debugging was switched on.',
|
||||
@ -101,188 +101,188 @@ functions = {
|
||||
'python', None),
|
||||
'xmlNodeGetNs': (
|
||||
'Get the namespace of a node',
|
||||
['xmlNsPtr', 'The namespace or None', None],
|
||||
[['node', 'xmlNodePtr', 'the node']],
|
||||
['xmlNs *', 'The namespace or None', None],
|
||||
[['node', 'xmlNode *', 'the node']],
|
||||
'python_accessor', None),
|
||||
'xmlNodeGetNsDefs': (
|
||||
'Get the namespace of a node',
|
||||
['xmlNsPtr', 'The namespace or None', None],
|
||||
[['node', 'xmlNodePtr', 'the node']],
|
||||
['xmlNs *', 'The namespace or None', None],
|
||||
[['node', 'xmlNode *', 'the node']],
|
||||
'python_accessor', None),
|
||||
'xmlXPathParserGetContext': (
|
||||
'Get the xpathContext from an xpathParserContext',
|
||||
['xmlXPathContextPtr', 'The XPath context', 'context'],
|
||||
[['ctxt', 'xmlXPathParserContextPtr', 'the XPath parser context']],
|
||||
['xmlXPathContext *', 'The XPath context', 'context'],
|
||||
[['ctxt', 'xmlXPathParserContext *', 'the XPath parser context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetContextDoc': (
|
||||
'Get the doc from an xpathContext',
|
||||
['xmlDocPtr', 'The doc context', 'doc'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
['xmlDoc *', 'The doc context', 'doc'],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetContextNode': (
|
||||
'Get the current node from an xpathContext',
|
||||
['xmlNodePtr', 'The node context', 'node'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
['xmlNode *', 'The node context', 'node'],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathSetContextDoc': (
|
||||
'Set the doc of an xpathContext',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context'], ['doc', 'xmlDocPtr', 'The doc context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context'], ['doc', 'xmlDoc *', 'The doc context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathSetContextNode': (
|
||||
'Set the current node of an xpathContext',
|
||||
['void', None, None],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context'], ['node', 'xmlNodePtr', 'The node context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context'], ['node', 'xmlNode *', 'The node context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetContextPosition': (
|
||||
'Get the current node from an xpathContext',
|
||||
['int', 'The node context', 'proximityPosition'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetContextSize': (
|
||||
'Get the current node from an xpathContext',
|
||||
['int', 'The node context', 'contextSize'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetFunction': (
|
||||
'Get the current function name xpathContext',
|
||||
['const xmlChar *', 'The function name', 'function'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlXPathGetFunctionURI': (
|
||||
'Get the current function name URI xpathContext',
|
||||
['const xmlChar *', 'The function name URI', 'functionURI'],
|
||||
[['ctxt', 'xmlXPathContextPtr', 'the XPath context']],
|
||||
[['ctxt', 'xmlXPathContext *', 'the XPath context']],
|
||||
'python_accessor', 'defined(LIBXML_XPATH_ENABLED)'),
|
||||
'xmlURIGetScheme': (
|
||||
'Get the scheme part from an URI',
|
||||
['const char *', 'The URI scheme', 'scheme'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetScheme': (
|
||||
'Set the scheme part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['scheme', 'char *', 'The URI scheme part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['scheme', 'char *', 'The URI scheme part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetOpaque': (
|
||||
'Get the opaque part from an URI',
|
||||
['const char *', 'The URI opaque', 'opaque'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetOpaque': (
|
||||
'Set the opaque part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['opaque', 'char *', 'The URI opaque part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['opaque', 'char *', 'The URI opaque part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetAuthority': (
|
||||
'Get the authority part from an URI',
|
||||
['const char *', 'The URI authority', 'authority'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetAuthority': (
|
||||
'Set the authority part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['authority', 'char *', 'The URI authority part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['authority', 'char *', 'The URI authority part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetServer': (
|
||||
'Get the server part from an URI',
|
||||
['const char *', 'The URI server', 'server'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetServer': (
|
||||
'Set the server part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['server', 'char *', 'The URI server part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['server', 'char *', 'The URI server part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetUser': (
|
||||
'Get the user part from an URI',
|
||||
['const char *', 'The URI user', 'user'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetUser': (
|
||||
'Set the user part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['user', 'char *', 'The URI user part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['user', 'char *', 'The URI user part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetPath': (
|
||||
'Get the path part from an URI',
|
||||
['const char *', 'The URI path', 'path'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetPath': (
|
||||
'Set the path part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['path', 'char *', 'The URI path part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['path', 'char *', 'The URI path part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetQuery': (
|
||||
'Get the query part from an URI',
|
||||
['const char *', 'The URI query', 'query'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetQuery': (
|
||||
'Set the query part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['query', 'char *', 'The URI query part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['query', 'char *', 'The URI query part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetQueryRaw': (
|
||||
'Get the raw query part from an URI (i.e. the unescaped form).',
|
||||
['const char *', 'The URI query', 'query_raw'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetQueryRaw': (
|
||||
'Set the raw query part of an URI (i.e. the unescaped form).',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['query_raw', 'char *', 'The raw URI query part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['query_raw', 'char *', 'The raw URI query part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetFragment': (
|
||||
'Get the fragment part from an URI',
|
||||
['const char *', 'The URI fragment', 'fragment'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetFragment': (
|
||||
'Set the fragment part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['fragment', 'char *', 'The URI fragment part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['fragment', 'char *', 'The URI fragment part']],
|
||||
'python_accessor', None),
|
||||
'xmlURIGetPort': (
|
||||
'Get the port part from an URI',
|
||||
['int', 'The URI port', 'port'],
|
||||
[['URI', 'xmlURIPtr', 'the URI']],
|
||||
[['URI', 'xmlURI *', 'the URI']],
|
||||
'python_accessor', None),
|
||||
'xmlURISetPort': (
|
||||
'Set the port part of an URI.',
|
||||
['void', None, None],
|
||||
[['URI', 'xmlURIPtr', 'the URI'], ['port', 'int', 'The URI port part']],
|
||||
[['URI', 'xmlURI *', 'the URI'], ['port', 'int', 'The URI port part']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetDomain': (
|
||||
'What part of the library raised this error',
|
||||
['int', 'The error domain', 'domain'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetCode': (
|
||||
'The error code, e.g. an xmlParserError',
|
||||
['int', 'The error code', 'code'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetMessage': (
|
||||
'human-readable informative error message',
|
||||
['const char *', 'The error message', 'message'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetLevel': (
|
||||
'how consequent is the error',
|
||||
['int', 'The error level', 'level'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetFile': (
|
||||
'the filename',
|
||||
['const char *', 'The error file', 'file'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlErrorGetLine': (
|
||||
'the line number if available',
|
||||
['int', 'The error line', 'line'],
|
||||
[['Error', 'xmlErrorPtr', 'the Error']],
|
||||
[['Error', 'xmlError *', 'the Error']],
|
||||
'python_accessor', None),
|
||||
'xmlPythonCleanupParser': (
|
||||
"Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it.",
|
||||
@ -331,13 +331,13 @@ skipped_modules = {
|
||||
}
|
||||
skipped_types = {
|
||||
'int *': "usually a return type",
|
||||
'xmlSAXHandlerPtr': "not the proper interface for SAX",
|
||||
'htmlSAXHandlerPtr': "not the proper interface for SAX",
|
||||
'xmlRMutexPtr': "thread specific, skipped",
|
||||
'xmlMutexPtr': "thread specific, skipped",
|
||||
'xmlGlobalStatePtr': "thread specific, skipped",
|
||||
'xmlListPtr': "internal representation not suitable for python",
|
||||
'xmlBufferPtr': "internal representation not suitable for python",
|
||||
'xmlSAXHandler *': "not the proper interface for SAX",
|
||||
'htmlSAXHandler *': "not the proper interface for SAX",
|
||||
'xmlRMutex *': "thread specific, skipped",
|
||||
'xmlMutex *': "thread specific, skipped",
|
||||
'xmlGlobalState *': "thread specific, skipped",
|
||||
'xmlList *': "internal representation not suitable for python",
|
||||
'xmlBuffer *': "internal representation not suitable for python",
|
||||
'FILE *': None,
|
||||
}
|
||||
|
||||
@ -486,74 +486,51 @@ py_types = {
|
||||
'const char *': ('z', None, "charPtrConst", "const char *"),
|
||||
'xmlChar *': ('z', None, "xmlCharPtr", "xmlChar *"),
|
||||
'const xmlChar *': ('z', None, "xmlCharPtrConst", "const xmlChar *"),
|
||||
'xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlDtdPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlAttrPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlEntityPtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"),
|
||||
'const xmlElementPtr': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"),
|
||||
'xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"),
|
||||
'const xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElementPtr"),
|
||||
'xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"),
|
||||
'const xmlAttributePtr': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"),
|
||||
'xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"),
|
||||
'const xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttributePtr"),
|
||||
'xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"),
|
||||
'const xmlNsPtr': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"),
|
||||
'xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"),
|
||||
'const xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNsPtr"),
|
||||
'xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'const xmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'const xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'const htmlDocPtr': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'const htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDocPtr"),
|
||||
'htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const htmlNodePtr': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'const htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNodePtr"),
|
||||
'xmlXPathContextPtr': ('O', "xmlXPathContext", "xmlXPathContextPtr", "xmlXPathContextPtr"),
|
||||
'xmlXPathContext *': ('O', "xpathContext", "xmlXPathContextPtr", "xmlXPathContextPtr"),
|
||||
'xmlXPathParserContextPtr': ('O', "xmlXPathParserContext", "xmlXPathParserContextPtr", "xmlXPathParserContextPtr"),
|
||||
'xmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"),
|
||||
'xmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"),
|
||||
'htmlParserCtxtPtr': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"),
|
||||
'htmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxtPtr"),
|
||||
'xmlValidCtxtPtr': ('O', "ValidCtxt", "xmlValidCtxtPtr", "xmlValidCtxtPtr"),
|
||||
'xmlCatalogPtr': ('O', "catalog", "xmlCatalogPtr", "xmlCatalogPtr"),
|
||||
'xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'const xmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'const xmlDtd *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'const xmlAttr *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'const xmlEntity *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElement *"),
|
||||
'const xmlElement *': ('O', "xmlElement", "xmlElementPtr", "xmlElement *"),
|
||||
'xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttribute *"),
|
||||
'const xmlAttribute *': ('O', "xmlAttribute", "xmlAttributePtr", "xmlAttribute *"),
|
||||
'xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNs *"),
|
||||
'const xmlNs *': ('O', "xmlNode", "xmlNsPtr", "xmlNs *"),
|
||||
'xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDoc *"),
|
||||
'const xmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDoc *"),
|
||||
'htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDoc *"),
|
||||
'const htmlDoc *': ('O', "xmlNode", "xmlDocPtr", "xmlDoc *"),
|
||||
'htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'const htmlNode *': ('O', "xmlNode", "xmlNodePtr", "xmlNode *"),
|
||||
'xmlXPathContext *': ('O', "xmlXPathContext", "xmlXPathContextPtr", "xmlXPathContext *"),
|
||||
'xmlXPathParserContext *': ('O', "xmlXPathParserContext", "xmlXPathParserContextPtr", "xmlXPathParserContext *"),
|
||||
'xmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxt *"),
|
||||
'htmlParserCtxt *': ('O', "parserCtxt", "xmlParserCtxtPtr", "xmlParserCtxt *"),
|
||||
'xmlValidCtxt *': ('O', "ValidCtxt", "xmlValidCtxtPtr", "xmlValidCtxt *"),
|
||||
'xmlCatalog *': ('O', "catalog", "xmlCatalogPtr", "xmlCatalog *"),
|
||||
'FILE *': ('O', "File", "FILEPtr", "FILE *"),
|
||||
'xmlURIPtr': ('O', "URI", "xmlURIPtr", "xmlURIPtr"),
|
||||
'xmlURI *': ('O', "URI", "xmlURIPtr", "xmlURI *"),
|
||||
'const xmlError *': ('O', "Error", "xmlErrorPtr", "const xmlError *"),
|
||||
'xmlErrorPtr': ('O', "Error", "xmlErrorPtr", "xmlErrorPtr"),
|
||||
'xmlOutputBufferPtr': ('O', "outputBuffer", "xmlOutputBufferPtr", "xmlOutputBufferPtr"),
|
||||
'xmlParserInputBufferPtr': ('O', "inputBuffer", "xmlParserInputBufferPtr", "xmlParserInputBufferPtr"),
|
||||
'xmlRegexpPtr': ('O', "xmlReg", "xmlRegexpPtr", "xmlRegexpPtr"),
|
||||
'xmlError *': ('O', "Error", "xmlErrorPtr", "xmlError *"),
|
||||
'xmlOutputBuffer *': ('O', "outputBuffer", "xmlOutputBufferPtr", "xmlOutputBuffer *"),
|
||||
'xmlParserInputBuffer *': ('O', "inputBuffer", "xmlParserInputBufferPtr", "xmlParserInputBuffer *"),
|
||||
'xmlRegexp *': ('O', "xmlReg", "xmlRegexpPtr", "xmlRegexp *"),
|
||||
'xmlTextReaderLocatorPtr': ('O', "xmlTextReaderLocator", "xmlTextReaderLocatorPtr", "xmlTextReaderLocatorPtr"),
|
||||
'xmlTextReaderPtr': ('O', "xmlTextReader", "xmlTextReaderPtr", "xmlTextReaderPtr"),
|
||||
'xmlRelaxNGPtr': ('O', "relaxNgSchema", "xmlRelaxNGPtr", "xmlRelaxNGPtr"),
|
||||
'xmlRelaxNGParserCtxtPtr': ('O', "relaxNgParserCtxt", "xmlRelaxNGParserCtxtPtr", "xmlRelaxNGParserCtxtPtr"),
|
||||
'xmlRelaxNGValidCtxtPtr': ('O', "relaxNgValidCtxt", "xmlRelaxNGValidCtxtPtr", "xmlRelaxNGValidCtxtPtr"),
|
||||
'xmlSchemaPtr': ('O', "Schema", "xmlSchemaPtr", "xmlSchemaPtr"),
|
||||
'xmlSchemaParserCtxtPtr': ('O', "SchemaParserCtxt", "xmlSchemaParserCtxtPtr", "xmlSchemaParserCtxtPtr"),
|
||||
'xmlSchemaValidCtxtPtr': ('O', "SchemaValidCtxt", "xmlSchemaValidCtxtPtr", "xmlSchemaValidCtxtPtr"),
|
||||
'xmlTextReader *': ('O', "xmlTextReader", "xmlTextReaderPtr", "xmlTextReader *"),
|
||||
'xmlRelaxNG *': ('O', "relaxNgSchema", "xmlRelaxNGPtr", "xmlRelaxNG *"),
|
||||
'xmlRelaxNGParserCtxt *': ('O', "relaxNgParserCtxt", "xmlRelaxNGParserCtxtPtr", "xmlRelaxNGParserCtxt *"),
|
||||
'xmlRelaxNGValidCtxt *': ('O', "relaxNgValidCtxt", "xmlRelaxNGValidCtxtPtr", "xmlRelaxNGValidCtxt *"),
|
||||
'xmlSchema *': ('O', "Schema", "xmlSchemaPtr", "xmlSchema *"),
|
||||
'xmlSchemaParserCtxt *': ('O', "SchemaParserCtxt", "xmlSchemaParserCtxtPtr", "xmlSchemaParserCtxt *"),
|
||||
'xmlSchemaValidCtxt *': ('O', "SchemaValidCtxt", "xmlSchemaValidCtxtPtr", "xmlSchemaValidCtxt *"),
|
||||
}
|
||||
|
||||
py_return_types = {
|
||||
'xmlXPathObjectPtr': ('O', "foo", "xmlXPathObjectPtr", "xmlXPathObjectPtr"),
|
||||
'xmlXPathObject *': ('O', "foo", "xmlXPathObjectPtr", "xmlXPathObject *"),
|
||||
}
|
||||
|
||||
unknown_types = {}
|
||||
@ -1018,52 +995,40 @@ def buildStubs():
|
||||
# The type automatically remapped to generated classes
|
||||
#
|
||||
classes_type = {
|
||||
"xmlNodePtr": ("._o", "xmlNode(_obj=%s)", "xmlNode"),
|
||||
"xmlNode *": ("._o", "xmlNode(_obj=%s)", "xmlNode"),
|
||||
"xmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"xmlDoc *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"htmlDocPtr": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"htmlxmlDocPtr *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"xmlAttrPtr": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"),
|
||||
"htmlDoc *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"htmlxmlDoc * *": ("._o", "xmlDoc(_obj=%s)", "xmlDoc"),
|
||||
"xmlAttr *": ("._o", "xmlAttr(_obj=%s)", "xmlAttr"),
|
||||
"xmlNsPtr": ("._o", "xmlNs(_obj=%s)", "xmlNs"),
|
||||
"xmlNs *": ("._o", "xmlNs(_obj=%s)", "xmlNs"),
|
||||
"xmlDtdPtr": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"),
|
||||
"xmlDtd *": ("._o", "xmlDtd(_obj=%s)", "xmlDtd"),
|
||||
"xmlEntityPtr": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"),
|
||||
"xmlEntity *": ("._o", "xmlEntity(_obj=%s)", "xmlEntity"),
|
||||
"xmlElementPtr": ("._o", "xmlElement(_obj=%s)", "xmlElement"),
|
||||
"xmlElement *": ("._o", "xmlElement(_obj=%s)", "xmlElement"),
|
||||
"xmlAttributePtr": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"),
|
||||
"xmlAttribute *": ("._o", "xmlAttribute(_obj=%s)", "xmlAttribute"),
|
||||
"xmlXPathContextPtr": ("._o", "xpathContext(_obj=%s)", "xpathContext"),
|
||||
"xmlXPathContext *": ("._o", "xpathContext(_obj=%s)", "xpathContext"),
|
||||
"xmlXPathParserContext *": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"),
|
||||
"xmlXPathParserContextPtr": ("._o", "xpathParserContext(_obj=%s)", "xpathParserContext"),
|
||||
"xmlParserCtxtPtr": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"),
|
||||
"xmlParserCtxt *": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"),
|
||||
"htmlParserCtxtPtr": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"),
|
||||
"htmlParserCtxt *": ("._o", "parserCtxt(_obj=%s)", "parserCtxt"),
|
||||
"xmlValidCtxtPtr": ("._o", "ValidCtxt(_obj=%s)", "ValidCtxt"),
|
||||
"xmlCatalogPtr": ("._o", "catalog(_obj=%s)", "catalog"),
|
||||
"xmlURIPtr": ("._o", "URI(_obj=%s)", "URI"),
|
||||
"xmlValidCtxt *": ("._o", "ValidCtxt(_obj=%s)", "ValidCtxt"),
|
||||
"xmlCatalog *": ("._o", "catalog(_obj=%s)", "catalog"),
|
||||
"xmlURI *": ("._o", "URI(_obj=%s)", "URI"),
|
||||
"const xmlError *": ("._o", "Error(_obj=%s)", "Error"),
|
||||
"xmlErrorPtr": ("._o", "Error(_obj=%s)", "Error"),
|
||||
"xmlOutputBufferPtr": ("._o", "outputBuffer(_obj=%s)", "outputBuffer"),
|
||||
"xmlParserInputBufferPtr": ("._o", "inputBuffer(_obj=%s)", "inputBuffer"),
|
||||
"xmlRegexpPtr": ("._o", "xmlReg(_obj=%s)", "xmlReg"),
|
||||
"xmlError *": ("._o", "Error(_obj=%s)", "Error"),
|
||||
"xmlOutputBuffer *": ("._o", "outputBuffer(_obj=%s)", "outputBuffer"),
|
||||
"xmlParserInputBuffer *": ("._o", "inputBuffer(_obj=%s)", "inputBuffer"),
|
||||
"xmlRegexp *": ("._o", "xmlReg(_obj=%s)", "xmlReg"),
|
||||
"xmlTextReaderLocatorPtr": ("._o", "xmlTextReaderLocator(_obj=%s)", "xmlTextReaderLocator"),
|
||||
"xmlTextReaderPtr": ("._o", "xmlTextReader(_obj=%s)", "xmlTextReader"),
|
||||
'xmlRelaxNGPtr': ('._o', "relaxNgSchema(_obj=%s)", "relaxNgSchema"),
|
||||
'xmlRelaxNGParserCtxtPtr': ('._o', "relaxNgParserCtxt(_obj=%s)", "relaxNgParserCtxt"),
|
||||
'xmlRelaxNGValidCtxtPtr': ('._o', "relaxNgValidCtxt(_obj=%s)", "relaxNgValidCtxt"),
|
||||
'xmlSchemaPtr': ("._o", "Schema(_obj=%s)", "Schema"),
|
||||
'xmlSchemaParserCtxtPtr': ("._o", "SchemaParserCtxt(_obj=%s)", "SchemaParserCtxt"),
|
||||
'xmlSchemaValidCtxtPtr': ("._o", "SchemaValidCtxt(_obj=%s)", "SchemaValidCtxt"),
|
||||
"xmlTextReader *": ("._o", "xmlTextReader(_obj=%s)", "xmlTextReader"),
|
||||
'xmlRelaxNG *': ('._o', "relaxNgSchema(_obj=%s)", "relaxNgSchema"),
|
||||
'xmlRelaxNGParserCtxt *': ('._o', "relaxNgParserCtxt(_obj=%s)", "relaxNgParserCtxt"),
|
||||
'xmlRelaxNGValidCtxt *': ('._o', "relaxNgValidCtxt(_obj=%s)", "relaxNgValidCtxt"),
|
||||
'xmlSchema *': ("._o", "Schema(_obj=%s)", "Schema"),
|
||||
'xmlSchemaParserCtxt *': ("._o", "SchemaParserCtxt(_obj=%s)", "SchemaParserCtxt"),
|
||||
'xmlSchemaValidCtxt *': ("._o", "SchemaValidCtxt(_obj=%s)", "SchemaValidCtxt"),
|
||||
}
|
||||
|
||||
converter_type = {
|
||||
"xmlXPathObjectPtr": "xpathObjectRet(%s)",
|
||||
"xmlXPathObject *": "xpathObjectRet(%s)",
|
||||
}
|
||||
|
||||
primary_classes = ["xmlNode", "xmlDoc"]
|
||||
|
Reference in New Issue
Block a user