Neonode zForce(TM) SDK

LightingDevice.h
Go to the documentation of this file.
1
11 #ifndef DEVICE_LIGHTINGDEVICE_LIGHTINGDEVICE_H
12 #define DEVICE_LIGHTINGDEVICE_LIGHTINGDEVICE_H 1
13
14 #ifndef ZFORCECOMMON_H
15 #error Please include "zForceCommon.h" before this file.
16 #endif // ZFORCECOMMON_H
17
23 struct LightingDevice
24 {
25 zForce * zForce;
26 Connection * Connection;
27 DeviceType DeviceType;
28 uint32_t DeviceIndex;
29 Device ** StorageDevices;
30 uint32_t NumberOfStorageDevices;
31 void * PrivateProtocolData;
43 void ( * Destructor)(Device * self);
44 };
45
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif // __cplusplus
50
66 DLLINTERNAL LightingDevice * LightingDevice_New (Connection * connection, DeviceType deviceType,
67 uint32_t deviceIndex, size_t size);
68
69 #ifdef __cplusplus
70 }
71 #endif // __cplusplus
72
73 #endif // DEVICE_LIGHTINGDEVICE_LIGHTINGDEVICE_H
LightingDevice_New
DLLINTERNAL LightingDevice * LightingDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a LightingDevice.
Connection
The main Connection struct.
Definition: Connection.h:66
Device
Device base class.
Definition: Device.h:26
LightingDevice
Struct representing a LightingDevice.
Definition: LightingDevice.h:24
LightingDevice::Connection
Connection * Connection
The Connection this Device is part of.
Definition: LightingDevice.h:26
LightingDevice::zForce
zForce * zForce
Pointer to zForce.
Definition: LightingDevice.h:25
LightingDevice::DeviceType
DeviceType DeviceType
Which type of Device this is.
Definition: LightingDevice.h:27
LightingDevice::Destructor
void(* Destructor)(Device *self)
Destructor.
Definition: LightingDevice.h:43
LightingDevice::DeviceIndex
uint32_t DeviceIndex
Which Device Index this device has.
Definition: LightingDevice.h:28
LightingDevice::NumberOfStorageDevices
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: LightingDevice.h:30
LightingDevice::PrivateProtocolData
void * PrivateProtocolData
Private Protocol Data.
Definition: LightingDevice.h:31
LightingDevice::StorageDevices
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: LightingDevice.h:29
zForce
Main struct.
Definition: zForce.h:29
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:90