refactor: rename files

This commit is contained in:
lilong.129
2025-02-06 19:53:47 +08:00
parent 0e5eb8b303
commit 5707715d19
10 changed files with 51 additions and 50 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ import (
type hdcDriver struct {
points []ExportPoint
Driver
DriverClient
device *ghdc.Device
uiDriver *ghdc.UIDriver
}
@@ -42,7 +42,7 @@ func newHarmonyDriver(device *ghdc.Device) (driver *hdcDriver, err error) {
}
func (hd *hdcDriver) NewSession(capabilities option.Capabilities) (SessionInfo, error) {
hd.Driver.session.Reset()
hd.DriverClient.session.Reset()
hd.Unlock()
return SessionInfo{}, errDriverNotImplemented
}
@@ -52,7 +52,7 @@ func (hd *hdcDriver) DeleteSession() error {
}
func (hd *hdcDriver) GetSession() *DriverSession {
return &hd.Driver.session
return &hd.DriverClient.session
}
func (hd *hdcDriver) Status() (DeviceStatus, error) {