fix java build failure issue 23/16423/4
authorjihwan.seo <jihwan.seo@samsung.com>
Mon, 16 Jan 2017 04:15:47 +0000 (13:15 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 17 Jan 2017 08:47:19 +0000 (08:47 +0000)
Change-Id: I81328799cf95ebd85ea7de72faeef783f7be8e71
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16423
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/api/cautilinterface.h
resource/csdk/connectivity/util/src/cautilinterface.c

index 21fd27b..094fdd6 100644 (file)
@@ -196,7 +196,6 @@ CAResult_t CAUtilSetLEScanInterval(jint intervalTime, jint workingCount);
 CAResult_t CAUtilStopLEScan();
 #endif //__JAVA__
 
-#if defined(LE_ADAPTER)
 // BLE util
 /**
  * start BLE advertising.
@@ -209,7 +208,6 @@ CAResult_t CAUtilStartLEAdvertising();
  * @return  ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
  */
 CAResult_t CAUtilStopLEAdvertising();
-#endif // LE_ADAPTER
 
 #ifdef __cplusplus
 } /* extern "C" */
index b5690f4..af1118a 100644 (file)
@@ -314,11 +314,10 @@ CAResult_t CAUtilStopLEScan()
 }
 #endif // __JAVA__
 
-#if defined(LE_ADAPTER)
 CAResult_t CAUtilStartLEAdvertising()
 {
     OIC_LOG(DEBUG, TAG, "CAUtilStartLEAdvertising");
-#if defined(__ANDROID__) || defined(__TIZEN__)
+#if defined(__ANDROID__)
     return CAManagerLEStartAdvertising();
 #else
     OIC_LOG(DEBUG, TAG, "it is not supported");
@@ -329,11 +328,10 @@ CAResult_t CAUtilStartLEAdvertising()
 CAResult_t CAUtilStopLEAdvertising()
 {
     OIC_LOG(DEBUG, TAG, "CAUtilStopLEAdvertising");
-#if defined(__ANDROID__) || defined(__TIZEN__)
+#if defined(__ANDROID__)
     return CAManagerLEStopAdvertising();
 #else
     OIC_LOG(DEBUG, TAG, "it is not supported");
     return CA_NOT_SUPPORTED;
 #endif
 }
-#endif