jni: Extending native interface to NFD
- `startNfd` now accepts Map<String, String> instead of just a single
String/homeDir parameter.
- new `getNfdLogModules` method returns all available log modules
Change-Id: I597579c69be06607de0734c034226fe9a359a2bc
Refs: #2746, #2623
diff --git a/app/src/main/jni/nfd-wrapper.hpp b/app/src/main/jni/nfd-wrapper.hpp
index 97e3cc1..fcd598d 100644
--- a/app/src/main/jni/nfd-wrapper.hpp
+++ b/app/src/main/jni/nfd-wrapper.hpp
@@ -26,13 +26,14 @@
#ifdef __cplusplus
extern "C" {
#endif
+
/*
* Class: net_named_data_nfd_service_NfdService
* Method: startNfd
- * Signature: (Ljava/lang/String;)V
+ * Signature: (Ljava/lang/Map;)V
*/
JNIEXPORT void JNICALL
-Java_net_named_1data_nfd_service_NfdService_startNfd(JNIEnv*, jclass, jstring);
+Java_net_named_1data_nfd_service_NfdService_startNfd(JNIEnv*, jclass, jobject);
/*
* Class: net_named_data_nfd_service_NfdService
@@ -42,6 +43,14 @@
JNIEXPORT void JNICALL
Java_net_named_1data_nfd_service_NfdService_stopNfd(JNIEnv*, jclass);
+/*
+ * Class: net_named_data_nfd_service_NfdService
+ * Method: getNfdLogModules
+ * Signature: ()Ljava/util/List;
+ */
+JNIEXPORT jobject JNICALL
+Java_net_named_1data_nfd_service_NfdService_getNfdLogModules(JNIEnv*, jclass);
+
#ifdef __cplusplus
}
#endif