JNI for test coverage #3965

This commit is contained in:
rusefillc 2022-02-26 21:52:52 -05:00
parent 91a722b6ff
commit 2eda9310b2
2 changed files with 20 additions and 0 deletions

View File

@ -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);
}

View File

@ -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