Closed GoogleCodeExporter closed 8 years ago
Fixed in revision #863.
{{{
typedef void (*f)();
void test(f* x);
struct S {
f* pf;
};
}}}
Now gives (added "C type" comments for non trivial types :
{{{
public static class S extends com.ochafik.lang.jnaerator.runtime.Structure<S,
S.ByValue, S.ByReference> {
/**
* @see test.TestLibrary.f<br>
* C type : f*
*/
public com.ochafik.lang.jnaerator.parser.TypeRef.Pointer pf;
public S() {
super();
}
/**
* @param pf @see test.TestLibrary.f<br>
* C type : f*
*/
public S(com.ochafik.lang.jnaerator.parser.TypeRef.Pointer pf) {
super();
this.pf = pf;
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected S newInstance() { return new S(); }
public static S[] newArray(int arrayLength) {
return newArray(S.class, arrayLength);
}
public static class ByReference extends S implements com.sun.jna.Structure.ByReference {}
public static class ByValue extends S implements com.sun.jna.Structure.ByValue {}
}
public interface f extends com.sun.jna.Callback {
void invoke();
}
}}}
Original comment by olivier.chafik@gmail.com
on 4 Oct 2009 at 1:36
Original issue reported on code.google.com by
olivier.chafik@gmail.com
on 4 Oct 2009 at 12:41