diff options
author | Kristian Høgsberg <krh@redhat.com> | 2005-04-25 21:36:38 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2005-04-25 21:36:38 +0000 |
commit | 28e7bbea652efa58b28217bd0cdfe2599a6ae7c7 (patch) | |
tree | dcfb42dbb2e3dcd4dce3d3ae0eca6d4b7ffee3b3 /src | |
parent | 87009d692b5a37fc91db19819c46216ed6b3c4e3 (diff) |
Renamed from cairo_surface_write_png_to_stream() for consistency. (cairo_surface_write_to_png): Renamed from cairo_surface_write_png() for consistency.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-png.c | 9 | ||||
-rw-r--r-- | src/cairo.h | 6 |
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); |