[IOT-1829] findResourceList is not implemented in Java API
authorLarry Sachs <larry.j.sachs@intel.com>
Mon, 6 Mar 2017 23:02:40 +0000 (15:02 -0800)
committerRick Bell <richard.s.bell@intel.com>
Wed, 8 Mar 2017 08:16:31 +0000 (08:16 +0000)
commitdedfc9ebe08c85f3263dc15aaf3bac89decb3db4
tree5c3e8f5521837ecfa67d0f55e4802540ebcf1acc
parent809ccf01cc31e663e177e0292e17099dc06502bd
[IOT-1829] findResourceList is not implemented in Java API

Added jni calls to support new c sdk api to return a list of resources.

OcPlatform.java now has findResources() methods that take a
OnResourcesFoundListener as a callback which has a method for the
returned array of found resources.

Change-Id: Ia874294d0a73b35f7bd23b15d9c122df2622cfdc
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17713
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
java/iotivity-android/src/main/java/org/iotivity/base/OcPlatform.java
java/iotivity-linux/src/main/java/org/iotivity/base/OcPlatform.java
java/jni/JniOcPlatform.cpp
java/jni/JniOcPlatform.h
java/jni/JniOnResourcesFoundListener.cpp [new file with mode: 0644]
java/jni/JniOnResourcesFoundListener.h [new file with mode: 0644]
java/jni/JniUtils.cpp
java/jni/JniUtils.h
java/jni/SConscript