Seeking to an clip in a CMML file
Sometimes you don't want to access all the clips available in a CMML file, but only a specific one. libcmml provides an API for this functionality through the cmml_skip_to_id() function.
The procedure is illustrated in cmml-seek-clip.c, which seeks to a clip of a given name and if found prints out the descriptions of this and all the following clips:
#include <stdio.h>
#define BUFSIZE 100000
static int
return 0;
}
int main(
int argc,
char *argv[])
{
char *filename = NULL;
char *clip_id = NULL;
long n = 0;
if (argc < 2) {
fprintf (stderr, "Usage: %s <CMMLfile> <clipID>\n", argv[0]);
exit (1);
}
filename = argv[1];
clip_id = argv[2];
if (clip_id != NULL) {
}
return 0;
}
int cmml_set_read_callbacks(CMML *cmml, CMMLReadStream read_stream, CMMLReadHead read_head, CMMLReadClip read_clip, void *user_data)
static int read_clip(CMML *cmml, const CMML_Clip *clip, void *user_data)
Definition: cmml-validate.c:189