Operating systems, development tools, and professional services
for connected embedded systems

Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation

PtGetCallbackList

PtGetCallbackList()

Get a callback list

Synopsis:

void *PtGetCallbackList( PtWidget_t *widget,
                         long cb_type );

Arguments:

widget
The widget pointer to get the callback list from.
cb_type
The callback list type to return.

Description:

This function returns the requested callback list of cb_type.

Returns:

A pointer to a PtCallbackList_t if the callback list type exists, NULL otherwise.

Examples:

PtCallbackList_t *cb;
if( (cb = PtGetCallbackList( widget, Pt_CB_ARM) ) {
    // do the work to create and fill in the callback data
   ...
   PtInvokeCallbackList( cb, widget, &cbinfo );
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtInvokeCallbackList(), PtInvokeCallbackType().

PtCallbackInfo_t in the Photon Widget Reference