ReactOS  0.4.14-dev-552-g2fad488
extensions.h
Go to the documentation of this file.
1 /*
2  * Summary: interface for the extension support
3  * Description: This provide the API needed for simple and module
4  * extension support.
5  *
6  * Copy: See Copyright for the status of this software.
7  *
8  * Author: Daniel Veillard
9  */
10 
11 #ifndef __XML_XSLT_EXTENSION_H__
12 #define __XML_XSLT_EXTENSION_H__
13 
14 #include <libxml/xpath.h>
15 #include "xsltexports.h"
16 #include "xsltInternals.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
34  xsltInitGlobals (void);
35 
45 typedef void * (*xsltStyleExtInitFunction) (xsltStylesheetPtr style,
46  const xmlChar *URI);
47 
57  const xmlChar *URI,
58  void *data);
59 
69 typedef void * (*xsltExtInitFunction) (xsltTransformContextPtr ctxt,
70  const xmlChar *URI);
71 
81  const xmlChar *URI,
82  void *data);
83 
85  xsltRegisterExtModule (const xmlChar *URI,
86  xsltExtInitFunction initFunc,
87  xsltExtShutdownFunction shutdownFunc);
90  (const xmlChar * URI,
91  xsltExtInitFunction initFunc,
92  xsltExtShutdownFunction shutdownFunc,
93  xsltStyleExtInitFunction styleInitFunc,
94  xsltStyleExtShutdownFunction styleShutdownFunc);
95 
97  xsltUnregisterExtModule (const xmlChar * URI);
98 
99 XSLTPUBFUN void * XSLTCALL
101  const xmlChar *URI);
102 
103 XSLTPUBFUN void * XSLTCALL
105  const xmlChar *URI);
106 #ifdef XSLT_REFACTORED
107 XSLTPUBFUN void * XSLTCALL
108  xsltStyleStylesheetLevelGetExtData(
110  const xmlChar * URI);
111 #endif
112 XSLTPUBFUN void XSLTCALL
114 
115 XSLTPUBFUN void XSLTCALL
117 
120  (xmlXPathParserContextPtr ctxt);
121 
122 /*
123  * extension functions
124 */
127  (const xmlChar *name,
128  const xmlChar *URI,
129  xmlXPathFunction function);
130 XSLTPUBFUN xmlXPathFunction XSLTCALL
132  const xmlChar *URI);
135  (const xmlChar *name,
136  const xmlChar *URI);
137 
138 /*
139  * extension elements
140  */
143  xmlNodePtr inst,
144  xsltTransformFunction function);
145 
148  xmlNodePtr inst,
149  xsltTransformFunction function);
150 XSLTPUBFUN void XSLTCALL
153  xmlNodePtr inst,
154  xsltTransformFunction function,
155  xsltElemPreCompDeallocator freeFunc);
156 
159  (const xmlChar *name,
160  const xmlChar *URI,
161  xsltPreComputeFunction precomp,
165  const xmlChar *name,
166  const xmlChar *URI);
169  (const xmlChar *name,
170  const xmlChar *URI);
173  (const xmlChar *name,
174  const xmlChar *URI);
177  (const xmlChar *name,
178  const xmlChar *URI);
179 
180 /*
181  * top-level elements
182  */
184  xmlNodePtr inst);
185 
188  (const xmlChar *name,
189  const xmlChar *URI,
190  xsltTopLevelFunction function);
193  (const xmlChar *name,
194  const xmlChar *URI);
197  (const xmlChar *name,
198  const xmlChar *URI);
199 
200 
201 /* These 2 functions are deprecated for use within modules. */
204  const xmlChar *name,
205  const xmlChar *URI,
206  xmlXPathFunction function);
209  const xmlChar *name,
210  const xmlChar *URI,
211  xsltTransformFunction function);
212 
213 /*
214  * Extension Prefix handling API.
215  * Those are used by the XSLT (pre)processor.
216  */
217 
220  const xmlChar *prefix,
221  const xmlChar *URI);
224  const xmlChar *URI);
227  const xmlChar *URI);
230 XSLTPUBFUN void XSLTCALL
232 XSLTPUBFUN void XSLTCALL
234 
238  xmlNodePtr inst);
239 /*
240  * Extension Infos access.
241  * Used by exslt initialisation
242  */
243 
246  const xmlChar *URI);
247 
251 XSLTPUBFUN void XSLTCALL
252  xsltRegisterTestModule (void);
253 XSLTPUBFUN void XSLTCALL
255 
256 
257 #ifdef __cplusplus
258 }
259 #endif
260 
261 #endif /* __XML_XSLT_EXTENSION_H__ */
262 
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleElement(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1781
XSLTPUBFUN void XSLTCALL xsltShutdownCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:1081
XSLTPUBFUN int XSLTCALL xsltInitCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:1016
XSLTPUBFUN void XSLTCALL xsltShutdownExts(xsltStylesheetPtr style)
Definition: extensions.c:1133
XSLTPUBFUN void XSLTCALL xsltFreeExts(xsltStylesheetPtr style)
Definition: extensions.c:479
static UCHAR ULONG UCHAR ULONG UCHAR * output
Definition: bcrypt.c:29
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleTopLevel(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1893
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
XSLTPUBFUN int XSLTCALL xsltRegisterExtFunction(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
Definition: extensions.c:587
XSLTPUBFUN int XSLTCALL xsltRegisterExtElement(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xsltTransformFunction function)
Definition: extensions.c:621
XSLTPUBFUN xsltTopLevelFunction XSLTCALL xsltExtModuleTopLevelLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1856
XSLTPUBFUN xmlXPathFunction XSLTCALL xsltExtModuleFunctionLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1416
void(* xsltTransformFunction)(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, xsltElemPreCompPtr comp)
XSLTPUBFUN xmlHashTablePtr XSLTCALL xsltGetExtInfo(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1935
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModule(const xmlChar *URI)
Definition: extensions.c:1317
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFull(const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc, xsltStyleExtInitFunction styleInitFunc, xsltStyleExtShutdownFunction styleShutdownFunc)
Definition: extensions.c:1248
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtElementLookup(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1668
XSLTPUBFUN void XSLTCALL xsltDebugDumpExtensions(FILE *output)
Definition: extensions.c:2329
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltPreComputeExtModuleElement(xsltStylesheetPtr style, xmlNodePtr inst)
Definition: extensions.c:1558
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleElement(const xmlChar *name, const xmlChar *URI, xsltPreComputeFunction precomp, xsltTransformFunction transform)
Definition: extensions.c:1623
XSLTPUBFUN int XSLTCALL xsltCheckExtPrefix(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1158
XSLTPUBFUN void *XSLTCALL xsltGetExtData(xsltTransformContextPtr ctxt, const xmlChar *URI)
Definition: extensions.c:862
void(* xsltStyleExtShutdownFunction)(xsltStylesheetPtr style, const xmlChar *URI, void *data)
Definition: extensions.h:56
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleTopLevel(const xmlChar *name, const xmlChar *URI, xsltTopLevelFunction function)
Definition: extensions.c:1825
xsltElemPreCompPtr(* xsltPreComputeFunction)(xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
Definition: extensions.h:142
XSLTPUBFUN xsltTransformContextPtr XSLTCALL xsltXPathGetTransformContext(xmlXPathParserContextPtr ctxt)
Definition: extensions.c:1367
XSLTPUBFUN xsltPreComputeFunction XSLTCALL xsltExtModuleElementPreComputeLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1741
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltNewElemPreComp(xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
Definition: extensions.c:1503
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleFunction(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1454
XSLTPUBFUN int XSLTCALL xsltRegisterExtModule(const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc)
Definition: extensions.c:1300
XSLTPUBFUN int XSLTCALL xsltCheckExtURI(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1218
XSLTPUBFUN void XSLTCALL xsltInitElemPreComp(xsltElemPreCompPtr comp, xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function, xsltElemPreCompDeallocator freeFunc)
Definition: extensions.c:1535
XSLTPUBFUN void XSLTCALL xsltFreeCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:642
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtModuleElementLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1698
Definition: tree.h:489
unsigned char xmlChar
Definition: xmlstring.h:28
void(* xsltElemPreCompDeallocator)(xsltElemPreCompPtr comp)
xsltElemPreComp * xsltElemPreCompPtr
XSLTPUBFUN int XSLTCALL xsltRegisterExtPrefix(xsltStylesheetPtr style, const xmlChar *prefix, const xmlChar *URI)
Definition: extensions.c:503
#define XSLTPUBFUN
Definition: xsltexports.h:31
XSLTPUBFUN void XSLTCALL xsltInitGlobals(void)
Definition: extensions.c:2263
void(* xsltTopLevelFunction)(xsltStylesheetPtr style, xmlNodePtr inst)
Definition: extensions.h:183
void(* xsltExtShutdownFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI, void *data)
Definition: extensions.h:80
XSLTPUBFUN void XSLTCALL xsltRegisterTestModule(void)
Definition: extensions.c:2231
#define XSLTCALL
Definition: xsltexports.h:43
Definition: name.c:38
GLuint GLenum GLenum transform
Definition: glext.h:9407
void *(* xsltStyleExtInitFunction)(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.h:45
Arabic default style
Definition: afstyles.h:93
void *(* xsltExtInitFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI)
Definition: extensions.h:69
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFunction(const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
Definition: extensions.c:1385
XSLTPUBFUN void *XSLTCALL xsltStyleGetExtData(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:756