summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/cairo-png.c9
-rw-r--r--src/cairo.h6
3 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 8706214d6..a2bdeea90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-26 Kristian Høgsberg <krh@redhat.com>
+
+ * src/cairo-png.c (cairo_surface_write_to_png_stream): Renamed
+ from cairo_surface_write_png_to_stream() for consistency.
+ (cairo_surface_write_to_png): Renamed from
+ cairo_surface_write_png() for consistency.
+
2005-04-25 Kristian Høgsberg <krh@redhat.com>
* src/cairo-png.c (cairo_surface_write_png): Factor out bulk of
diff --git a/src/cairo-png.c b/src/cairo-png.c
index db6c1c02b..e5df7238e 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 8e448a9d8..cf70a27b8 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);