27 lines
458 B
Go
27 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")
|
||
|
}
|