mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT Run java package replacements
This commit is contained in:
committed by
Peter Johnson
parent
12823a003d
commit
f0a3c64121
@@ -10,7 +10,7 @@
|
||||
#include "CallbackStore.h"
|
||||
#include "ConstBufferCallbackStore.h"
|
||||
#include "SimDeviceDataJNI.h"
|
||||
#include "edu_wpi_first_hal_simulation_SimulatorJNI.h"
|
||||
#include "org_wpilib_hardware_hal_simulation_SimulatorJNI.h"
|
||||
#include "hal/HAL.h"
|
||||
#include "hal/handles/HandlesInternal.h"
|
||||
#include "hal/simulation/MockHooks.h"
|
||||
@@ -35,7 +35,7 @@ jint SimOnLoad(JavaVM* vm, void* reserved) {
|
||||
}
|
||||
|
||||
notifyCallbackCls =
|
||||
JClass(env, "edu/wpi/first/hal/simulation/NotifyCallback");
|
||||
JClass(env, "org/wpilib/hardware/hal/simulation/NotifyCallback");
|
||||
if (!notifyCallbackCls) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ jint SimOnLoad(JavaVM* vm, void* reserved) {
|
||||
}
|
||||
|
||||
bufferCallbackCls =
|
||||
JClass(env, "edu/wpi/first/hal/simulation/BufferCallback");
|
||||
JClass(env, "org/wpilib/hardware/hal/simulation/BufferCallback");
|
||||
if (!bufferCallbackCls) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
@@ -59,7 +59,7 @@ jint SimOnLoad(JavaVM* vm, void* reserved) {
|
||||
}
|
||||
|
||||
constBufferCallbackCls =
|
||||
JClass(env, "edu/wpi/first/hal/simulation/ConstBufferCallback");
|
||||
JClass(env, "org/wpilib/hardware/hal/simulation/ConstBufferCallback");
|
||||
if (!constBufferCallbackCls) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
@@ -113,132 +113,132 @@ jmethodID GetConstBufferCallback() {
|
||||
|
||||
extern "C" {
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: setRuntimeType
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_setRuntimeType
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_setRuntimeType
|
||||
(JNIEnv*, jclass, jint type)
|
||||
{
|
||||
HALSIM_SetRuntimeType(static_cast<HAL_RuntimeType>(type));
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: waitForProgramStart
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_waitForProgramStart
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_waitForProgramStart
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
HALSIM_WaitForProgramStart();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: setProgramStarted
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_setProgramStarted
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_setProgramStarted
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
HALSIM_SetProgramStarted();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: getProgramStarted
|
||||
* Signature: ()Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_getProgramStarted
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_getProgramStarted
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
return HALSIM_GetProgramStarted();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: restartTiming
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_restartTiming
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_restartTiming
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
HALSIM_RestartTiming();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: pauseTiming
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_pauseTiming
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_pauseTiming
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
HALSIM_PauseTiming();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: resumeTiming
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_resumeTiming
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_resumeTiming
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
HALSIM_ResumeTiming();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: isTimingPaused
|
||||
* Signature: ()Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_isTimingPaused
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_isTimingPaused
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
return HALSIM_IsTimingPaused();
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: stepTiming
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_stepTiming
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_stepTiming
|
||||
(JNIEnv*, jclass, jlong delta)
|
||||
{
|
||||
HALSIM_StepTiming(delta);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: stepTimingAsync
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_stepTimingAsync
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_stepTimingAsync
|
||||
(JNIEnv*, jclass, jlong delta)
|
||||
{
|
||||
HALSIM_StepTimingAsync(delta);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_hal_simulation_SimulatorJNI
|
||||
* Class: org_wpilib_hardware_hal_simulation_SimulatorJNI
|
||||
* Method: resetHandles
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_edu_wpi_first_hal_simulation_SimulatorJNI_resetHandles
|
||||
Java_org_wpilib_hardware_hal_simulation_SimulatorJNI_resetHandles
|
||||
(JNIEnv*, jclass)
|
||||
{
|
||||
hal::HandleBase::ResetGlobalHandles();
|
||||
|
||||
Reference in New Issue
Block a user