From: Michael Orlitzky Date: Mon, 7 Aug 2023 02:01:59 +0000 (-0400) Subject: io-svg.c: constify some arguments. X-Git-Tag: 0.0.1~14 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e418d0f1bce2f149c176bd21a7225034e68a927e;p=libsvgtiny-pixbuf.git io-svg.c: constify some arguments. --- diff --git a/io-svg.c b/io-svg.c index 535b1f7..2d43227 100644 --- a/io-svg.c +++ b/io-svg.c @@ -118,7 +118,7 @@ static void render_path(cairo_t* cr, shape_t* path) { * returned; if not, @c NULL is returned. You are expected to @c * svgtiny_free the result if it is valid. */ -static diagram_t* svgtiny_diagram_from_buffer(gchar* buffer, +static diagram_t* svgtiny_diagram_from_buffer(const gchar* buffer, gsize bytecount, guint width, guint height, @@ -189,7 +189,7 @@ static diagram_t* svgtiny_diagram_from_buffer(gchar* buffer, * is returned; if not, @c NULL is returned. You are expected to @c * cairo_destroy the result if it is valid. */ -static cairo_t* cairo_context_from_diagram(diagram_t* diagram) { +static cairo_t* cairo_context_from_diagram(const diagram_t* diagram) { cairo_t* cr; cairo_surface_t* surface; cairo_status_t crs; @@ -283,7 +283,7 @@ static cairo_t* cairo_context_from_diagram(diagram_t* diagram) { * @return If successful, a valid pointer to a @c GdkPixbuf is * returned; if not, @c NULL is returned and @c error is populated. */ -static GdkPixbuf* gdk_pixbuf_from_svg_buffer(gchar* buffer, +static GdkPixbuf* gdk_pixbuf_from_svg_buffer(const gchar* buffer, gsize bytecount, GError** error) { diagram_t* diagram;