blob: ec76f6ed6c09fd88a1d1bc315ceacd7b80e579c5 [file] [log] [blame]
Daniel Veillard9589d452002-02-02 10:28:17 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<api name='libxml2-python'>
3 <files>
4 <file name='python'>
5 <exports symbol='libxml_registerXPathFunction'/>
6 </file>
7 </files>
8 <symbols>
9 <function name='xmlRegisterXPathFunction' file='python'>
10 <info>Register a Python written function to the XPath interpreter</info>
11 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
12 <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
13 <arg name='name' type='xmlChar *' info='the function name'/>
14 <arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
15 <arg name='f' type='pythonObject' info='the python function'/>
16 </function>
Daniel Veillard5d819032002-02-02 21:49:17 +000017 <function name='xmlRegisterErrorHandler' file='python'>
18 <info>Register a Python written function to for error reporting. The function is called back as f(ctx, error).</info>
19 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
20 <arg name='f' type='pythonObject' info='the python function'/>
21 <arg name='ctx' type='pythonObject' info='a context for the callback'/>
22 </function>
Daniel Veillard3ce52572002-02-03 15:08:05 +000023 <function name='xmlCreatePushParser' file='python'>
24 <info>Create a progressive parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.</info>
25 <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/>
26 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
27 <arg name='chunk' type='xmlChar *' info='the initial data'/>
28 <arg name='size' type='int' info='the size of the initial data'/>
29 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
30 </function>
31 <function name='xmlParserGetDoc' file='python_accessor'>
32 <info>Get the document tree from a parser context.</info>
33 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
34 <arg name='ctxt' type='xmlParserCtxtPtr' info='the SAX callback object or None'/>
35 </function>
Daniel Veillard9589d452002-02-02 10:28:17 +000036 </symbols>
37</api>