]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/gdome_xslt/C/gdome_xslt/gdome_xslt.h
ocaml 3.09 transition
[helm.git] / helm / DEVEL / gdome_xslt / C / gdome_xslt / gdome_xslt.h
index 685c7afb44fa65acfa2814d8ac0b41e461d25717..383208770f57e6fc03721a3e273aebb5ad1ac8ba 100644 (file)
 extern "C" {
 #endif /* __cplusplus */
 
+       /******************************/
+       /* XSLT stylesheet Processing */
+       /******************************/
+
 xsltStylesheetPtr      processStylesheet       (GdomeDocument* style);
 
+
+       /*******************************/
+       /* XSLT stylesheet Application */
+       /*******************************/
+
 GdomeDocument*                 applyStylesheet         (GdomeDocument* source,
                                                 xsltStylesheetPtr style_libxslt,
                                                 const char** params);
 
+       /******************/
+       /* Results Output */
+       /******************/
+
 int                    saveResultToFilename    (const char* name,
                                                 GdomeDocument* result,
                                                 xsltStylesheetPtr style_libxslt,
@@ -57,6 +70,16 @@ int                  saveResultToFile        (FILE* file,
 int                    saveResultToFd          (int fd,
                                                 GdomeDocument* result,
                                                 xsltStylesheetPtr style_libxslt);
+
+       /**********************************************/
+       /* Error and Debugging Callbacks Registration */
+       /**********************************************/
+
+typedef                        void(*gdomeXsltMsgCallback)(const char *);
+
+void                   setErrorCallback        (gdomeXsltMsgCallback callback);
+void                   setDebugCallback        (gdomeXsltMsgCallback callback);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */