added infrastructure for Node.peers() and Node.networks() functions

Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
Grant Limberg 2015-04-23 23:08:28 -07:00
parent 7f6556eba0
commit 9ab7280703
6 changed files with 227 additions and 7 deletions

View file

@ -106,11 +106,27 @@ JNIEXPORT jobject JNICALL Java_com_zerotierone_sdk_Node_networkConfig
/*
* Class: com_zerotierone_sdk_Node
* Method: version
* Signature: (J)Lcom/zerotierone/sdk/Version;
* Signature: ()Lcom/zerotierone/sdk/Version;
*/
JNIEXPORT jobject JNICALL Java_com_zerotierone_sdk_Node_version
(JNIEnv *, jobject);
/*
* Class: com_zerotierone_sdk_Node
* Method: peers
* Signature: (J)Ljava/util/ArrayList;
*/
JNIEXPORT jobject JNICALL Java_com_zerotierone_sdk_Node_peers
(JNIEnv *, jobject, jlong);
/*
* Class: com_zerotierone_sdk_Node
* Method: networks
* Signature: (J)Ljava/util/ArrayList;
*/
JNIEXPORT jobject JNICALL Java_com_zerotierone_sdk_Node_networks
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif