refactor: DriverSession

This commit is contained in:
lilong.129
2025-02-17 17:08:24 +08:00
parent c8d776009c
commit 29c0e1cbef
16 changed files with 377 additions and 396 deletions

View File

@@ -34,16 +34,13 @@ func NewHDCDriver(device *HarmonyDevice) (*HDCDriver, error) {
type HDCDriver struct {
Device *HarmonyDevice
Session *Session
Session *DriverSession
points []ExportPoint
uiDriver *ghdc.UIDriver
}
func (hd *HDCDriver) InitSession(capabilities option.Capabilities) error {
hd.Session = &Session{}
hd.Session.Reset()
hd.Unlock()
return nil
}
@@ -51,7 +48,7 @@ func (hd *HDCDriver) DeleteSession() error {
return types.ErrDriverNotImplemented
}
func (hd *HDCDriver) GetSession() *Session {
func (hd *HDCDriver) GetSession() *DriverSession {
return hd.Session
}