mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
25 lines
583 B
C++
25 lines
583 B
C++
|
|
// 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>
|
||
|
|
|
||
|
|
#include "edu_wpi_first_hal_SystemServerJNI.h"
|
||
|
|
#include "hal/SystemServer.h"
|
||
|
|
|
||
|
|
extern "C" {
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Class: edu_wpi_first_hal_SystemServerJNI
|
||
|
|
* Method: getSystemServerHandle
|
||
|
|
* Signature: ()I
|
||
|
|
*/
|
||
|
|
JNIEXPORT jint JNICALL
|
||
|
|
Java_edu_wpi_first_hal_SystemServerJNI_getSystemServerHandle
|
||
|
|
(JNIEnv*, jclass)
|
||
|
|
{
|
||
|
|
return HAL_GetSystemServerHandle();
|
||
|
|
}
|
||
|
|
|
||
|
|
} // extern "C"
|