![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Add data to the widget data chain
int PtAddWidgetData( PtWidget_t *widget, 
                     PtWidgetClassRef_t *type, 
                     long subtype, 
                     void *data );
This function adds a piece of data to the widget data chain. The data provided must be in a block of memory allocated by malloc() (see the QNX Neutrino Library Reference).
You can retrieve this data by calling PtFindWidgetData() or PtFindNextWidgetData().
0 on success; -1 if an error occurred (e.g. out of memory).
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtFindWidgetData(), PtFindNextWidgetData(), PtRemoveWidgetData()
![]()  | 
![]()  | 
![]()  | 
![]()  |