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.