Skip to content

Commit

Permalink
Add a func
Browse files Browse the repository at this point in the history
  • Loading branch information
kitech committed Mar 22, 2019
1 parent 7d74790 commit c483489
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qtandroidextras/mod_qclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ type JNIEnv struct {
cthis unsafe.Pointer
}

func (this *JNIEnv) GetCthis() unsafe.Pointer { return this.cthis }

func (this *QAndroidJniEnvironment) JNIEnv() *JNIEnv {
rv, err := qtrt.InvokeQtFunc6("C_ZNK22QAndroidJniEnvironmentcvP7_JNIEnvEv",
qtrt.FFI_TYPE_POINTER, this.GetCthis())
Expand Down

0 comments on commit c483489

Please sign in to comment.