From e71691bae890040b83cfd54a2d9a1097d5026866 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 6 May 2011 20:40:09 +0000 Subject: Merge branches/jmb/content-factory to trunk svn path=/trunk/netsurf/; revision=12283 --- image/rsvg.h | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'image/rsvg.h') diff --git a/image/rsvg.h b/image/rsvg.h index 90b4ba8f3..4d4e65fea 100644 --- a/image/rsvg.h +++ b/image/rsvg.h @@ -27,30 +27,16 @@ #ifdef WITH_RSVG #include -#include -#include -#include "desktop/plot_style.h" -#include "image/bitmap.h" - -struct content; -struct http_parameter; -struct rect; - -struct content_rsvg_data { - RsvgHandle *rsvgh; /**< Context handle for RSVG renderer */ - cairo_surface_t *cs; /**< The surface built inside a nsbitmap */ - cairo_t *ct; /**< Cairo drawing context */ - struct bitmap *bitmap; /**< Created NetSurf bitmap */ -}; - -bool rsvg_create(struct content *c, const struct http_parameter *params); -bool rsvg_process_data(struct content *c, const char *data, unsigned int size); -bool rsvg_convert(struct content *c); -void rsvg_destroy(struct content *c); -bool rsvg_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour); -bool rsvg_clone(const struct content *old, struct content *new_content); + +#include "utils/errors.h" + +nserror nsrsvg_init(void); +void nsrsvg_fini(void); + +#else + +#define nsrsvg_init() NSERROR_OK +#define nsrsvg_fini() ((void) 0) #endif /* WITH_RSVG */ -- cgit v1.2.3