{
assert(context != NULL);
- ca_mutex_lock(context->lock);
+ oc_mutex_lock(context->lock);
for (GList * l = context->devices; l != NULL; l = l->next)
{
}
}
- ca_mutex_unlock(context->lock);
+ oc_mutex_unlock(context->lock);
}
// -----------------------------------------------------------------------
Synchronize access to the adapter information using the base
context lock since we don't own the adapters.
*/
- ca_mutex_lock(context->lock);
+ oc_mutex_lock(context->lock);
/**
* Start discovery on all detected adapters.
CACentralStartDiscoveryImpl,
&result);
- ca_mutex_unlock(context->lock);
+ oc_mutex_unlock(context->lock);
return result;
}
Synchronize access to the adapter information using the base
context lock since we don't own the adapters.
*/
- ca_mutex_lock(context->lock);
+ oc_mutex_lock(context->lock);
// Start discovery on all detected adapters.
g_list_foreach(context->adapters,
CACentralStartDiscoveryImpl,
&result);
- ca_mutex_unlock(context->lock);
+ oc_mutex_unlock(context->lock);
return result;
}
Synchronize access to the adapter information using the base
context lock since we don't own the adapters.
*/
- ca_mutex_lock(context->lock);
+ oc_mutex_lock(context->lock);
// Stop discovery on all detected adapters.
g_list_foreach(context->adapters,
* @todo Stop notifications on all response characteristics.
*/
- ca_mutex_unlock(context->lock);
+ oc_mutex_unlock(context->lock);
return result;
}
{
bool connected = true;
- ca_mutex_lock(context->lock);
+ oc_mutex_lock(context->lock);
// Connect to the LE peripherals, if we're not already connected.
g_list_foreach(context->devices,
CACentralConnectToDevice,
&connected);
- ca_mutex_unlock(context->lock);
+ oc_mutex_unlock(context->lock);
return connected;
}