2016-02-12 18:50:33 +01:00
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
2025-02-15 19:23:24 -05:00
|
|
|
package java
|
2016-02-12 18:50:33 +01:00
|
|
|
|
|
|
|
|
// #cgo LDFLAGS: -llog
|
|
|
|
|
//
|
|
|
|
|
//#include <jni.h>
|
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"unsafe"
|
|
|
|
|
|
2026-01-15 11:17:24 +01:00
|
|
|
"github.com/netbirdio/gomobile-tvos-fork/internal/mobileinit"
|
2016-02-12 18:50:33 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//export setContext
|
|
|
|
|
func setContext(vm *C.JavaVM, ctx C.jobject) {
|
2018-04-30 18:32:58 +02:00
|
|
|
mobileinit.SetCurrentContext(unsafe.Pointer(vm), uintptr(ctx))
|
2016-02-12 18:50:33 +01:00
|
|
|
}
|