Skip to content

Commit 74c920c

Browse files
committed
More build fixes
1 parent ae2d19a commit 74c920c

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

hal/src/main/java/edu/wpi/first/hal/SystemServerJNI.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package edu.wpi.first.hal;
66

77
/**
8-
* SystemServer JNI Functions
8+
* SystemServer JNI Functions.
99
*
1010
* @see "SystemServer.h"
1111
*/
@@ -18,6 +18,6 @@ public class SystemServerJNI extends JNIWrapper {
1818
*/
1919
public static native int getSystemServerHandle();
2020

21-
/** Utility class. */
21+
/** Utility class. */
2222
private SystemServerJNI() {}
2323
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
#include <jni.h>
6+
7+
#include "edu_wpi_first_hal_SystemServerJNI.h"
8+
#include "hal/SystemServer.h"
9+
10+
extern "C" {
11+
12+
/*
13+
* Class: edu_wpi_first_hal_SystemServerJNI
14+
* Method: getSystemServerHandle
15+
* Signature: ()I
16+
*/
17+
JNIEXPORT jint JNICALL
18+
Java_edu_wpi_first_hal_SystemServerJNI_getSystemServerHandle
19+
(JNIEnv*, jclass)
20+
{
21+
return HAL_GetSystemServerHandle();
22+
}
23+
24+
} // extern "C"

0 commit comments

Comments
 (0)