Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 8

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 110

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/traceparser_cs.html on line 110