mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-10 02:29:33 +00:00
Created rules_for_adding_new_device_types (markdown)
parent
9a7dea742f
commit
404592a053
9
rules_for_adding_new_device_types.md
Normal file
9
rules_for_adding_new_device_types.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
Before adding a new device check that non of the existing devices is appropriate.
|
||||
|
||||
Steps for adding a new device:
|
||||
|
||||
1. Add the device type to the PbDeviceType enum of the protobuf definition
|
||||
2. Add code for creating your device to the DeviceFactory class. The device instance and all devices-specific properties have to be created by this class.
|
||||
3. Add code handle the device properties to the RascsiReponse class.
|
||||
4. Add the device-specific implementation in new .cpp/.h files.
|
||||
5. Update the manpages.
|
Loading…
Reference in New Issue
Block a user