X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fgdome_xslt%2Focaml%2Fgdome_xslt%2Fgdome_xslt.ml;h=b64a006b4c312baace2ea2a7cd5a05e01412abf0;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=aa05777ab5d8d20a3bc985089dd789f3d7d47469;hpb=54c2dc43bd9a12dca1d4edacc4324acd7bd07f0d;p=helm.git diff --git a/helm/DEVEL/gdome_xslt/ocaml/gdome_xslt/gdome_xslt.ml b/helm/DEVEL/gdome_xslt/ocaml/gdome_xslt/gdome_xslt.ml index aa05777ab..b64a006b4 100644 --- a/helm/DEVEL/gdome_xslt/ocaml/gdome_xslt/gdome_xslt.ml +++ b/helm/DEVEL/gdome_xslt/ocaml/gdome_xslt/gdome_xslt.ml @@ -44,3 +44,16 @@ let saveResultToChannel ~outchan ~result ~stylesheet = ~stylesheet ;; +let setErrorCallback = function + | None -> I_gdome_xslt.disableErrorCallback () + | Some (callback: string -> unit) -> + Callback.register "error_callback" callback; + I_gdome_xslt.enableErrorCallback () +;; +let setDebugCallback = function + | None -> I_gdome_xslt.disableDebugCallback () + | Some (callback: string -> unit) -> + Callback.register "debug_callback" callback; + I_gdome_xslt.enableDebugCallback () +;; +