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.

This commit is contained in:
Carl Worth 2005-06-10 23:47:23 +00:00
parent 4c37790a22
commit ff2dee65bd
2 changed files with 15 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2005-06-10 Carl Worth <cworth@cworth.org>
* 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.
2005-06-10 Carl Worth <cworth@cworth.org>
* ROADMAP: Add 'consistent error handling' to 1.0 roadmap. (This

View file

@ -825,14 +825,16 @@ cairo_get_target (cairo_t *cr);
* 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 {