Commit 9e0756c9 authored by Philippe Coval's avatar Philippe Coval Committed by Dave Thaler

connectivity: Declare strict void function

Declare void functions as strict prototype

If built along -Wstrict-prototypes it will raise and error,
this is the case on TizenRT.

More patches to come to enable this flag by default.

Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: I71c37805b5fb60b4d8e1c78845194979fb18f9af
Origin: https://gerrit.iotivity.org/gerrit/#/c/23969/Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
parent 9fd38cfd
......@@ -94,7 +94,7 @@ CAResult_t CAInitialize(CATransportAdapter_t transportType);
* Terminate the connectivity abstraction module.
* All threads, data structures are destroyed for next initializations.
*/
void CATerminate();
void CATerminate(void);
/**
* Starts listening servers.
......@@ -102,14 +102,14 @@ void CATerminate();
* Based on the adapters configurations, different kinds of servers are started.
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_STATUS_NOT_INITIALIZED
*/
CAResult_t CAStartListeningServer();
CAResult_t CAStartListeningServer(void);
/**
* Stops the server from receiving the multicast traffic. This is used by sleeping
* device to not receives the multicast traffic.
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_STATUS_NOT_INITIALIZED
*/
CAResult_t CAStopListeningServer();
CAResult_t CAStopListeningServer(void);
/**
* Starts discovery servers.
......@@ -117,7 +117,7 @@ CAResult_t CAStopListeningServer();
* Based on the adapters configurations, different kinds of servers are started.
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED or ::CA_STATUS_NOT_INITIALIZED
*/
CAResult_t CAStartDiscoveryServer();
CAResult_t CAStartDiscoveryServer(void);
/**
* Register request callbacks and response callbacks.
......@@ -223,13 +223,13 @@ CAResult_t CAGetNetworkInformation(CAEndpoint_t **info, size_t *size);
*
* @return Bit combinations of CATransportAdapter_t enumeration which indicate enabled adapter.
*/
CATransportAdapter_t CAGetSelectedNetwork();
CATransportAdapter_t CAGetSelectedNetwork(void);
/**
* To Handle the Request or Response.
* @return ::CA_STATUS_OK or ::CA_STATUS_NOT_INITIALIZED
*/
CAResult_t CAHandleRequestResponse();
CAResult_t CAHandleRequestResponse(void);
#ifdef RA_ADAPTER
/**
......
......@@ -252,13 +252,13 @@ CAResult_t CAUtilStopLEScan(void);
* start BLE advertising.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAUtilStartLEAdvertising();
CAResult_t CAUtilStartLEAdvertising(void);
/**
* stop BLE advertising.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAUtilStopLEAdvertising();
CAResult_t CAUtilStopLEAdvertising(void);
/**
* set CAUtil BT configure.
......
......@@ -47,7 +47,7 @@ typedef struct u_arraylist_t
* API to creates array list and initializes the elements.
* @return u_arraylist_t if Success, NULL otherwise.
*/
u_arraylist_t *u_arraylist_create();
u_arraylist_t *u_arraylist_create(void);
/**
* Resets and deletes the array list.
......
......@@ -60,7 +60,7 @@ struct linked_list_data
* API to create link list and initializes the elements.
* @return u_linklist_t if Success, NULL otherwise.
*/
u_linklist_t *u_linklist_create();
u_linklist_t *u_linklist_create(void);
/**
* Resets and deletes the link list
......
......@@ -73,7 +73,7 @@ typedef struct u_queue_t
* API to creates queue and initializes the elements.
* @return u_queue_t pointer if Success, NULL otherwise.
*/
u_queue_t *u_queue_create();
u_queue_t *u_queue_create(void);
/**
* Resets and deletes the queue.
......
......@@ -31,7 +31,7 @@
*/
#define U_ARRAYLIST_DEFAULT_CAPACITY 1
u_arraylist_t *u_arraylist_create()
u_arraylist_t *u_arraylist_create(void)
{
u_arraylist_t *list = (u_arraylist_t *) OICCalloc(1, sizeof(u_arraylist_t));
if (!list)
......
......@@ -29,7 +29,7 @@
*/
#define TAG "OIC_ULINKLIST"
u_linklist_t *u_linklist_create()
u_linklist_t *u_linklist_create(void)
{
u_linklist_t *header = (u_linklist_t *)OICMalloc(sizeof(u_linklist_t));
if (!header)
......
......@@ -37,7 +37,7 @@
*/
#define TAG "OIC_UQUEUE"
u_queue_t *u_queue_create()
u_queue_t *u_queue_create(void)
{
u_queue_t *queuePtr = (u_queue_t *) OICMalloc(sizeof(u_queue_t));
if (NULL == queuePtr)
......
......@@ -101,12 +101,12 @@ CAResult_t CAcloseSslConnection(const CAEndpoint_t *endpoint);
* @retval ::CA_STATUS_FAILED Operation failed.
*
*/
CAResult_t CAinitSslAdapter();
CAResult_t CAinitSslAdapter(void);
/**
* de-inits mbedTLS library and free the allocated memory.
*/
void CAdeinitSslAdapter();
void CAdeinitSslAdapter(void);
/**
* Performs TLS encryption of the CoAP PDU.
......
......@@ -44,7 +44,7 @@ extern "C"
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED
* ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
typedef CAResult_t (*CAAdapterStart)();
typedef CAResult_t (*CAAdapterStart)(void);
/**
* Starting listening server for receiving multicast search requests
......@@ -56,7 +56,7 @@ typedef CAResult_t (*CAAdapterStart)();
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED
* ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
typedef CAResult_t (*CAAdapterStartListeningServer)();
typedef CAResult_t (*CAAdapterStartListeningServer)(void);
/**
* Stopping listening server to not receive multicast search requests
......@@ -67,7 +67,7 @@ typedef CAResult_t (*CAAdapterStartListeningServer)();
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED
* ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
typedef CAResult_t (*CAAdapterStopListeningServer)();
typedef CAResult_t (*CAAdapterStopListeningServer)(void);
/**
* for starting discovery servers for receiving multicast advertisements
......@@ -79,7 +79,7 @@ typedef CAResult_t (*CAAdapterStopListeningServer)();
* @return ::CA_STATUS_OK or ::CA_STATUS_FAILED
* ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
typedef CAResult_t (*CAAdapterStartDiscoveryServer)();
typedef CAResult_t (*CAAdapterStartDiscoveryServer)(void);
/**
* Sends data to the endpoint using the adapter connectivity.
......@@ -120,7 +120,7 @@ typedef CAResult_t (*CAAdapterGetNetworkInfo)(CAEndpoint_t **info, size_t *size)
* Read Synchronous API callback.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h)
*/
typedef CAResult_t (*CAAdapterReadData)();
typedef CAResult_t (*CAAdapterReadData)(void);
/**
* Stopping the adapters and close socket connections.
......@@ -130,13 +130,13 @@ typedef CAResult_t (*CAAdapterReadData)();
* LE Stops all GATT servers and close sockets.
* @return CA_STATUS_OK or ERROR CODES ( CAResult_t error codes in cacommon.h)
*/
typedef CAResult_t (*CAAdapterStop)();
typedef CAResult_t (*CAAdapterStop)(void);
/**
* Terminate the connectivity adapter.Configuration information will be deleted from
* further use. Freeing Memory of threadpool and mutexs and cleanup will be done.
*/
typedef void (*CAAdapterTerminate)();
typedef void (*CAAdapterTerminate)(void);
/**
* Connectivity handler information for adapter.
......
......@@ -145,18 +145,18 @@ CAResult_t CAInitializeBlockWiseTransfer(CASendThreadFunc blockSendMethod,
* Terminate the block-wise transfer context.
* @return ::CASTATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CATerminateBlockWiseTransfer();
CAResult_t CATerminateBlockWiseTransfer(void);
/**
* initialize mutex.
* @return ::CASTATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAInitBlockWiseMutexVariables();
CAResult_t CAInitBlockWiseMutexVariables(void);
/**
* terminate mutex.
*/
void CATerminateBlockWiseMutexVariables();
void CATerminateBlockWiseMutexVariables(void);
/**
* Pass the bulk data. if block-wise transfer process need,
......@@ -580,7 +580,7 @@ CAResult_t CARemoveBlockDataFromList(const CABlockDataID_t *blockID);
* Remove all block data in block-wise transfer list.
* @return ::CASTATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CARemoveAllBlockDataFromList();
CAResult_t CARemoveAllBlockDataFromList(void);
/**
* Find the block data with seed info and remove it from block-wise transfer list.
......@@ -614,7 +614,7 @@ CABlockMulticastData_t *CAGetBlockMulticastDataFromListWithSeed(const CAToken_t
* Remove all block multicast data in list.
* @return ::CASTATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CARemoveAllBlockMulticastDataFromList();
CAResult_t CARemoveAllBlockMulticastDataFromList(void);
/**
* Find the block data with seed info and remove it.
......
......@@ -64,7 +64,7 @@ CAResult_t CAInitializeEDR(CARegisterConnectivityCallback registerCallback,
* As its peer to peer it does not require to start any servers.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStartEDR();
CAResult_t CAStartEDR(void);
/**
* Starts listening server for receiving multicast search requests.
......@@ -72,7 +72,7 @@ CAResult_t CAStartEDR();
*
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStartEDRListeningServer();
CAResult_t CAStartEDRListeningServer(void);
/**
* Stop listening server for receiving multicast search requests.
......@@ -80,7 +80,7 @@ CAResult_t CAStartEDRListeningServer();
*
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStopEDRListeningServer();
CAResult_t CAStopEDRListeningServer(void);
/**
* Starting discovery server for receiving multicast advertisements.
......@@ -88,7 +88,7 @@ CAResult_t CAStopEDRListeningServer();
*
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStartEDRDiscoveryServer();
CAResult_t CAStartEDRDiscoveryServer(void);
/**
* Sends data to the peer bluetooth OIC device using the adapter connectivity.
......@@ -128,26 +128,26 @@ CAResult_t CAGetEDRInterfaceInformation(CAEndpoint_t **info, size_t *size);
* Read Synchronous API callback.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAReadEDRData();
CAResult_t CAReadEDRData(void);
/**
* EDR Stops all RFCOMM servers and close sockets.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStopEDR();
CAResult_t CAStopEDR(void);
/**
* Terminate the EDR connectivity adapter.
* Configuration information will be deleted from further use.
*/
void CATerminateEDR();
void CATerminateEDR(void);
/**
* Initializes the adapter queues.
* This will initiates both server and receiver adapter queues.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAAdapterStartQueue();
CAResult_t CAAdapterStartQueue(void);
#ifdef __cplusplus
} /* extern "C" */
......
......@@ -65,7 +65,7 @@ CAResult_t CAInitializeEDR(CARegisterConnectivityCallback registerCallback,
* @retval #CA_ADAPTER_NOT_ENABLED Bluetooth adapter is not enabled
* @retval #CA_STATUS_FAILED Operation failed
*/
CAResult_t CAStartEDR();
CAResult_t CAStartEDR(void);
/**
* @brief Starts listening server for receiving multicast search requests.
......@@ -76,14 +76,14 @@ CAResult_t CAStartEDR();
* service UUID
* @retval #CA_STATUS_FAILED Operation failed
*/
CAResult_t CAStartEDRListeningServer();
CAResult_t CAStartEDRListeningServer(void);
/**
* @brief Stops listening server for receiving multicast search requests.
*
* @return #CA_STATUS_OK or Appropriate error code
*/
CAResult_t CAStopEDRListeningServer();
CAResult_t CAStopEDRListeningServer(void);
/**
* @brief Starts discovery server for receiving multicast advertisements.
......@@ -94,7 +94,7 @@ CAResult_t CAStopEDRListeningServer();
* service UUID
* @retval #CA_STATUS_FAILED Operation failed
*/
CAResult_t CAStartEDRDiscoveryServer();
CAResult_t CAStartEDRDiscoveryServer(void);
/**
* @brief Sends data to the peer bluetooth OIC device using the adapter connectivity.
......@@ -137,20 +137,20 @@ CAResult_t CAGetEDRInterfaceInformation(CAEndpoint_t **info, size_t *size);
* @retval #CA_STATUS_OK Successful
* @retval #CA_STATUS_FAILED Operation failed
*/
CAResult_t CAReadEDRData();
CAResult_t CAReadEDRData(void);
/**
* @brief EDR Stops all RFCOMM servers and close sockets.
* @return #CA_STATUS_OK or Appropriate error code
*/
CAResult_t CAStopEDR();
CAResult_t CAStopEDR(void);
/**
* @brief Terminate the EDR connectivity adapter.
* Configuration information will be deleted from further use.
* @return NONE
*/
void CATerminateEDR();
void CATerminateEDR(void);
#ifdef __cplusplus
} /* extern "C" */
......
......@@ -98,7 +98,7 @@ void CAStopAdapter(CATransportAdapter_t transportType);
/**
* Stop connectivity adapters all.
*/
void CAStopAdapters();
void CAStopAdapters(void);
#ifdef RA_ADAPTER
/**
......@@ -146,19 +146,19 @@ CAResult_t CASendMulticastData(const CAEndpoint_t *endpoint, const void *data,
* Start listening servers to receive search requests from clients.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStartListeningServerAdapters();
CAResult_t CAStartListeningServerAdapters(void);
/**
* Stop listening servers to receive search requests from clients.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStopListeningServerAdapters();
CAResult_t CAStopListeningServerAdapters(void);
/**
* Start discovery servers to receive advertisements from server.
* @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h).
*/
CAResult_t CAStartDiscoveryServerAdapters();
CAResult_t CAStartDiscoveryServerAdapters(void);
/**
* Check whether the endpoint is my own or not.
......@@ -169,7 +169,7 @@ bool CAIsLocalEndpoint(const CAEndpoint_t *ep);
/**
* Terminates the adapters which are initialized during the initialization.
*/
void CATerminateAdapters();
void CATerminateAdapters(void);
#ifdef __cplusplus
......
......@@ -110,25 +110,25 @@ CAResult_t CASendMulticastData(const CAEndpoint_t *endpoint, const void *data, u
* @brief Start listening servers to receive search requests from clients
* @return CA_STATUS_OK or ERROR CODES ( CAResult_t error codes in cacommon.h)
*/
CAResult_t CAStartListeningServerAdapters();
CAResult_t CAStartListeningServerAdapters(void);
/**
* @brief Stops listening servers to receive search requests from clients
* @return CA_STATUS_OK or ERROR CODES ( CAResult_t error codes in cacommon.h)
*/
CAResult_t CAStopListeningServerAdapters();
CAResult_t CAStopListeningServerAdapters(void);
/**
* @brief Start discovery servers to receive advertisements from server
* @return CA_STATUS_OK or ERROR CODES ( CAResult_t error codes in cacommon.h)
*/
CAResult_t CAStartDiscoveryServerAdapters();
CAResult_t CAStartDiscoveryServerAdapters(void);
/**
* @brief Terminates the adapters which are initialized during the initialization
* @return none
*/
void CATerminateAdapters();
void CATerminateAdapters(void);
/**
* @brief Checks for available data and reads it
......
......@@ -57,7 +57,7 @@ CAResult_t CAInitializeIP(CARegisterConnectivityCallback registerCallback,
* Start IP Interface adapter.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAStartIP();
CAResult_t CAStartIP(void);
/**
* Start listening server for receiving multicast search requests.
......@@ -66,7 +66,7 @@ CAResult_t CAStartIP();
* number and as per OIC Specification.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAStartIPListeningServer();
CAResult_t CAStartIPListeningServer(void);
/**
* Stop listening server from receiving multicast search requests.
......@@ -74,7 +74,7 @@ CAResult_t CAStartIPListeningServer();
* IP closes open multicast socket for a particular interface.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAStopIPListeningServer();
CAResult_t CAStopIPListeningServer(void);
/**
* Start discovery servers for receiving multicast advertisements.
......@@ -83,7 +83,7 @@ CAResult_t CAStopIPListeningServer();
* number as per OIC Specification.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAStartIPDiscoveryServer();
CAResult_t CAStartIPDiscoveryServer(void);
/**
* Sends data to the endpoint using the adapter connectivity.
......@@ -125,13 +125,13 @@ CAResult_t CAGetIPInterfaceInformation(CAEndpoint_t **info, size_t *size);
* Read Synchronous API callback.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAReadIPData();
CAResult_t CAReadIPData(void);
/**
* Stops Unicast, Multicast servers and close the sockets.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
CAResult_t CAStopIP();
CAResult_t CAStopIP(void);
/**
* Check whether the endpoint is my own or not.
......@@ -143,7 +143,7 @@ bool CAIPIsLocalEndpoint(const CAEndpoint_t *ep);
* Terminate the IP connectivity adapter.
* Configuration information will be deleted from further use.
*/
void CATerminateIP();
void CATerminateIP(void);
#ifdef __cplusplus
} /* extern "C" */
......
......@@ -85,12 +85,12 @@ CAResult_t CAIPStartServer(const ca_thread_pool_t threadPool);
/**
* Close IP socket.
*/
void CADeInitializeIPGlobals();
void CADeInitializeIPGlobals(void);
/**
* Stop IP server.
*/
void CAIPStopServer();
void CAIPStopServer(void);
/**
* Starts receiving the multicast traffic.
......@@ -98,7 +98,7 @@ void CAIPStopServer();
* This will be used in case sleepy device wants to start back receiving the multicast
* traffic.
*/
CAResult_t CAIPStartListenServer();
CAResult_t CAIPStartListenServer(void);
/**
* Stops the multicast traffic.
......@@ -107,7 +107,7 @@ CAResult_t CAIPStartListenServer();
* Once this is set no multicast traffic will be received. Device can still receive
* the unicast traffic.
*/
CAResult_t CAIPStopListenServer();
CAResult_t CAIPStopListenServer(void);
/**
* Set this callback for receiving data packets from peer devices.
......@@ -141,12 +141,12 @@ void CAIPSendData(CAEndpoint_t *endpoint,
*
* @return True if IP adapter is connected, otherwise false.
*/
bool CAIPIsConnected();
bool CAIPIsConnected(void);
/**
* Pull the Received Data.
*/
void CAIPPullData();
void CAIPPullData(void);
#define CA_COAP 5683
#define CA_SECURE_COAP 5684
......@@ -162,7 +162,7 @@ int CAGetPollingInterval(int interval);
/**
* Tell the IP server an interface has been added.
*/
void CAWakeUpForChange();
void CAWakeUpForChange(void);
/**
* Set callback for error handling.
......
......@@ -99,7 +99,7 @@ u_arraylist_t *CAIPGetInterfaceInformation(int desiredIndex);
*
* @return List of CAInterface_t items.
*/
u_arraylist_t *CAFindInterfaceChange();
u_arraylist_t *CAFindInterfaceChange(void);
/**
* Start network monitor.
......
......@@ -130,7 +130,7 @@ typedef CAResult_t (*CABLEDataReceivedCallback)(const char *remoteAddress,
* @retval ::CA_STATUS_INVALID_PARAM Invalid input arguments
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAInitializeLEAdapter();
CAResult_t CAInitializeLEAdapter(void);
/**
* Start the LE adapter layer.
......@@ -143,7 +143,7 @@ CAResult_t CAInitializeLEAdapter();
*
* @return ::CA_STATUS_OK or Appropriate error code
*/
CAResult_t CAStartLEAdapter();
CAResult_t CAStartLEAdapter(void);
/**
* Stop the LE adapter layer.
......@@ -156,7 +156,7 @@ CAResult_t CAStartLEAdapter();
*
* @return ::CA_STATUS_OK or Appropriate error code
*/
CAResult_t CAStopLEAdapter();
CAResult_t CAStopLEAdapter(void);
/**
* Used to get the current state of the LE adapter.
......@@ -166,7 +166,7 @@ CAResult_t CAStopLEAdapter();
* @retval ::CA_ADAPTER_NOT_ENABLED adapter not enabled
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAGetLEAdapterState();
CAResult_t CAGetLEAdapterState(void);
/**
* Initialize the network monitor layer of the LE adapter. Mutex
......@@ -178,14 +178,14 @@ CAResult_t CAGetLEAdapterState();
* @retval ::CA_STATUS_INVALID_PARAM Invalid input arguments
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAInitializeLENetworkMonitor();
CAResult_t CAInitializeLENetworkMonitor(void);
/**
* Terminate the network monitor layer of the LE adapter. The
* variables initialized in @c CAInitializeLENetworkMonitor() must be
* cleared in this function.
*/
void CATerminateLENetworkMonitor();
void CATerminateLENetworkMonitor(void);
/**
* Set the callback for the device state changes in the adapter.
......@@ -235,7 +235,7 @@ CAResult_t CAGetLEAddress(char **local_address);
* @retval ::CA_STATUS_INVALID_PARAM Invalid input arguments
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAStartLEGattServer();
CAResult_t CAStartLEGattServer(void);
/**
* Stop BLE Gatt Service.
......@@ -245,7 +245,7 @@ CAResult_t CAStartLEGattServer();
* @retval ::CA_STATUS_INVALID_PARAM Invalid input arguments
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAStopLEGattServer();
CAResult_t CAStopLEGattServer(void);
/**
* initialize gatt server
......@@ -254,13 +254,13 @@ CAResult_t CAStopLEGattServer();
* @retval ::CA_STATUS_OK Successful
* @retval ::CA_STATUS_FAILED Operation failed
*/
CAResult_t CAInitializeLEGattServer();
CAResult_t CAInitializeLEGattServer(void);
/**