mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-29 20:19:56 +00:00
18 lines
492 B
Go
18 lines
492 B
Go
//go:build freebsd
|
|
|
|
package server
|
|
|
|
import "fmt"
|
|
|
|
// UInputInjector is a freebsd placeholder; the linux uinput implementation
|
|
// uses Linux-only ioctls (UI_DEV_CREATE etc.) and is not portable.
|
|
type UInputInjector struct {
|
|
StubInputInjector
|
|
}
|
|
|
|
// NewUInputInjector always returns an error on freebsd so callers fall back
|
|
// to a stub or platform-appropriate injector.
|
|
func NewUInputInjector(_, _ int) (*UInputInjector, error) {
|
|
return nil, fmt.Errorf("uinput not implemented on freebsd")
|
|
}
|