What kind of typedef from C is in Java? Or how can you get around this? For example, I work with Android-NDK, in C there is a function, its prototype:
LONG List_File_Card(SCARDHANDLE gCardHandle, BYTE *buffer, DWORD *bufferLength); The types LONG,SCARDHANDLE,BYTE,DWORD defined in h-nicks, by analogy typedef long LONG;
In Java code, I define the same function as
public static native LONG List_File_Card(SCARDHANDLE gCardHandle, BYTE *buffer, DWORD *bufferLength); It is necessary that the same data type names be received and returned to this function as in C. How can they be better defined in Java? Using classes, interfaces, enum? Tell me please.