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

PtFindWidgetData()

Find the first widget data block of a given type and subtype

Synopsis:

void * PtFindWidgetData( 
           PtWidget_t *widget, 
           PtWidgetClassRef_t *type, 
           long subtype, 
           PtDataHdr_t **_node );

Arguments:

widget
A pointer to the widget that you want to search.
type
The type of data to seek. If type is NULL, any type matches.
subtype
The subtype of data to seek. If subtype is -1, any subtype matches.
_node
If you provide this argument, it's set to point to the widget data_node that contained the returned data, so you can continue the search from that node.

Description:

This function finds the first widget data block that matches the type and subtype provided.

Returns:

A void pointer to the widget data, or NULL if it wasn't found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddWidgetData(), PtFindNextWidgetData(), PtRemoveWidgetData()