Exclude gVisor for unsupported arch

This commit is contained in:
世界
2022-07-17 11:16:13 +08:00
parent 4094c94971
commit cf845d946e
6 changed files with 77 additions and 5 deletions

22
route/iface.go Normal file
View File

@@ -0,0 +1,22 @@
package route
import "github.com/sagernet/sing/common/x/list"
type (
NetworkUpdateCallback = func() error
DefaultInterfaceUpdateCallback = func()
)
type NetworkUpdateMonitor interface {
Start() error
Close() error
RegisterCallback(callback NetworkUpdateCallback) *list.Element[NetworkUpdateCallback]
UnregisterCallback(element *list.Element[NetworkUpdateCallback])
}
type DefaultInterfaceMonitor interface {
Start() error
Close() error
DefaultInterfaceName() string
DefaultInterfaceIndex() int
}