![]() |
![]() |
![]() |
![]() |
traceparser_cs_range()
Attach a callback to a range of events
Synopsis:
#include <traceparser.h> int traceparser_cs_range ( struct traceparser_state * stateptr, void * userdata, tracep_callb_func_t funcptr, unsigned class, unsigned firstevent, unsigned lastevent );
Library:
libtraceparser
Description:
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().
Returns:
- 0
- Success; a pointer to the list of events.
- -1
- Failure; errno is set. See also traceparser_get_info() for further details
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
traceparser_get_info(), traceparser_init()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)