cpml: make CpmlPrimitiveType an alias for cairo_path_data_type_t
commit8e889d73ff5431c439ca4416703916948981069a
authorNicola Fontana <ntd@entidi.it>
Sat, 7 Feb 2015 18:11:09 +0000 (7 19:11 +0100)
committerNicola Fontana <ntd@entidi.it>
Sat, 7 Feb 2015 18:19:47 +0000 (7 19:19 +0100)
tree0e2b05a0180aeae047126dc2e90bf5aa92735c3f
parent339875d4afdf237033f392d71dfdafe0af6182c3
cpml: make CpmlPrimitiveType an alias for cairo_path_data_type_t

Previously CpmlPrimitiveType was an enum on its own. This triggered any
kind of warning when using CpmlPrimitive on a cairo_path_data_type_t
variable and vice versa.

Removed the custom enum and used a combination of macro/typedef to
reach a similar effect but having both types interchangeable. Manually
defined the GObject wrapper to have the same type exported to
gobject-introspection.
src/adg/adg-path.c
src/adg/adg-trail.c
src/cpml/cpml-gobject.c
src/cpml/cpml-gobject.h
src/cpml/cpml-primitive.c
src/cpml/cpml-primitive.h
src/cpml/cpml-segment.c