From 28e7bbea652efa58b28217bd0cdfe2599a6ae7c7 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 25 Apr 2005 21:36:38 +0000 Subject: Renamed from cairo_surface_write_png_to_stream() for consistency. (cairo_surface_write_to_png): Renamed from cairo_surface_write_png() for consistency. --- src/cairo-png.c | 9 +++++---- src/cairo.h | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') 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); -- cgit v1.2.3