VERIFY_NON_NULL_VOID(env, TAG, "env");
VERIFY_NON_NULL_VOID(obj, TAG, "obj");
VERIFY_NON_NULL_VOID(device, TAG, "device");
+ (void)status;
// STATE_DISCONNECTED
jint state_disconnected = CALEGetConstantsValue(env, CLASSPATH_BT_PROFILE,
CAResult_t CAInitializeLEAdapter(const ca_thread_pool_t threadPool)
{
+ (void)threadPool;
#if !GLIB_CHECK_VERSION(2,36,0)
/*
Initialize the GLib type system.
CAResult_t CASetLENWConnectionStateChangedCb(CALEConnectionStateChangedCallback callback)
{
- //TODO
- return CA_STATUS_OK;
+ (void)callback;
+ return CA_NOT_SUPPORTED;
}
CAResult_t CAGetLEAddress(char **local_address)
CAResult_t CASetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CASetClientAutoConnectionDeviceInfo");
-
+ (void)address;
return CA_NOT_SUPPORTED;
}
CAResult_t CAUnsetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CAUnsetClientAutoConnectionDeviceInfo");
-
+ (void)address;
return CA_NOT_SUPPORTED;
}
CAResult_t CASetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CASetLEClientAutoConnectionDeviceInfo");
-
+ (void)address;
return CA_NOT_SUPPORTED;
}
CAResult_t CAUnsetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CAUnsetLEClientAutoConnectionDeviceInfo");
-
+ (void)address;
return CA_NOT_SUPPORTED;
}
CAResult_t CASetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CASetLEClientAutoConnectionDeviceInfo");
+ (void)address;
return CA_NOT_SUPPORTED;
}
CAResult_t CAUnsetLEClientAutoConnectionDeviceInfo(const char * address)
{
OIC_LOG(DEBUG, TAG, "CAUnsetLEClientAutoConnectionDeviceInfo");
+ (void)address;
return CA_NOT_SUPPORTED;
}
static void CAManagerAdapterMonitorHandler(const CAEndpoint_t *info, CANetworkStatus_t status)
{
- (void)info;
- (void)status;
-
if (CA_INTERFACE_DOWN == status)
{
- g_adapterStateCB(info->adapter, false);
- OIC_LOG(DEBUG, TAG, "Pass the disabled adapter state to upper layer");
+ if (info && g_adapterStateCB)
+ {
+ g_adapterStateCB(info->adapter, false);
+ OIC_LOG(DEBUG, TAG, "Pass the disabled adapter state to upper layer");
+ }
}
else if (CA_INTERFACE_UP == status)
{
- g_adapterStateCB(info->adapter, true);
- OIC_LOG(DEBUG, TAG, "Pass the enabled adapter state to upper layer");
+ if (info && g_adapterStateCB)
+ {
+ g_adapterStateCB(info->adapter, true);
+ OIC_LOG(DEBUG, TAG, "Pass the enabled adapter state to upper layer");
+ }
}
}
static void CAManagerConnectionMonitorHandler(CATransportAdapter_t adapter,
const char *remoteAddress, bool connected)
{
+ (void)adapter;
+
if (!remoteAddress)
{
OIC_LOG(ERROR, TAG, "remoteAddress is NULL");