Build with new version of awg lib. Move GoBackend to org.amnezia.vpn.protocol.wireguard package.

This commit is contained in:
albexk 2024-02-12 14:43:13 +03:00
parent f3a168fd43
commit 2b413736a4
5 changed files with 5 additions and 8 deletions

View 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
}