vendredi 8 mai 2015

How to pass a structure as an argument to java function or return to java from jni

I have two questions Say I have some structure in jni say

struct X
{
    Type_A x;
    Type_B y;
}

Now how do I?

  1. Pass this structure as an argument to a java call back function
  2. How do I return this structure to a Java function.

If possible, please give an example.

Aucun commentaire:

Enregistrer un commentaire