ochafik/nativelibs4java — Issue #273: typedef capablities within jnaerator
Author: rit001
Created: 2012-02-24 18:25:03+00:00
State: open

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

----

public static native long VixDiskLib_Connect(Pointer connectParams, Pointer > connection);

----

What has happened is that the type *VixDiskLibConnection has not be carried over by jnaerator. Is this to be expected?

Thanks (yet again)

Roger