summaryrefslogtreecommitdiff
path: root/image/rsvg.h
diff options
context:
space:
mode:
Diffstat (limited to 'image/rsvg.h')
-rw-r--r--image/rsvg.h34
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 */