Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

traceparser_cs()

Attach a callback to an event

Synopsis:

#include <traceparser.h>

int traceparser_cs ( 
   struct traceparser_state * stateptr, 
   void * userdata,
   tracep_callb_func_t funcptr, 
   unsigned class, 
   unsigned event );

Library:

libtraceparser

Description:

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().

Returns:

0
Success; a pointer to the event
-1
Failure; errno is set. See also traceparser_get_info() for further details.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

traceparser_get_info(), traceparser_init()