mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
23 lines
674 B
Go
23 lines
674 B
Go
package libcore
|
|
|
|
var intfBox BoxPlatformInterface
|
|
var intfNB4A NB4AInterface
|
|
|
|
var useProcfs bool
|
|
var isBgProcess bool
|
|
|
|
type NB4AInterface interface {
|
|
UseOfficialAssets() bool
|
|
Selector_OnProxySelected(selectorTag string, tag string)
|
|
}
|
|
|
|
type BoxPlatformInterface interface {
|
|
AutoDetectInterfaceControl(fd int32) error
|
|
OpenTun(singTunOptionsJson, tunPlatformOptionsJson string) (int, error)
|
|
UseProcFS() bool
|
|
FindConnectionOwner(ipProtocol int32, sourceAddress string, sourcePort int32, destinationAddress string, destinationPort int32) (int32, error)
|
|
PackageNameByUid(uid int32) (string, error)
|
|
UIDByPackageName(packageName string) (int32, error)
|
|
WIFIState() string
|
|
}
|