Build with new version of awg lib. Move GoBackend to org.amnezia.vpn.protocol.wireguard package.
This commit is contained in:
parent
f3a168fd43
commit
2b413736a4
5 changed files with 5 additions and 8 deletions
10
client/android/wireguard/src/main/kotlin/GoBackend.kt
Normal file
10
client/android/wireguard/src/main/kotlin/GoBackend.kt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package org.amnezia.vpn.protocol.wireguard
|
||||
|
||||
object GoBackend {
|
||||
external fun wgGetConfig(handle: Int): String?
|
||||
external fun wgGetSocketV4(handle: Int): Int
|
||||
external fun wgGetSocketV6(handle: Int): Int
|
||||
external fun wgTurnOff(handle: Int)
|
||||
external fun wgTurnOn(ifName: String, tunFd: Int, settings: String): Int
|
||||
external fun wgVersion(): String
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue