Adding multi device support

This commit is contained in:
2025-12-06 22:26:03 +00:00
parent 9cab522c06
commit c23441908f
9 changed files with 188 additions and 4 deletions
+35
View File
@@ -0,0 +1,35 @@
package devices
import helper "esdi/helpers"
const (
newWindowCMDID = iota
destroyWindowCMDID
)
var CDashDisplay = Device{
ID: CDashDisplayDevID,
Name: helper.B32("ESLabs CDashDisplay"),
API: map[string]DeviceCMD{
"new-window": {
Identifier: newWindowCMDID,
Name: "new-window",
Desc: "Creates a new window - pass the window name and dimensions",
Fn: createWindow,
},
"destroy-window": {
Identifier: destroyWindowCMDID,
Name: "destroy-window",
Desc: "Destroys a window by its ID",
Fn: destroyWindow,
},
},
}
func createWindow(data []byte) {
// Parse the command
}
func destroyWindow(data []byte) {
// Parse the command
}