2025-01-16 09:49:40 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
|
|
2025-11-07 19:55:43 -05:00
|
|
|
#include "org_wpilib_hardware_hal_SystemServerJNI.h"
|
2025-11-07 19:56:21 -05:00
|
|
|
#include "wpi/hal/SystemServer.h"
|
2025-01-16 09:49:40 -08:00
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
/*
|
2025-11-07 19:55:43 -05:00
|
|
|
* Class: org_wpilib_hardware_hal_SystemServerJNI
|
2025-01-16 09:49:40 -08:00
|
|
|
* Method: getSystemServerHandle
|
|
|
|
|
* Signature: ()I
|
|
|
|
|
*/
|
|
|
|
|
JNIEXPORT jint JNICALL
|
2025-11-07 19:55:43 -05:00
|
|
|
Java_org_wpilib_hardware_hal_SystemServerJNI_getSystemServerHandle
|
2025-01-16 09:49:40 -08:00
|
|
|
(JNIEnv*, jclass)
|
|
|
|
|
{
|
|
|
|
|
return HAL_GetSystemServerHandle();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // extern "C"
|