Created
May 6, 2018 11:22
-
-
Save alexcohn/dab19f6f836483545fcb47918a2af4c8 to your computer and use it in GitHub Desktop.
code sample for https://stackoverflow.com/questions/50164786/jni-call-c-method-from-java-using-void-pointers: Java side
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.thunks | |
public class SomeClass { | |
private long m_nativeCallback; | |
public native void callback(int arg1, long arg2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment