The traceparser_cs_range() function attaches one callback function, given by the pointer funcptr, to a range of events from firstevent through to lastevent inclusive, from one particular class. The user data (userdata) is passed to the registered callback function (funcptr) upon execution. The stateptr is an opaque structure obtained from
traceparser_init().