mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Drivers: Decouple from devices
This allows us to better implement alternative drivers for devices, such as for device sharing servers or talking to CoreMini processors within the same device.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
namespace icsneo {
|
||||
|
||||
class Device;
|
||||
class FoundDevice;
|
||||
|
||||
}
|
||||
typedef icsneo::Device* devicehandle_t;
|
||||
@@ -20,7 +21,13 @@ typedef int32_t neodevice_handle_t;
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef struct neodevice_t {
|
||||
neodevice_t();
|
||||
neodevice_t(const icsneo::FoundDevice& found, devicetype_t inType);
|
||||
#else
|
||||
typedef struct {
|
||||
#endif
|
||||
devicehandle_t device; // Pointer back to the C++ device object
|
||||
neodevice_handle_t handle; // Handle for use by the underlying driver
|
||||
devicetype_t type;
|
||||
|
||||
Reference in New Issue
Block a user