How should I write the .i file to wrap callbacks in Java or C#
You can do this if you have a chance to pass some data around with the callback, but you’ll need to write some JNI glue. I put together a complete example of how you might map C style callbacks onto a Java interface. The first thing you need to do is decide on an interface … Read more