[cairo-commit] src/cairo.c src/cairo.h src/cairo-path-data.c src/cairo-path-data-private.h

Carl Worth cworth at kemper.freedesktop.org
Mon Nov 20 09:36:55 PST 2006


 src/cairo-path-data-private.h |    4 ++--
 src/cairo-path-data.c         |    4 ++--
 src/cairo.c                   |    4 ++--
 src/cairo.h                   |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

New commits:
diff-tree e5bd21136cc43f569cdf424d2fd47d8298b53fb6 (from 10920c1326362b4fadfa01019223647c23351127)
Author: Carl Worth <cworth at cworth.org>
Date:   Mon Nov 20 09:32:00 2006 -0800

    Add const qualifier to cairo_path_t* parameter of cairo_append_path

diff --git a/src/cairo-path-data-private.h b/src/cairo-path-data-private.h
index 7971c63..a7ec92e 100644
--- a/src/cairo-path-data-private.h
+++ b/src/cairo-path-data-private.h
@@ -52,7 +52,7 @@ cairo_private cairo_path_t *
 _cairo_path_data_create_in_error (cairo_status_t status);
 
 cairo_private cairo_status_t
-_cairo_path_data_append_to_context (cairo_path_t *path,
-				    cairo_t	 *cr);
+_cairo_path_data_append_to_context (const cairo_path_t	*path,
+				    cairo_t		*cr);
 
 #endif /* CAIRO_PATH_DATA_PRIVATE_H */
diff --git a/src/cairo-path-data.c b/src/cairo-path-data.c
index 0a38496..0666aa8 100644
--- a/src/cairo-path-data.c
+++ b/src/cairo-path-data.c
@@ -454,8 +454,8 @@ _cairo_path_data_create_flat (cairo_path
  * is invalid, and CAIRO_STATUS_SUCCESS otherwise.
  **/
 cairo_status_t
-_cairo_path_data_append_to_context (cairo_path_t *path,
-				    cairo_t	 *cr)
+_cairo_path_data_append_to_context (const cairo_path_t	*path,
+				    cairo_t		*cr)
 {
     int i;
     cairo_path_data_t *p;
diff --git a/src/cairo.c b/src/cairo.c
index bd1fe8b..15230ed 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -3080,8 +3080,8 @@ cairo_copy_path_flat (cairo_t *cr)
  * initialized to %CAIRO_STATUS_SUCCESS.
  **/
 void
-cairo_append_path (cairo_t	*cr,
-		   cairo_path_t *path)
+cairo_append_path (cairo_t		*cr,
+		   const cairo_path_t	*path)
 {
     if (cr->status)
 	return;
diff --git a/src/cairo.h b/src/cairo.h
index a53a8b8..1b599d5 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -1237,8 +1237,8 @@ cairo_public cairo_path_t *
 cairo_copy_path_flat (cairo_t *cr);
 
 cairo_public void
-cairo_append_path (cairo_t	*cr,
-		   cairo_path_t *path);
+cairo_append_path (cairo_t		*cr,
+		   const cairo_path_t	*path);
 
 cairo_public void
 cairo_path_destroy (cairo_path_t *path);


More information about the cairo-commit mailing list