[Previous] [Contents] [Index] [Next]

PtRemoveWidgetData()

Remove data from the widget data chain

Synopsis:

int PtRemoveWidgetData( 
        PtWidget_t *widget, 
        PtWidgetClassRef_t *type, 
        long subtype );

Description:

This function removes a piece of data from the widget data chain and frees the memory allocated for the data.

The widget argument points to the widget whose chain the data should be removed from. The type is the class of the widget removing the data. The subtype is used to discriminate between multiple blocks of data added by the same widget class.

Returns:

0 if the data was found and released; -1 if it couldn't be found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddWidgetData(), PtFindWidgetData(), PtFindNextWidgetData()


[Previous] [Contents] [Index] [Next]