devicepath/end.go
Melora Hugues 54794b57a4
All checks were successful
continuous-integration/drone/push Build is passing
add beginning of parser
2023-08-27 15:09:30 +02:00

26 lines
458 B
Go

package devicepath
import "errors"
type FinalDevicePath struct {
}
func (fp *FinalDevicePath) Type() DeviceNodeType {
return EndOfHardwareDevicePath
}
func (fp *FinalDevicePath) SubType() DeviceNodeSubType {
return EndOfEntireDevicePath
}
func (fp *FinalDevicePath) Bytes() []byte {
return nil
}
func (fp *FinalDevicePath) String() string {
return ""
}
func (fp *FinalDevicePath) ParseString(raw string) error {
return errors.New("unparsable")
}