JNI for test coverage #3965
This commit is contained in:
parent
91a722b6ff
commit
2eda9310b2
|
@ -7,4 +7,8 @@ public class EngineLogic {
|
|||
public native String getVersion();
|
||||
|
||||
public native void setSensor(String sensorTypeName, double value);
|
||||
|
||||
public native byte[] getConfiguration();
|
||||
|
||||
public native void setConfiguration(byte[] content, int offset, int size);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,22 @@ JNIEXPORT jstring JNICALL Java_com_rusefi_native_1_EngineLogic_getVersion
|
|||
JNIEXPORT void JNICALL Java_com_rusefi_native_1_EngineLogic_setSensor
|
||||
(JNIEnv *, jobject, jstring, jdouble);
|
||||
|
||||
/*
|
||||
* Class: com_rusefi_native__EngineLogic
|
||||
* Method: getConfiguration
|
||||
* Signature: ()[B
|
||||
*/
|
||||
JNIEXPORT jbyteArray JNICALL Java_com_rusefi_native_1_EngineLogic_getConfiguration
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: com_rusefi_native__EngineLogic
|
||||
* Method: setConfiguration
|
||||
* Signature: ([BII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_rusefi_native_1_EngineLogic_setConfiguration
|
||||
(JNIEnv *, jobject, jbyteArray, jint, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue