[cairo-commit] cairo/src cairo.h,1.124,1.125

Carl Worth commit at pdx.freedesktop.org
Fri Jun 10 23:47:27 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv22366/src

Modified Files:
	cairo.h 
Log Message:

        * src/cairo.h: Pull the enum out from inside cairo_path_data_t and
        give it a name of cairo_path_data_type_t. This allows C++ programs
        to see the enum values. It also allows variables to be declared of
        this type for manually constructing a cairo_path_t.


Index: cairo.h
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.h,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- cairo.h	9 Jun 2005 19:27:06 -0000	1.124
+++ cairo.h	11 Jun 2005 06:47:25 -0000	1.125
@@ -825,14 +825,16 @@
  *	cairo_path_destroy (path);
  * </programlisting></informalexample>
  */
+typedef enum cairo_path_data_type {
+    CAIRO_PATH_MOVE_TO,
+    CAIRO_PATH_LINE_TO,
+    CAIRO_PATH_CURVE_TO,
+    CAIRO_PATH_CLOSE_PATH
+} cairo_path_data_type_t;
+
 typedef union {
     struct {
-	enum {
-	    CAIRO_PATH_MOVE_TO,
-	    CAIRO_PATH_LINE_TO,
-	    CAIRO_PATH_CURVE_TO,
-	    CAIRO_PATH_CLOSE_PATH
-	} type;
+	cairo_path_data_type_t type;
 	int length;
     } header;
     struct {




More information about the cairo-commit mailing list