Contains fields for client user data. More...
#include <pt_api.h>
Data Fields | |
void * | data |
pt_device_free_userdata_cb_t | pt_device_free_userdata |
Contains fields for client user data.
If the client wants to associate data with the device, this structure may be used. Create this structure using pt_api_create_device_userdata. The PT API will deallocate this structure and call the pt_device_free_userdata call-back when the pt_device_t structure is destroyed. However the client is responsible to free the pt_device_userdata_t::data using the pt_device_userdata_t::pt_device_free_userdata call-back or in some other way.
void* pt_device_userdata_s::data |
Pointer to client's data that may be associated with the device.
pt_device_free_userdata_cb_t pt_device_userdata_s::pt_device_free_userdata |
Points to customer implementation to free the userdata.