diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-06 20:40:09 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-06 20:40:09 +0000 |
commit | e71691bae890040b83cfd54a2d9a1097d5026866 (patch) | |
tree | 96b2680dc6559ca0ab88fa0b6a533c13b7c9487e /image/rsvg.h | |
parent | e77b1a29550e4753f771848705975295a6ebe99e (diff) | |
download | netsurf-e71691bae890040b83cfd54a2d9a1097d5026866.tar.gz netsurf-e71691bae890040b83cfd54a2d9a1097d5026866.tar.bz2 |
Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
Diffstat (limited to 'image/rsvg.h')
-rw-r--r-- | image/rsvg.h | 34 |
1 files changed, 10 insertions, 24 deletions
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 <stdbool.h> -#include <librsvg/rsvg.h> -#include <cairo.h> -#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 */ |