nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
504 stars 108 forks source link

Wrong conversion of callback #97

Open dhoehmann opened 8 years ago

dhoehmann commented 8 years ago

This typedef

typedef STATUS (LNCALLBACKPTR pConvertNBmpWriter)(void pWriterCtx, / user defined writer context / BYTE *bytes, / data bytes / DWORD byteCount, / maxChunkSize or totalImageSizeInBytes */ DWORD totalImageSizeInBytes);

gets converted to:

/* * Notes bitmap conversion routines and constants. Should be exposed in the CAPI
* notescvt.c
* user defined writer context
* native declaration : ./misc.h:416 _/ public interface STATUS extends Callback { NotesLibrary.STATUScallback apply(Pointer pConvertNBmpWriter); }; /* native declaration : ./misc.h _/ public interface STATUScallback extends Callback { /
* @param pWriterCtx user defined writer context
* @param bytes data bytes
* @param byteCount maxChunkSize or totalImageSizeInBytes */ int apply(Pointer pWriterCtx, Pointer bytes, int byteCount, int totalImageSizeInBytes); };