File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 5
5
package edu .wpi .first .hal ;
6
6
7
7
/**
8
- * SystemServer JNI Functions
8
+ * SystemServer JNI Functions.
9
9
*
10
10
* @see "SystemServer.h"
11
11
*/
@@ -18,6 +18,6 @@ public class SystemServerJNI extends JNIWrapper {
18
18
*/
19
19
public static native int getSystemServerHandle ();
20
20
21
- /** Utility class. */
21
+ /** Utility class. */
22
22
private SystemServerJNI () {}
23
23
}
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments