1 /*
2  * Copyright (C) 2000 Reinhard Müller <reinhard@src.gnome.org>
3  * Copyright (C) 2000 - 2002 Rodrigo Moya <rodrigo@gnome-db.org>
4  * Copyright (C) 2001 Carlos Perelló Marín <carlos@gnome-db.org>
5  * Copyright (C) 2001 - 2011 Vivien Malerba <malerba@gnome-db.org>
6  * Copyright (C) 2002 Gonzalo Paniagua Javier <gonzalo@src.gnome.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21  * Boston, MA  02110-1301, USA.
22  */
23 
24 #ifndef _LIBGDA_XSLT_H
25 #define _LIBGDA_XSLT_H
26 
27 #include <glib.h>
28 #include <libgda/libgda.h>
29 #include <libxslt/transform.h>
30 
31 G_BEGIN_DECLS
32 #define GDA_XSLT_EXTENSION_URI "http://www.gnome-db.org/ns/gda-sql-ext-v4"
33 struct _GdaXsltExCont
34 {
35 	int            init;
36 	GdaConnection *cnc;
37 	GHashTable    *query_hash;
38 	GError        *error;
39 
40 	/* Padding for future expansion */
41 	gpointer _gda_reserved1;
42 	gpointer _gda_reserved2;
43 	gpointer _gda_reserved3;
44 	gpointer _gda_reserved4;
45 };
46 typedef struct _GdaXsltExCont GdaXsltExCont;
47 
48 void           gda_xslt_register              (void);
49 void           gda_xslt_set_execution_context (xsltTransformContextPtr tcxt,
50 					       GdaXsltExCont * exec);
51 GdaXsltExCont *gda_xslt_create_context_simple (GdaConnection * cnc,
52 					       GError ** error);
53 int            gda_xslt_finalize_context      (GdaXsltExCont * ctx);
54 
55 G_END_DECLS
56 
57 #endif
58