* This file contains the APIs for EDR adapters to be implemented.
*/
-#ifndef __CA_EDRADAPTER_SINGLETHREAD_H_
-#define __CA_EDRADAPTER_SINGLETHREAD_H_
+#ifndef CA_EDRADAPTER_SINGLETHREAD_H_
+#define CA_EDRADAPTER_SINGLETHREAD_H_
/**
* EDR Interface AP
*/
CAResult_t CAInitializeEDR(CARegisterConnectivityCallback registerCallback,
CANetworkPacketReceivedCallback reqRespCallback,
- CANetworkChangeCallback netCallback);
+ CAAdapterChangeCallback netCallback);
/**
* @brief Starting EDR connectivity adapters. As its peer to peer it doesnot require to start
CAResult_t CAStartEDRListeningServer();
/**
+ * @brief Stops listening server for receiving multicast search requests.
+ *
+ * @return #CA_STATUS_OK or Appropriate error code
+ */
+CAResult_t CAStopEDRListeningServer();
+
+/**
* @brief Starts discovery server for receiving multicast advertisements.
* Starts RFCOMM Server with prefixed UUID as per OIC specification.
* @return #CA_STATUS_OK or Appropriate error code
/**
* @brief Sends data to the peer bluetooth OIC device using the adapter connectivity.
- * @param remoteEndpoint [IN] Remote Endpoint information (like ipaddress, port, reference uri and
+ * @param endpoint [IN] Remote Endpoint information (like ipaddress, port, reference uri and
* connectivity type) to which the unicast data has to be sent.
* @param data [IN] Data to be sent.
* @param dataLength [IN] Size of data to be sent.
* @return Number of bytes sent on the network. Returns -1 on error.
*/
-int32_t CASendEDRUnicastData(const CARemoteEndpoint_t *remoteEndpoint, const void *data,
+int32_t CASendEDRUnicastData(const CAEndpoint_t *remoteEndpoint, const void *data,
uint32_t dataLength);
/**
* @retval #CA_STATUS_FAILED Operation failed
* @remarks info is allocated in this API and should be freed by the caller.
*/
-CAResult_t CAGetEDRInterfaceInformation(CALocalConnectivity_t **info, uint32_t *size);
+CAResult_t CAGetEDRInterfaceInformation(CAEndpoint_t **info, uint32_t *size);
/**
* @brief Read Synchronous API callback.
} /* extern "C" */
#endif
-#endif //__CA_EDRADAPTER_SINGLETHREAD_H_
+#endif /* CA_EDRADAPTER_SINGLETHREAD_H_ */