* This file provides APIs related to thread pool.
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <errno.h>
#include <pthread.h>
#include "cathreadpool.h"
void CAHandleRequestResponseCallbacks();
/**
+ * Setting the Callback funtion for network state change callback.
+ * @param[in] nwMonitorHandler callback for network state change.
+ */
+void CASetNetworkMonitorCallback(CANetworkMonitorCallback nwMonitorHandler);
+
+/**
* To log the PDU data.
* @param[in] pdu pdu data.
* @param[in] endpoint endpoint
#include "caleinterface.h"
-#include<stdio.h>
-#include<stdlib.h>
-#include<string.h>
-#include<glib.h>
-#include<arpa/inet.h>
-#include<sys/types.h>
-#include<sys/socket.h>
-#include<netinet/in.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <arpa/inet.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
#include <bluetooth.h>
#include <bluetooth_internal.h>
#include <bluetooth_type.h>
-
#include "camutex.h"
#include "caleadapter.h"
#include "caadapterutils.h"
+#include "oic_string.h"
+#include "oic_malloc.h"
/**
* Logging tag for module name
VERIFY_NON_NULL_VOID(remoteAddress, TAG, "remote address is NULL");
ca_mutex_lock(g_bleConnectionStateChangedCbMutex);
- const char *addr = OICStrdup(remoteAddress);
+ char *addr = OICStrdup(remoteAddress);
if (NULL == addr)
{
OIC_LOG(ERROR, TAG, "addr is NULL");
*
******************************************************************/
-#include <bluetooth.h>
-#include <bluetooth_type.h>
-#include <bluetooth_internal.h>
-
#include "caleserver.h"
#include "cacommon.h"
#include "cacommonutil.h"
#ifndef TZ_BLE_SERVER_H_
#define TZ_BLE_SERVER_H_
+#include <bluetooth.h>
+#include <bluetooth_type.h>
+#include <bluetooth_internal.h>
+
#include "caadapterinterface.h"
#include "logger.h"
#include "cathreadpool.h"
*
******************************************************************/
+#ifndef __APPLE_USE_RFC_3542
#define __APPLE_USE_RFC_3542 // for PKTINFO
+#endif
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE // for in6_pktinfo
+#endif
#include <sys/types.h>
#include <sys/socket.h>
#include "camanagerleinterface.h"
#include "cacommon.h"
+#include "camessagehandler.h"
#include "caleserver.h"
#include "cagattservice.h"
#include "logger.h"