refactor android ffi

This commit is contained in:
rustdesk
2024-04-15 15:20:27 +08:00
parent 0dba37f4f7
commit cdd92303b8
3 changed files with 25 additions and 22 deletions

View File

@@ -0,0 +1,19 @@
// ffi.kt
package ffi
import android.content.Context
import java.nio.ByteBuffer
init {
System.loadLibrary("rustdesk")
}
external fun init(ctx: Context)
external fun startServer(app_dir: String)
external fun startService()
external fun onVideoFrameUpdate(buf: ByteBuffer)
external fun onAudioFrameUpdate(buf: ByteBuffer)
external fun translateLocale(localeName: String, input: String): String
external fun refreshScreen()
external fun setFrameRawEnable(name: String, value: Boolean)