You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
667 B
29 lines
667 B
//go:build !linux
|
|
|
|
package serial
|
|
|
|
type platformLineOperations struct{}
|
|
|
|
func (platformLineOperations) Open(path string) (lineDevice, error) {
|
|
file, err := openSerialDevice(path)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return file, nil
|
|
}
|
|
|
|
func (platformLineOperations) Snapshot(lineDevice) (any, error) {
|
|
return nil, ErrUnsupportedPlatform
|
|
}
|
|
|
|
func (platformLineOperations) Apply(lineDevice, LineConfig) error {
|
|
return ErrUnsupportedPlatform
|
|
}
|
|
|
|
func (platformLineOperations) Read(lineDevice, string) (LineConfig, error) {
|
|
return LineConfig{}, ErrUnsupportedPlatform
|
|
}
|
|
|
|
func (platformLineOperations) Restore(lineDevice, any) error {
|
|
return ErrUnsupportedPlatform
|
|
}
|
|
|