Neonode zForce(TM) SDK
CoreDevice.h
Go to the documentation of this file.
1 
11 #if !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) && !defined(CONTAINS_COREDEVICE)
12 
13 #ifndef ZFORCECOMMON_H
14  #error Please include "zForceCommon.h" before this file.
15 #endif // ZFORCECOMMON_H
16 
24 struct CoreDevice
25 {
26 #endif // !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) && !defined(CONTAINS_COREDEVICE)
27 #if !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) || defined(CONTAINS_COREDEVICE)
28  #define CONTAINS_SENSORDEVICE
29  #include <SensorDevice.h>
30  #undef CONTAINS_SENSORDEVICE
31 #endif // !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) || defined(CONTAINS_COREDEVICE)
32 #if !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) && !defined(CONTAINS_COREDEVICE)
33 };
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif // __cplusplus
39 
54 DLLINTERNAL CoreDevice * CoreDevice_New (Connection * connection,
55  DeviceType deviceType,
56  uint32_t deviceIndex, size_t size);
57 
58 #ifdef __cplusplus
59 }
60 #endif // __cplusplus
61 
62 #define DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H
63 #endif // !defined(DEVICE_SENSORDEVICE_COREDEVICE_COREDEVICE_H) && !defined(CONTAINS_COREDEVICE)
64 
Struct representing a CoreDevice.
Definition: CoreDevice.h:24
The main Connection struct.
Definition: Connection.h:64
Handles requests to the SensorDevice, a meta device.
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:86
DLLINTERNAL CoreDevice * CoreDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a new CoreDevice.