Browse Source

cleanup

pull/4/head
Brenton Bostick 3 years ago
parent
commit
5be92a96df
  1. 6
      java/jni/ZT_jniutils.h
  2. 2
      java/jni/com_zerotierone_sdk_Node.cpp
  3. 1
      java/src/com/zerotier/sdk/DataStoreGetListener.java
  4. 1
      java/src/com/zerotier/sdk/DataStorePutListener.java
  5. 1
      java/src/com/zerotier/sdk/Event.java
  6. 4
      java/src/com/zerotier/sdk/EventListener.java
  7. 2
      java/src/com/zerotier/sdk/Node.java
  8. 2
      java/src/com/zerotier/sdk/NodeException.java
  9. 2
      java/src/com/zerotier/sdk/PacketSender.java
  10. 1
      java/src/com/zerotier/sdk/PathChecker.java
  11. 2
      java/src/com/zerotier/sdk/Peer.java
  12. 2
      java/src/com/zerotier/sdk/PeerPhysicalPath.java
  13. 1
      java/src/com/zerotier/sdk/PeerRole.java
  14. 3
      java/src/com/zerotier/sdk/ResultCode.java
  15. 4
      java/src/com/zerotier/sdk/VirtualNetworkConfigListener.java
  16. 2
      java/src/com/zerotier/sdk/VirtualNetworkConfigOperation.java
  17. 1
      java/src/com/zerotier/sdk/VirtualNetworkFrameListener.java
  18. 2
      java/src/com/zerotier/sdk/VirtualNetworkStatus.java
  19. 2
      java/src/com/zerotier/sdk/VirtualNetworkType.java

6
java/jni/ZT_jniutils.h

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ZT_jniutils_h_
#define ZT_jniutils_h_
@ -61,8 +61,6 @@ jobject createVirtualNetworkConfigOperation(JNIEnv *env, ZT_VirtualNetworkConfig
jobject newInetSocketAddress(JNIEnv *env, const sockaddr_storage &addr);
jobject newInetAddress(JNIEnv *env, const sockaddr_storage &addr);
jobject newMulticastGroup(JNIEnv *env, const ZT_MulticastGroup &mc);
jobject newPeer(JNIEnv *env, const ZT_Peer &peer);
jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp);
@ -74,4 +72,4 @@ jobject newVirtualNetworkRoute(JNIEnv *env, const ZT_VirtualNetworkRoute &route)
jobject newVirtualNetworkDNS(JNIEnv *env, const ZT_VirtualNetworkDNS &dns);
#endif
#endif // ZT_jniutils_h_

2
java/jni/com_zerotierone_sdk_Node.cpp

@ -1631,4 +1631,4 @@ JNIEXPORT jobjectArray JNICALL Java_com_zerotier_sdk_Node_networks(
#ifdef __cplusplus
} // extern "C"
#endif
#endif

1
java/src/com/zerotier/sdk/DataStoreGetListener.java

@ -24,6 +24,7 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface DataStoreGetListener {

1
java/src/com/zerotier/sdk/DataStorePutListener.java

@ -24,6 +24,7 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface DataStorePutListener {

1
java/src/com/zerotier/sdk/Event.java

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public enum Event {
/**
* Node has been initialized
*

4
java/src/com/zerotier/sdk/EventListener.java

@ -27,13 +27,11 @@
package com.zerotier.sdk;
import java.net.InetSocketAddress;
import java.lang.String;
/**
* Interface to handle callbacks for ZeroTier One events.
*/
public interface EventListener {
/**
* Callback for events with no other associated metadata
*

2
java/src/com/zerotier/sdk/Node.java

@ -472,4 +472,4 @@ public class Node {
private native Peer[] peers(long nodeId);
private native VirtualNetworkConfig[] networks(long nodeId);
}
}

2
java/src/com/zerotier/sdk/NodeException.java

@ -33,4 +33,4 @@ public class NodeException extends RuntimeException {
public NodeException(String message) {
super(message);
}
}
}

2
java/src/com/zerotier/sdk/PacketSender.java

@ -24,12 +24,14 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
import java.net.InetSocketAddress;
public interface PacketSender {
/**
* Function to send a ZeroTier packet out over the wire
*

1
java/src/com/zerotier/sdk/PathChecker.java

@ -8,6 +8,7 @@ package com.zerotier.sdk;
import java.net.InetSocketAddress;
public interface PathChecker {
/**
* Callback to check whether a path should be used for ZeroTier traffic
*

2
java/src/com/zerotier/sdk/Peer.java

@ -91,4 +91,4 @@ public final class Peer {
public final PeerPhysicalPath[] paths() {
return paths;
}
}
}

2
java/src/com/zerotier/sdk/PeerPhysicalPath.java

@ -75,4 +75,4 @@ public final class PeerPhysicalPath {
public final boolean isPreferred() {
return preferred;
}
}
}

1
java/src/com/zerotier/sdk/PeerRole.java

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public enum PeerRole {
/**
* An ordinary node
*/

3
java/src/com/zerotier/sdk/ResultCode.java

@ -36,6 +36,7 @@ package com.zerotier.sdk;
* problem.</p>
*/
public enum ResultCode {
/**
* Operation completed normally
*/
@ -76,4 +77,4 @@ public enum ResultCode {
public boolean isFatal(int id) {
return (id > 100 && id < 1000);
}
}
}

4
java/src/com/zerotier/sdk/VirtualNetworkConfigListener.java

@ -25,11 +25,11 @@
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface VirtualNetworkConfigListener {
/**
* Callback called to update virtual network port configuration
*
@ -57,4 +57,4 @@ public interface VirtualNetworkConfigListener {
long nwid,
VirtualNetworkConfigOperation op,
VirtualNetworkConfig config);
}
}

2
java/src/com/zerotier/sdk/VirtualNetworkConfigOperation.java

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkConfigOperation {
/**
* Network is coming up (either for the first time or after service restart)
*/

1
java/src/com/zerotier/sdk/VirtualNetworkFrameListener.java

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public interface VirtualNetworkFrameListener {
/**
* Function to send a frame out to a virtual network port
*

2
java/src/com/zerotier/sdk/VirtualNetworkStatus.java

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkStatus {
/**
* Waiting for network configuration (also means revision == 0)
*/

2
java/src/com/zerotier/sdk/VirtualNetworkType.java

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkType {
/**
* Private networks are authorized via certificates of membership
*/

Loading…
Cancel
Save