1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-05 23:35:48 +03:00

patch from Sean Treadway, adding Python bindings for extension element and

* python/generator.py python/libxslt-python-api.xml python/libxslt.c
  python/libxslt_wrap.h python/libxsltclass.txt: patch from
  Sean Treadway, adding Python bindings for extension element and
  some bindings cleanups.
* python/tests/Makefile.am python/tests/extelem.py: also add an
  example/test.
Daniel
This commit is contained in:
Daniel Veillard
2003-07-09 10:22:14 +00:00
parent 0232312dde
commit 9332a25a91
8 changed files with 387 additions and 40 deletions

View File

@@ -34,5 +34,16 @@ typedef struct {
xsltTransformContextPtr obj;
} PytransformCtxt_Object;
#define PycompiledStyle_Get(v) (((v) == Py_None) ? NULL : \
(((PycompiledStyle_Object *)(v))->obj))
typedef struct {
PyObject_HEAD
xsltTransformContextPtr obj;
} PycompiledStyle_Object;
PyObject * libxslt_xsltStylesheetPtrWrap(xsltStylesheetPtr ctxt);
PyObject * libxslt_xsltTransformContextPtrWrap(xsltTransformContextPtr ctxt);
PyObject * libxslt_xsltStylePreCompPtrWrap(xsltStylePreCompPtr comp);
PyObject * libxslt_xsltElemPreCompPtrWrap(xsltElemPreCompPtr comp);