1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Copyright (C) 2003-2009 Shaun McCance <shaunm@gnome.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Shaun McCance <shaunm@gnome.org>
23 #ifndef __YELP_TRANSFORM_H__
24 #define __YELP_TRANSFORM_H__
27 #include <glib-object.h>
28 #include <libxml/tree.h>
29 #include <libxslt/xslt.h>
30 #include <libxslt/transform.h>
32 #define YELP_TYPE_TRANSFORM (yelp_transform_get_type ())
33 #define YELP_TRANSFORM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YELP_TYPE_TRANSFORM, YelpTransform))
34 #define YELP_TRANSFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YELP_TYPE_TRANSFORM, YelpTransformClass))
35 #define YELP_IS_TRANSFORM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YELP_TYPE_TRANSFORM))
36 #define YELP_IS_TRANSFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YELP_TYPE_TRANSFORM))
38 typedef struct _YelpTransform YelpTransform
;
39 typedef struct _YelpTransformClass YelpTransformClass
;
40 struct _YelpTransform
{
43 struct _YelpTransformClass
{
44 GObjectClass parent_class
;
47 YelpTransform
* yelp_transform_new (const gchar
*stylesheet
);
48 gboolean
yelp_transform_start (YelpTransform
*transform
,
51 const gchar
* const *params
);
52 gchar
* yelp_transform_take_chunk (YelpTransform
*transform
,
53 const gchar
*chunk_id
);
54 void yelp_transform_cancel (YelpTransform
*transform
);
55 GError
* yelp_transform_get_error (YelpTransform
*transform
);
57 #endif /* __YELP_TRANSFORM_H__ */