I have a function call:
long foo(mystruct **list)
where the definition of mystruct
is
typedef struct {
otherstruct *bar[64];
} mystruct;
and I'm trying to get at the (JNA) Structure[] corresponding to bar. My current function definition is int foo(PointerByReference list);
since that's what a pointer to a pointer is, but I can't figure out how to get the Structure[].
In C, the code is used as follows:
mystruct *list;
foo(&list);
for (i=0; i<64; i++)
doStuff(list->bar[i]);