cpml: add cpml_primitive_type() API
commit476f442cdc8287993d3cbb0aeebf0321806e2588
authorNicola Fontana <ntd@entidi.it>
Thu, 5 Jan 2017 14:05:43 +0000 (5 15:05 +0100)
committerNicola Fontana <ntd@entidi.it>
Thu, 5 Jan 2017 14:05:43 +0000 (5 15:05 +0100)
treec631579c7c50632e4275eed53428921f4950df8a
parentb422bebe3321e19e1f837fa3a282830ebbe2243a
cpml: add cpml_primitive_type() API

A new function for getting the type of a CpmlPrimitive. Although not
strictly needed in C (you can use primitive->data[0].header.type), it
could be useful on for language bindings.
src/cpml/cpml-primitive.c
src/cpml/cpml-primitive.h
src/cpml/tests/test-primitive.c