summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cairo-png.c9
-rw-r--r--src/cairo.h6
2 files changed, 8 insertions, 7 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c
index db6c1c02..e5df7238 100644
--- a/src/cairo-png.c
+++ b/src/cairo-png.c
@@ -185,7 +185,7 @@ stdio_write_func (png_structp png, png_bytep data, png_size_t size)
}
/**
- * cairo_surface_write_png:
+ * cairo_surface_write_to_png:
* @surface: a #cairo_surface_t with pixel contents
* @file: a #FILE opened in write mode
*
@@ -199,7 +199,8 @@ stdio_write_func (png_structp png, png_bytep data, png_size_t size)
* pixel contents.
**/
cairo_status_t
-cairo_surface_write_png (cairo_surface_t *surface, const char *filename)
+cairo_surface_write_to_png (cairo_surface_t *surface,
+ const char *filename)
{
FILE *fp;
cairo_status_t status;
@@ -232,7 +233,7 @@ stream_write_func (png_structp png, png_bytep data, png_size_t size)
}
/**
- * cairo_surface_write_png_to_stream:
+ * cairo_surface_write_to_png_stream:
* @surface: a #cairo_surface_t with pixel contents
* @write_func: a #cairo_write_func_t
* @closure: closure data for the write function
@@ -246,7 +247,7 @@ stream_write_func (png_structp png, png_bytep data, png_size_t size)
* pixel contents.
**/
cairo_status_t
-cairo_surface_write_png_to_stream (cairo_surface_t *surface,
+cairo_surface_write_to_png_stream (cairo_surface_t *surface,
cairo_write_func_t write_func,
void *closure)
{
diff --git a/src/cairo.h b/src/cairo.h
index 8e448a9d..cf70a27b 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -929,11 +929,11 @@ cairo_surface_finish (cairo_surface_t *surface);
#ifdef CAIRO_HAS_PNG_FUNCTIONS
cairo_status_t
-cairo_surface_write_png (cairo_surface_t *surface,
- const char *filename);
+cairo_surface_write_to_png (cairo_surface_t *surface,
+ const char *filename);
cairo_status_t
-cairo_surface_write_png_to_stream (cairo_surface_t *surface,
+cairo_surface_write_to_png_stream (cairo_surface_t *surface,
cairo_write_func_t write_func,
void *closure);