While Pointer will work, as Stephen said "int[]" would be a more
precise mapping (and less error-prone).
Pointer should generally be used as a last resort, or where a "void*"
is representing an opaque object. typedef'd pointers are better
represented by a subclass of PointerType.
On Nov 28, 2007, at 9:16 AM, Glick, Gene (GE Indust, Security) wrote:
After posting my question, the answer, I think, came to me. In JNA
style it should be
int someFunct(Pointer bob);
I'm converting a C header file to JNA. It contains the prototypes
and structures for a .dll file,
-----Original Message-----
From: Stephen Connolly [mailto:step...@gmail.com]
Sent: Tuesday, November 27, 2007 6:18 PM
To: use...@jna.dev.java.net
Subject: Re: [jna-users] help c prototype to jni
If that's really C then it's equivalent to
int someFunct(int bob[]);
which is the same as
int somFunct(int *bob);
On Nov 27, 2007 8:46 PM, Glick, Gene (GE Indust, Security) <
gene...@ge.com> wrote:
how does the following line of C convert to jna?
int someFunct(int bob[4]);
thanks in advance
gene