Mercurial > pub > dyncall > bindings
changeset 18:3bfef07b0cd9
- cleanup of non-working java binding, restart work, somewhat different interface
author | cslag |
---|---|
date | Wed, 30 Mar 2016 02:05:06 +0200 |
parents | 739c40f35a6a |
children | 5b51738793c6 |
files | java/jdc/Makefile java/jdc/README.txt java/jdc/org_dyncall_DC.h java/jdc/org_dyncall_callvm.h java/jdc/src/GNUmakefile java/jdc/src/org/dyncall/DC.java java/jdc/src/org_dyncall_DC.c java/jdc/src/org_dyncall_DC.h |
diffstat | 8 files changed, 183 insertions(+), 401 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/jdc/Makefile Wed Mar 30 02:05:06 2016 +0200 @@ -0,0 +1,4 @@ +all: + cd org/dyncall/ && javac DC.java + javah org.dyncall.DC +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/jdc/README.txt Wed Mar 30 02:05:06 2016 +0200 @@ -0,0 +1,4 @@ +BUILD +===== + +@@@
--- a/java/jdc/org_dyncall_DC.h Sat Mar 26 22:32:59 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include <jni.h> -/* Header for class org_dyncall_DC */ - -#ifndef _Included_org_dyncall_DC -#define _Included_org_dyncall_DC -#ifdef __cplusplus -extern "C" { -#endif -/* - * Class: org_dyncall_DC - * Method: newCallVM - * Signature: (II)Lorg/dyncall/callvm; - */ -JNIEXPORT jobject JNICALL Java_org_dyncall_DC_newCallVM - (JNIEnv *, jclass, jint, jint); - -#ifdef __cplusplus -} -#endif -#endif
--- a/java/jdc/org_dyncall_callvm.h Sat Mar 26 22:32:59 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,125 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include <jni.h> -/* Header for class org_dyncall_callvm */ - -#ifndef _Included_org_dyncall_callvm -#define _Included_org_dyncall_callvm -#ifdef __cplusplus -extern "C" { -#endif -/* - * Class: org_dyncall_callvm - * Method: reset - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_reset - (JNIEnv *, jobject); - -/* - * Class: org_dyncall_callvm - * Method: argBool - * Signature: (Z)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argBool - (JNIEnv *, jobject, jboolean); - -/* - * Class: org_dyncall_callvm - * Method: argByte - * Signature: (B)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argByte - (JNIEnv *, jobject, jbyte); - -/* - * Class: org_dyncall_callvm - * Method: argShort - * Signature: (S)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argShort - (JNIEnv *, jobject, jshort); - -/* - * Class: org_dyncall_callvm - * Method: argInt - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argInt - (JNIEnv *, jobject, jint); - -/* - * Class: org_dyncall_callvm - * Method: argLong - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argLong - (JNIEnv *, jobject, jlong); - -/* - * Class: org_dyncall_callvm - * Method: argChar - * Signature: (C)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argChar - (JNIEnv *, jobject, jchar); - -/* - * Class: org_dyncall_callvm - * Method: argFloat - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argFloat - (JNIEnv *, jobject, jfloat); - -/* - * Class: org_dyncall_callvm - * Method: argDouble - * Signature: (D)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argDouble - (JNIEnv *, jobject, jdouble); - -/* - * Class: org_dyncall_callvm - * Method: argPointer - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argPointer__J - (JNIEnv *, jobject, jlong); - -/* - * Class: org_dyncall_callvm - * Method: argPointer - * Signature: (Ljava/lang/Object;)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argPointer__Ljava_lang_Object_2 - (JNIEnv *, jobject, jobject); - -/* - * Class: org_dyncall_callvm - * Method: argString - * Signature: (Ljava/lang/String;)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_argString - (JNIEnv *, jobject, jstring); - -/* - * Class: org_dyncall_callvm - * Method: callVoid - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_callvm_callVoid - (JNIEnv *, jobject, jlong); - -/* - * Class: org_dyncall_callvm - * Method: callInt - * Signature: (J)I - */ -JNIEXPORT jint JNICALL Java_org_dyncall_callvm_callInt - (JNIEnv *, jobject, jlong); - -#ifdef __cplusplus -} -#endif -#endif
--- a/java/jdc/src/GNUmakefile Sat Mar 26 22:32:59 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -TOP = ../../../.. - -include $(TOP)/build/gmake/prolog.gmake - -DLL = jdc -MODS = org_dyncall_DC -LDFLAGS = -L $(TOP)/dyncall -LIBS = -ldyncall_s - -include $(TOP)/build/gmake/epilog.gmake -
--- a/java/jdc/src/org/dyncall/DC.java Sat Mar 26 22:32:59 2016 +0100 +++ b/java/jdc/src/org/dyncall/DC.java Wed Mar 30 02:05:06 2016 +0200 @@ -2,46 +2,91 @@ public class DC { - static + static { System.loadLibrary("jdc"); } public static final int - DEFAULT_C = 0 - , X86_WIN32_FAST = 1 - , X86_WIN32_STD = 2 - , X86_WIN32_THIS_MS = 3 + // calling conventions + C_DEFAULT = 0 + , C_ELLIPSIS = 100 + , C_ELLIPSIS_VARARGS = 101 + , C_X86_CDECL = 1 + , C_X86_WIN32_STD = 2 + , C_X86_WIN32_FAST_MS = 3 + , C_X86_WIN32_FAST_GNU = 4 + , C_X86_WIN32_THIS_MS = 5 + , C_X86_WIN32_THIS_GNU = 6 + , C_X64_WIN64 = 7 + , C_X64_SYSV = 8 + , C_PPC32_DARWIN = 9 + , C_PPC32_OSX = 9 //C_PPC32_DARWIN /* alias */ + , C_ARM_ARM_EABI = 10 + , C_ARM_THUMB_EABI = 11 + , C_ARM_ARMHF = 30 + , C_MIPS32_EABI = 12 + , C_MIPS32_PSPSDK = 12 //C_MIPS32_EABI /* alias - deprecated. */ + , C_PPC32_SYSV = 13 + , C_PPC32_LINUX = 13 //C_PPC32_SYSV /* alias */ + , C_ARM_ARM = 14 + , C_ARM_THUMB = 15 + , C_MIPS32_O32 = 16 + , C_MIPS64_N32 = 17 + , C_MIPS64_N64 = 18 + , C_X86_PLAN9 = 19 + , C_SPARC32 = 20 + , C_SPARC64 = 21 + , C_ARM64 = 22 + , C_PPC64 = 23 + , C_PPC64_LINUX = 23 //C_PPC64 /* alias */ + , SYS_DEFAULT = 200 + , SYS_X86_INT80H_LINUX = 201 + , SYS_X86_INT80H_BSD = 202 + , SYS_PPC32 = 210 + , SYS_PPC64 = 211 + // error codes + , ERROR_NONE = 0 + , ERROR_UNSUPPORTED_MODE = -1 ; - public static native long newCallVM(int type, int size); - public static native long load(String libname); - public static native long addpath(String dirpath); - public static native long rempath(String dirpath); - public static native long find(long libhandle, String symbol); + public static native long newCallVM(int type, int size); + + public static native long load(String libname); + public static native long find(long libhandle, String symbol); + //public static native int symsCount(long libhandle); + //public static native String symsName (long libhandle, int index); + + public static native void reset(long vmhandle); + public static native void mode(long vmhandle, int mode); - public static native void reset (long vmhandle); - public static native void argBool (long vmhandle, boolean b); - public static native void argChar (long vmhandle, char c); - public static native void argByte (long vmhandle, byte b); - public static native void argShort (long vmhandle, short s); - public static native void argInt (long vmhandle, int i); - public static native void argLong (long vmhandle, long l); - public static native void argFloat (long vmhandle, float f); - public static native void argDouble (long vmhandle, double d); - public static native void argPointer(long vmhandle, long l); - public static native void argPointer(long vmhandle, Object o); - public static native void argString (long vmhandle, String s); - + // Note that the function names mimic the C api, as C functions are called, + // meaning argChar takes a java byte (not char, as latter is 16 bit), argLongLong + // takes a java long (which is 64bit), etc.. + public static native void argBool (long vmhandle, boolean b); + public static native void argChar (long vmhandle, byte b); + public static native void argShort (long vmhandle, short s); + public static native void argInt (long vmhandle, int i); + public static native void argLong (long vmhandle, long l); + public static native void argLongLong(long vmhandle, long l); + public static native void argFloat (long vmhandle, float f); + public static native void argDouble (long vmhandle, double d); + public static native void argPointer (long vmhandle, long l); + public static native void argPointer (long vmhandle, Object o); + public static native void argString (long vmhandle, String s); + public static native void callVoid (long vmhandle, long funcpointer); - public static native boolean callBoolean (long vmhandle, long funcpointer); - public static native char callChar (long vmhandle, long funcpointer); - public static native byte callByte (long vmhandle, long funcpointer); + public static native boolean callBool (long vmhandle, long funcpointer); + public static native byte callChar (long vmhandle, long funcpointer); public static native short callShort (long vmhandle, long funcpointer); public static native int callInt (long vmhandle, long funcpointer); public static native long callLong (long vmhandle, long funcpointer); + public static native long callLongLong(long vmhandle, long funcpointer); public static native float callFloat (long vmhandle, long funcpointer); public static native double callDouble (long vmhandle, long funcpointer); public static native long callPointer (long vmhandle, long funcpointer); + public static native String callString (long vmhandle, long funcpointer); + + public static native int getError(long vmhandle); };
--- a/java/jdc/src/org_dyncall_DC.c Sat Mar 26 22:32:59 2016 +0100 +++ b/java/jdc/src/org_dyncall_DC.c Wed Mar 30 02:05:06 2016 +0200 @@ -1,112 +1,155 @@ #include "org_dyncall_DC.h" -#include "../../../../dyncall/dyncall.h" -jlong JNICALL Java_org_dyncall_DC_newCallVM - (JNIEnv *pEnv, jclass clazz, jint mode, jint size) +#include "dyncall.h" + +jlong JNICALL Java_org_dyncall_DC_newCallVM(JNIEnv *pEnv, jclass clazz, jint mode, jint size) { - return (jlong) dcNewCallVM(mode,size); + return (jlong)dcNewCallVM(mode, size); +//@@@ free } -void JNICALL Java_org_dyncall_DC_reset (JNIEnv *, jclass, jlong vm) +jlong JNICALL Java_org_dyncall_DC_load(JNIEnv *, jclass, jstring s) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcReset(vm); + return dlLoadLibrary((const char*)s); +//@@@ free +} + +jlong JNICALL Java_org_dyncall_DC_find(JNIEnv *, jclass, jlong libhandle, jstring s) +{ + return dlFindSymbol((DLLib*)libhandle, (const char*)s); } -void JNICALL Java_org_dyncall_DC_argBool(JNIEnv *, jclass, jlong vm, jboolean b) +//jint JNICALL Java_org_dyncall_DC_symsCount(JNIEnv *, jclass, jlong symshandle) +//{ +// return dlSymsCount((DLSyms*)symshandle); +//} + +//jstring JNICALL Java_org_dyncall_DC_symsName(JNIEnv *, jclass, jlong symshandle, jint i) +//{ +// return dlSymsName((DLSyms*)symshandle, i); +//} + +void JNICALL Java_org_dyncall_DC_mode(JNIEnv *, jclass, jlong in_vm, jint i) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushBool(vm,b); + dcMode((DCCallVM*)in_vm, i); } -void JNICALL Java_org_dyncall_DC_argByte (JNIEnv *, jclass, jlong in_vm, jbyte b) +void JNICALL Java_org_dyncall_DC_reset(JNIEnv *, jclass, jlong in_vm) +{ + dcReset((DCCallVM*)in_vm); +} + +void JNICALL Java_org_dyncall_DC_argBool(JNIEnv *, jclass, jlong in_vm, jboolean b) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushChar(vm,b); + dcPushBool((DCCallVM*)in_vm, b); } + +void JNICALL Java_org_dyncall_DC_argChar(JNIEnv *, jclass, jlong in_vm, jbyte b) +{ + dcPushChar((DCCallVM*)in_vm, b); +} + void JNICALL Java_org_dyncall_DC_argShort(JNIEnv *, jclass, jlong in_vm, jshort s) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushShort(vm,s); + dcPushShort((DCCallVM*)in_vm, s); } void JNICALL Java_org_dyncall_DC_argInt(JNIEnv *, jclass, jlong in_vm, jint i) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushInt(vm,i); - -} -void JNICALL Java_org_dyncall_DC_argLong (JNIEnv *, jclass, jlong in_vm, jlong l) -{ - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushLong(vm,l); + dcPushInt((DCCallVM*)in_vm, i); } -void JNICALL Java_org_dyncall_DC_argChar(JNIEnv *, jclass, jlong in_vm, jchar c) +void JNICALL Java_org_dyncall_DC_argLong(JNIEnv *, jclass, jlong in_vm, jlong l) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushChar(vm,c); + dcPushLong((DCCallVM*)in_vm, l); +} + +void JNICALL Java_org_dyncall_DC_argLongLong(JNIEnv *, jclass, jlong in_vm, jlong l) +{ + dcPushLongLong((DCCallVM*)in_vm, l); } void JNICALL Java_org_dyncall_DC_argFloat(JNIEnv *, jclass, jlong in_vm, jfloat f) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushFloat(vm,f); + dcPushFloat((DCCallVM*)in_vm, f); } void JNICALL Java_org_dyncall_DC_argDouble(JNIEnv *, jclass, jlong in_vm, jdouble d) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushDouble(vm,d); + dcPushDouble((DCCallVM*)in_vm, d); } void JNICALL Java_org_dyncall_DC_argPointer__JJ(JNIEnv *, jclass, jlong in_vm, jlong l) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushPointer(vm, (DCpointer) l ); + dcPushPointer((DCCallVM*)in_vm, (DCpointer)l); } void JNICALL Java_org_dyncall_DC_argPointer__JLjava_lang_Object_2(JNIEnv *, jclass, jlong in_vm, jobject o) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushPointer(vm, (DCpointer) o ); + dcPushPointer((DCCallVM*)in_vm, (DCpointer)o); } -void JNICALL Java_org_dyncall_DC_argString(JNIEnv *, jclass, jlong, jstring) +void JNICALL Java_org_dyncall_DC_argString(JNIEnv *, jclass, jlong in_vm, jstring s) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcPushPointer(vm, (DCpointer) o ); + dcPushPointer((DCCallVM*)in_vm, (DCpointer)s); } void JNICALL Java_org_dyncall_DC_callVoid (JNIEnv *, jclass, jlong in_vm, jlong in_target) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcCallVoid(vm, (DCpointer) target) + dcCallVoid((DCCallVM*)in_vm, (DCpointer)target) +} + +jboolean JNICALL Java_org_dyncall_DC_callBool(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallBool((DCCallVM*)in_vm, (DCpointer)target) +} + +jbyte JNICALL Java_org_dyncall_DC_callChar(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallChar((DCCallVM*)in_vm, (DCpointer)target) } -/* - * Class: org_dyncall_DC - * Method: callBoolean - * Signature: (JJ)Z - */ -jboolean JNICALL Java_org_dyncall_DC_callBoolean(JNIEnv *, jclass, jlong in_vm, jlong target) +jshort JNICALL Java_org_dyncall_DC_callShort(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallShort((DCCallVM*)in_vm, (DCpointer)target) +} + +jint JNICALL Java_org_dyncall_DC_callInt(JNIEnv *, jclass, jlong in_vm, jlong target) { - DCCallVM* vm = (DCCallVM*) in_vm; - dcCallBoolean(vm, (DCpointer) target) + return dcCallInt((DCCallVM*)in_vm, (DCpointer)target) +} + +jlong JNICALL Java_org_dyncall_DC_callLong(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallLong((DCCallVM*)in_vm, (DCpointer)target) } -/* - * Class: org_dyncall_DC - * Method: callInt - * Signature: (JJ)I - */ -JNIEXPORT jint JNICALL Java_org_dyncall_DC_callInt - (JNIEnv *, jclass, jlong, jlong); +jlong JNICALL Java_org_dyncall_DC_callLongLong(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallLongLong((DCCallVM*)in_vm, (DCpointer)target) +} + +jfloat JNICALL Java_org_dyncall_DC_callFloat(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallFloat((DCCallVM*)in_vm, (DCpointer)target) +} + +jdouble JNICALL Java_org_dyncall_DC_callDouble(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallDouble((DCCallVM*)in_vm, (DCpointer)target) +} -/* - * Class: org_dyncall_DC - * Method: callLong - * Signature: (JJ)J - */ -JNIEXPORT jlong JNICALL Java_org_dyncall_DC_callLong - (JNIEnv *, jclass, jlong, jlong); +jlong JNICALL Java_org_dyncall_DC_callPointer(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallPointer((DCCallVM*)in_vm, (DCpointer)target) +} +jstring JNICALL Java_org_dyncall_DC_callString(JNIEnv *, jclass, jlong in_vm, jlong target) +{ + return dcCallPointer((DCCallVM*)in_vm, (DCpointer)target) +} + +jint JNICALL Java_org_dyncall_DC_getError(JNIEnv *, jclass, jlong in_vm) +{ + return dcGetError((DCCallVM*)in_vm); +} +
--- a/java/jdc/src/org_dyncall_DC.h Sat Mar 26 22:32:59 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include <jni.h> -/* Header for class org_dyncall_DC */ - -#ifndef _Included_org_dyncall_DC -#define _Included_org_dyncall_DC -#ifdef __cplusplus -extern "C" { -#endif -#undef org_dyncall_DC_DEFAULT_C -#define org_dyncall_DC_DEFAULT_C 0L -#undef org_dyncall_DC_X86_WIN32_FAST -#define org_dyncall_DC_X86_WIN32_FAST 1L -#undef org_dyncall_DC_X86_WIN32_STD -#define org_dyncall_DC_X86_WIN32_STD 2L -#undef org_dyncall_DC_X86_WIN32_THIS_MS -#define org_dyncall_DC_X86_WIN32_THIS_MS 3L -/* - * Class: org_dyncall_DC - * Method: newCallVM - * Signature: (II)J - */ -JNIEXPORT jlong JNICALL Java_org_dyncall_DC_newCallVM - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_dyncall_DC - * Method: reset - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_reset - (JNIEnv *, jclass, jlong); - -/* - * Class: org_dyncall_DC - * Method: argBool - * Signature: (JZ)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argBool - (JNIEnv *, jclass, jlong, jboolean); - -/* - * Class: org_dyncall_DC - * Method: argByte - * Signature: (JB)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argByte - (JNIEnv *, jclass, jlong, jbyte); - -/* - * Class: org_dyncall_DC - * Method: argShort - * Signature: (JS)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argShort - (JNIEnv *, jclass, jlong, jshort); - -/* - * Class: org_dyncall_DC - * Method: argInt - * Signature: (JI)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argInt - (JNIEnv *, jclass, jlong, jint); - -/* - * Class: org_dyncall_DC - * Method: argLong - * Signature: (JJ)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argLong - (JNIEnv *, jclass, jlong, jlong); - -/* - * Class: org_dyncall_DC - * Method: argChar - * Signature: (JC)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argChar - (JNIEnv *, jclass, jlong, jchar); - -/* - * Class: org_dyncall_DC - * Method: argFloat - * Signature: (JF)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argFloat - (JNIEnv *, jclass, jlong, jfloat); - -/* - * Class: org_dyncall_DC - * Method: argDouble - * Signature: (JD)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argDouble - (JNIEnv *, jclass, jlong, jdouble); - -/* - * Class: org_dyncall_DC - * Method: argPointer - * Signature: (JJ)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argPointer__JJ - (JNIEnv *, jclass, jlong, jlong); - -/* - * Class: org_dyncall_DC - * Method: argPointer - * Signature: (JLjava/lang/Object;)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argPointer__JLjava_lang_Object_2 - (JNIEnv *, jclass, jlong, jobject); - -/* - * Class: org_dyncall_DC - * Method: argString - * Signature: (JLjava/lang/String;)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_argString - (JNIEnv *, jclass, jlong, jstring); - -/* - * Class: org_dyncall_DC - * Method: callVoid - * Signature: (JJ)V - */ -JNIEXPORT void JNICALL Java_org_dyncall_DC_callVoid - (JNIEnv *, jclass, jlong, jlong); - -/* - * Class: org_dyncall_DC - * Method: callBoolean - * Signature: (JJ)Z - */ -JNIEXPORT jboolean JNICALL Java_org_dyncall_DC_callBoolean - (JNIEnv *, jclass, jlong, jlong); - -/* - * Class: org_dyncall_DC - * Method: callInt - * Signature: (JJ)I - */ -JNIEXPORT jint JNICALL Java_org_dyncall_DC_callInt - (JNIEnv *, jclass, jlong, jlong); - -/* - * Class: org_dyncall_DC - * Method: callLong - * Signature: (JJ)J - */ -JNIEXPORT jlong JNICALL Java_org_dyncall_DC_callLong - (JNIEnv *, jclass, jlong, jlong); - -#ifdef __cplusplus -} -#endif -#endif