Add functionality for getting the current network mode (#202)

Use bit flags to indicate a combination of network mode and status.
This commit is contained in:
Sam Carlberg
2017-06-02 20:25:20 -04:00
committed by Peter Johnson
parent 417cf33f90
commit f43675e2bd
10 changed files with 78 additions and 12 deletions

View File

@@ -1502,6 +1502,17 @@ JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_networktables_NetworkTablesJNI
nt::StopClient();
}
/*
* Class: edu_wpi_first_wpilibj_networktables_NetworkTablesJNI
* Method: getNetworkMode
* Signature: ()
*/
JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_networktables_NetworkTablesJNI_getNetworkMode
(JNIEnv *, jclass)
{
return nt::GetNetworkMode();
}
/*
* Class: edu_wpi_first_wpilibj_networktables_NetworkTablesJNI
* Method: setServer