- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJNodeNative.java
More file actions
Latest commit
23 lines (22 loc) · 1.44 KB
/
Copy pathJNodeNative.java
File metadata and controls
23 lines (22 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
publicclassJNodeNative {
publicstaticnativevoidstart(String[] args);
publicstaticnativeintfciArgCount(longfciHandle);
publicstaticnativebooleanfciArgIsString(longfciHandle, intargIndex);
publicstaticnativebooleanfciArgIsNumber(longfciHandle, intargIndex);
publicstaticnativebooleanfciArgIsFunction(longfciHandle, intargIndex);
publicstaticnativeStringfciArgStringValue(longfciHandle, intargIndex);
publicstaticnativedoublefciArgNumberValue(longfciHandle, intargIndex);
publicstaticnativelongfciArgFunctionAsPersistentHandle(longfciHandle, intargIndex);
publicstaticnativevoidfciSetReturnStringValue(longfciHandle, StringstringValue);
publicstaticnativevoidfciSetReturnNumberValue(longfciHandle, doublenumberValue);
publicstaticnativelongfcoFromHandle(longfunctionHandle);
publicstaticnativevoidfcoAddStringParameter(longfcoHandle, Stringvalue);
publicstaticnativevoidfcoAddDoubleParameter(longfcoHandle, doublevalue);
publicstaticnativevoidfcoAddIntegerParameter(longfcoHandle, intvalue);
publicstaticnativevoidfcoVoidCallAndDestroy(longfcoHandle);
// XXX TODO:
//public static native String fcoStringCallAndDestroy(long fcoHandle);
//public static native double fcoDoubleCallAndDestroy(long fcoHandle);
publicstaticnativeintfcoIntCallAndDestroy(longfcoHandle);
publicstaticnativevoidfunctionPersistentHandleDestroy(longfunctionHandle);
}