Files
Archive/nekobox-android/libcore/platform_java.go
2025-02-26 19:35:44 +01:00

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
}