replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / csdk / connectivity / util / inc / camanagerleinterface.h
index c15b05c..4a0de07 100644 (file)
@@ -48,6 +48,44 @@ CAResult_t CASetLEClientAutoConnectionDeviceInfo();
  */
 CAResult_t CAUnsetLEClientAutoConnectionDeviceInfo();
 
+//custom advertisement data
+#if defined(__TIZEN__) && defined(LE_ADAPTER) && defined(BLE_CUSTOM_ADVERTISE)
+CAResult_t CAManagerLEServerSetAdvertisementData(const char* data, int length);
+CAResult_t CAManagerLEServerSetScanResponseData(const char* data, int length);
+#endif
+
+#if defined(__APPLE__) && defined(LE_ADAPTER)
+/**
+ * initialize client connection manager
+ *
+ * @return  ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_MEMORY_ALLOC_FAILED
+ */
+CAResult_t CAManagerLEClientInitialize();
+
+/**
+ * terminate client connection manager
+ *
+ * @return  ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_MEMORY_ALLOC_FAILED
+ */
+CAResult_t CAManagerLEClientTerminate();
+
+/**
+ * stop BLE scan.
+ */
+void CAManagerLEStopScan();
+
+/**
+ * start BLE scan.
+ */
+void CAManagerLEStartScan();
+
+/**
+ * Disconnect from peripheral
+ */
+void CAManagerLEDisconnect();
+
+#endif
+
 #if defined(__ANDROID__) && defined(LE_ADAPTER)
 /**
  * initialize client connection manager
@@ -74,8 +112,31 @@ CAResult_t CAManagerLEClientTerminate(JNIEnv *env);
  */
 void CAManagerLESetScanInterval(jint intervalTime, jint workingCount);
 
+/**
+ * stop BLE scan.
+ */
+void CAManagerLEStopScan();
 #endif
 
+/**
+ * start BLE advertising.
+ * @return  ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
+ */
+CAResult_t CAManagerLEStartAdvertising();
+
+/**
+ * stop BLE advertising.
+ * @return  ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
+ */
+CAResult_t CAManagerLEStopAdvertising();
+
+
+/**
+ * set CAUtilConfig_t configure.
+ * @param[in]  config       ::CAUtilConfig_t value
+ */
+void CAManagerSetConfigure(CAUtilConfig_t config);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif