mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-21 10:19:15 +03:00
platform: Implement set underlying networks for android
This commit is contained in:
@@ -17,6 +17,7 @@ type PlatformInterface interface {
|
||||
StartDefaultInterfaceMonitor(listener InterfaceUpdateListener) error
|
||||
CloseDefaultInterfaceMonitor(listener InterfaceUpdateListener) error
|
||||
GetInterfaces() (NetworkInterfaceIterator, error)
|
||||
SetUnderlyingNetworks(networks RawNetworkIterator) error
|
||||
UnderNetworkExtension() bool
|
||||
IncludeAllNetworks() bool
|
||||
ReadWIFIState() *WIFIState
|
||||
@@ -50,6 +51,8 @@ type NetworkInterface struct {
|
||||
Type int32
|
||||
DNSServer StringIterator
|
||||
Metered bool
|
||||
|
||||
RawNetwork RawNetwork
|
||||
}
|
||||
|
||||
type WIFIState struct {
|
||||
@@ -66,6 +69,11 @@ type NetworkInterfaceIterator interface {
|
||||
HasNext() bool
|
||||
}
|
||||
|
||||
type RawNetworkIterator interface {
|
||||
Next() RawNetwork
|
||||
HasNext() bool
|
||||
}
|
||||
|
||||
type Notification struct {
|
||||
Identifier string
|
||||
TypeName string
|
||||
|
||||
Reference in New Issue
Block a user