mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-06 13:01:47 -07:00
Added implementation for Node.version()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
parent
f5bb57d5aa
commit
3ccaef88b7
4 changed files with 94 additions and 7 deletions
|
@ -222,11 +222,11 @@ public class Node {
|
|||
|
||||
// TODO: ZT1_Node_peers
|
||||
|
||||
private native VirtualNetworkConfig networkConfig(long nodeId);
|
||||
private native VirtualNetworkConfig networkConfig(long nodeId, long nwid);
|
||||
|
||||
// TODO: ZT1_Node_networks
|
||||
|
||||
private native Version version(long nodeId);
|
||||
private native Version version();
|
||||
|
||||
|
||||
}
|
|
@ -28,8 +28,10 @@
|
|||
package com.zerotierone.sdk;
|
||||
|
||||
public class Version {
|
||||
public int major;
|
||||
public int minor;
|
||||
public int revision;
|
||||
public long featureFlags;
|
||||
public Version() {}
|
||||
|
||||
public int major = 0;
|
||||
public int minor = 0;
|
||||
public int revision = 0;
|
||||
public long featureFlags = 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue