tfDeviceClearPointer
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| void * tfDeviceClearPointer | (ttUserInterface interfaceHandle); |
Function Description
tfDeviceClearPointer() will clear the association created by tfDeviceStorePointer() between the interface handle, and the device specific structure allocated in the device driver open function. Call tfDeviceClearPointer() from the driver close function, and then, if the pointer returned by tfDeviceClearPointer() is non-null, free it.
Parameters
- interfaceHandle
- Interface ID as returned by tfAddInterface().
Returns
- Non-zero (void *)
- Success. Pointer to the device driver parameter.
- NULL (void *)
- No associated device driver pointer on this interface.
| See also tfDeviceGetPointer() and tfDeviceStorePointer(). |