![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Attach a callback
#include <traceparser.h> int traceparser_cs ( struct traceparser_state * stateptr, void * userdata, tracep_callb_func_t funcptr, unsigned class, unsigned event );
libtraceparser
The traceparser_cs() function attaches one callback function, specified by the pointer funcptr, to one particular event, from one particular class. The user data (userdata) is passed to the attached callback function upon execution. The stateptr is an opaque structure obtained from traceparser_init().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
traceparser_get_info(), traceparser_init()
![]() |
![]() |
![]() |
![]() |