/*
* types.c: converter functions between the internal representation
* and the Python objects
*
* See Copyright for the status of this software.
*
* daniel@veillard.com
*/
#include "libxml_wrap.h"
PyObject *
{
#ifdef DEBUG
#endif
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
/* TODO: look at deallocation */
ret =
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) attr,
(char *) "xmlAttributePtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) elem,
(char *) "xmlElementPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlXPathContextPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
(char *) "xmlXPathParserContextPtr",
NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlParserCtxtPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
case XPATH_XSLT_TREE: {
ret = PyList_New(0);
} else {
int i, len = 0;
len++;
}
for (i = 0;i < len;i++) {
}
}
/*
* Return now, do not free the object passed down
*/
return (ret);
}
case XPATH_NODESET:
ret = PyList_New(0);
} else {
int i;
/* TODO: try to cast directly to the proper node type */
}
}
break;
case XPATH_BOOLEAN:
break;
case XPATH_NUMBER:
break;
case XPATH_STRING:
break;
case XPATH_POINT:
{
break;
}
case XPATH_RANGE:
{
unsigned short bCollapsedRange;
if ( bCollapsedRange ) {
} else {
}
break;
}
case XPATH_LOCATIONSET:
{
int i;
/* xmlXPathFreeObject(setobj) is called */
}
} else {
}
break;
}
default:
#ifdef DEBUG
#endif
}
return (ret);
}
{
#ifdef DEBUG
#endif
return (NULL);
}
(obj) {
} else if PyInt_Check(obj) {
#ifdef PyBool_Check
} else if PyBool_Check (obj) {
}
else {
ret = xmlXPathNewBoolean(0);
}
#endif
} else if PyString_Check
(obj) {
} else if PyList_Check
(obj) {
int i;
for (i = 0; i < PyList_Size(obj); i++) {
continue;
if (PyCObject_Check(node)) {
#ifdef DEBUG
printf("Got a CObject\n");
#endif
} else if (PyInstance_Check(node)) {
(name) {
wrapper =
}
}
}
} else {
#ifdef DEBUG
printf("Unknown object in Python return list\n");
#endif
}
}
}
} else {
#ifdef DEBUG
printf("Unable to convert Python Object to XPath");
#endif
}
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) valid,
(char *) "xmlValidCtxtPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) catal,
(char *) "xmlCatalogPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) buffer,
(char *) "xmlOutputBufferPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) buffer,
(char *) "xmlParserInputBufferPtr", NULL);
return (ret);
}
#ifdef LIBXML_REGEXP_ENABLED
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) regexp,
(char *) "xmlRegexpPtr", NULL);
return (ret);
}
#endif /* LIBXML_REGEXP_ENABLED */
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) reader,
(char *) "xmlTextReaderPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) locator,
(char *) "xmlTextReaderLocatorPtr", NULL);
return (ret);
}
#ifdef LIBXML_SCHEMAS_ENABLED
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlRelaxNGPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlRelaxNGParserCtxtPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) valid,
(char *) "xmlRelaxNGValidCtxtPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlSchemaPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) ctxt,
(char *) "xmlSchemaParserCtxtPtr", NULL);
return (ret);
}
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) valid,
(char *) "xmlSchemaValidCtxtPtr", NULL);
return (ret);
}
#endif /* LIBXML_SCHEMAS_ENABLED */
PyObject *
{
#ifdef DEBUG
#endif
return (Py_None);
}
ret =
PyCObject_FromVoidPtrAndDesc((void *) error,
(char *) "xmlErrorPtr", NULL);
return (ret);
}