-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typedef capablities within jnaerator #273
Comments
I've just extend my test/example so I am now wrapping the following typedef struct { struct VixDiskLibConnectParam; long VixDiskLib_Connect(const VixDiskLibConnectParams *connectParams, VixDiskLibConnection *connection); long VixDiskLib_Disconnect(VixDiskLibConnection connection); The output end up as
As you can see, VixDiskLibConnection is correctly used within the def of the second function (but not the first) also as part of the overall output VixDiskLibConnection gets defined as a class. Roger |
Hi @rit001, Thanks for your report ! You've uncovered a conflict in JNAerator's ugly typedef vs. type conversion code, I'll try to fix that as soon as I get some calm evening :-) Cheers |
Thanks for the reply and the effect you are putting in. I would love to On 29 February 2012 at 22:51 Olivier Chafik
|
Hi, I've just come back to JNAerator having been doing other things. Do you think you will get a chance to look at this issue in the near term, or should I start to modify the .h files to work around the limitation? Thanks Roger |
Hi @rit001 , Thanks a lot for your patience ! Please let me know if you face any other issue. Cheers |
If I process the following C .h file (with supporting lib) using the latest jnaerator-0.9.10-SNAPSHOT-20120222.jar
typedef struct {
char *serverName;
} VixDiskLibConnectParams;
struct VixDiskLibConnectParam;
typedef struct VixDiskLibConnectParam *VixDiskLibConnection;
long VixDiskLib_Connect(const VixDiskLibConnectParams *connectParams, VixDiskLibConnection *connection);
I end up with the following definition within Java
What has happened is that the type *VixDiskLibConnection has not be carried over by jnaerator. Is this to be expected?
Thanks (yet again)
Roger
The text was updated successfully, but these errors were encountered: