tfDeviceGetPointer
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| void * tfDeviceGetPointer | (ttUserInterface interfaceHandle); |
Function Description
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.
tm_device_get_pointer()
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>
Parameters
- interfaceHandle
- Interface ID as returned by tfAddInterface().
Returns
- Non-zero (void *)
- Success.
- NULL (void *)
- No pointer was stored on the interface.
| See also tfDeviceClearPointer() and tfDeviceStorePointer(). |