libcmml
0.9.1
|
Reading from a CMML file
libcmml provides a convenient callback based framework for reading CMML files. After opening a CMML file for reading, you can attach various callbacks relevant to the parts of the file you are interested in, including the stream element, head element, and clip elements. Then, as bytes are read, libcmml will call your callbacks as appropriate.
The functions that need to be called and the respective data structures are defined in cmml.h.
The general sequence of API calls is the following:
This procedure is illustrated in cmml-parse.c, which prints the title attribute of a CMML tag :