Remove data from the widget data chain
int PtRemoveWidgetData( PtWidget_t *widget, PtWidgetClassRef_t *type, long subtype );
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.
0 if the data was found and released; -1 if it couldn't be found.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtAddWidgetData(), PtFindWidgetData(), PtFindNextWidgetData()