[gegl] Use a typedef for the prototype of the function passed to gegl_path_add_flattener(). Fix bug #582805



commit 91a6bb6c6fac7fd7d312d68f8e0bf6c46c526d33
Author: Hubert Figuiere <hub figuiere net>
Date:   Fri May 15 14:22:13 2009 -0400

    Use a typedef for the prototype of the function passed to gegl_path_add_flattener(). Fix bug #582805.
---
 ChangeLog                       |    5 +++++
 gegl/property-types/gegl-path.h |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7d1d04a..be4bf4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-05-15  Hubert Figuiere  <hub figuiere net>
 
+	Use a typedef for the prototype of the function passed to 
+	gegl_path_add_flattener(). Fix bug #582805.
+	
+	* gegl/property-types/gegl-path.h:
+
 	Add G_BEGIN_DECLS and G_END_DECLS to gegl-buffer.h
 
 	* gegl/buffer/gegl-buffer.h
diff --git a/gegl/property-types/gegl-path.h b/gegl/property-types/gegl-path.h
index 4ca53a8..1337306 100644
--- a/gegl/property-types/gegl-path.h
+++ b/gegl/property-types/gegl-path.h
@@ -428,12 +428,16 @@ GeglPathList       * gegl_path_list_append    (GeglPathList *head, ...);
 /* frees up a path list */
 GeglPathList       * gegl_path_list_destroy   (GeglPathList *path);
 
+
+/* prototype of function passed to gegl_path_add_flattener() */
+typedef GeglPathList *(*GeglFlattenerFunc) (GeglPathList *original);
+
 /* Add a new flattener, the flattener should produce a type of path that
  * GeglPath already understands, if the flattener is unable to flatten
  * the incoming path (doesn't understand the instructions), the original
  * path should be returned.
  */
-void gegl_path_add_flattener (GeglPathList *(*func) (GeglPathList *original));
+void gegl_path_add_flattener (GeglFlattenerFunc func);
 
 
 G_END_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]