|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Add an event handler to an application's callback list
void PtAppAddEventHandler( unsigned long event_mask, int (*func)(void *,PtCallbackInfo_t *), void *data);
- The event type that causes the application to invoke the event handler func.
- A pointer to the event handler function you want to add. The function takes this form: int (*func)(void *,PtCallbackInfo_t *).
- A pointer to data that you want to pass as the second argument to the function.
This function adds an event handler to the application's Pt_CB_RAW callback list. The application invokes this handler whenever an event type that matches one of the bits in event_mask intersects with the application .
For more information, see the Manipulating Resources in Application Code chapter of the Photon Programmer's Guide.
“Event handlers” in the Managing Widgets in Application Code chapter of the Photon Programmer's Guide