-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJNodeNative.java
23 lines (22 loc) · 1.44 KB
/
JNodeNative.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public class JNodeNative {
public static native void start(String[] args);
public static native int fciArgCount(long fciHandle);
public static native boolean fciArgIsString(long fciHandle, int argIndex);
public static native boolean fciArgIsNumber(long fciHandle, int argIndex);
public static native boolean fciArgIsFunction(long fciHandle, int argIndex);
public static native String fciArgStringValue(long fciHandle, int argIndex);
public static native double fciArgNumberValue(long fciHandle, int argIndex);
public static native long fciArgFunctionAsPersistentHandle(long fciHandle, int argIndex);
public static native void fciSetReturnStringValue(long fciHandle, String stringValue);
public static native void fciSetReturnNumberValue(long fciHandle, double numberValue);
public static native long fcoFromHandle(long functionHandle);
public static native void fcoAddStringParameter(long fcoHandle, String value);
public static native void fcoAddDoubleParameter(long fcoHandle, double value);
public static native void fcoAddIntegerParameter(long fcoHandle, int value);
public static native void fcoVoidCallAndDestroy(long fcoHandle);
// XXX TODO:
//public static native String fcoStringCallAndDestroy(long fcoHandle);
//public static native double fcoDoubleCallAndDestroy(long fcoHandle);
public static native int fcoIntCallAndDestroy(long fcoHandle);
public static native void functionPersistentHandleDestroy(long functionHandle);
}