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 
24 {
28  uint32_t DeviceIndex;
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
DLLINTERNAL LightingDevice * LightingDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a LightingDevice.
The main Connection struct.
Definition: Connection.h:66
Device base class.
Definition: Device.h:26
Struct representing a LightingDevice.
Definition: LightingDevice.h:24
Connection * Connection
The Connection this Device is part of.
Definition: LightingDevice.h:26
zForce * zForce
Pointer to zForce.
Definition: LightingDevice.h:25
DeviceType DeviceType
Which type of Device this is.
Definition: LightingDevice.h:27
void(* Destructor)(Device *self)
Destructor.
Definition: LightingDevice.h:43
uint32_t DeviceIndex
Which Device Index this device has.
Definition: LightingDevice.h:28
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: LightingDevice.h:30
void * PrivateProtocolData
Private Protocol Data.
Definition: LightingDevice.h:31
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: LightingDevice.h:29
Main struct.
Definition: zForce.h:29
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:90