|void * tfDeviceGetPointer||(ttUserInterface interfaceHandle);|
Call tfDeviceGetPointer() in any device driver function, to retrieve the pointer to the device specific structure allocated, and stored (with the tfDeviceStorePointer() API) in the device driver open function.
This macro has the same functionality as tfDeviceGetPointer(). It allows the user to avoid a function call in order to get the device driver pointer. In that case the following header files need to be included:
#include <trsocket.h> #include <trmacro.h> #include <trtype.h> #include <trproto.h> #include <trglobal.h>
- Interface ID as returned by tfAddInterface().
- Non-zero (void *)
- NULL (void *)
- No pointer was stored on the interface.
|Note:||See also tfDeviceClearPointer() and tfDeviceStorePointer().|