* 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,
* 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;
* @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;