get_instance(void)
{
struct ilm_control_context *ctx = &ilm_context;
+ lock_context(ctx);
display_roundtrip_queue(ctx->main_ctx.display, ctx->main_ctx.queue);
+ unlock_context(ctx);
return ctx;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pLayerProperties != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pScreenProperties != NULL) {
struct screen_context *ctx_screen = NULL;
pScreenProperties->screenHeight = 0;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if ((pNumberOfIDs != NULL) && (ppIDs != NULL)) {
struct screen_context *ctx_scrn = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if ((pLength != NULL) && (ppArray != NULL)) {
struct layer_context *ctx_layer = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if ((pLength != NULL) && (ppArray != NULL)) {
struct screen_context *ctx_screen = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if ((pLength != NULL) && (ppArray != NULL)) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
t_ilm_surface** ppArray)
{
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
struct surface_context *ctx_surf = NULL;
t_ilm_uint length = 0;
t_ilm_surface* ids = NULL;
if ((pLength == NULL) || (ppArray == NULL)) {
+ unlock_context(ctx);
return ILM_FAILED;
}
&ctx->main_ctx, (uint32_t)layer);
if (ctx_layer == NULL) {
+ unlock_context(ctx);
return ILM_FAILED;
}
length = wl_list_length(&ctx_layer->order.list_surface);
*ppArray = (t_ilm_surface*)malloc(length * sizeof *ppArray);
if (*ppArray == NULL) {
+ unlock_context(ctx);
return ILM_FAILED;
}
}
*pLength = length;
+ unlock_context(ctx);
return ILM_SUCCESS;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
uint32_t layerid = 0;
int32_t is_inside = 0;
}
} while(0);
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
struct layer_context *ctx_next = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
}
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
*pLayerType = wayland_controller_is_inside_layer_list(&ctx->main_ctx.list_layer, layerId) ?
ILM_LAYERTYPE_SOFTWARE2D :
ILM_LAYERTYPE_UNKNOWN;
+ unlock_context(ctx);
return ILM_SUCCESS; // even if non existent?
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pVisibility != NULL) {
struct layer_context *ctx_layer = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pOpacity != NULL) {
struct layer_context *ctx_layer = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pDimension != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pDimension != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pPosition != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pPosition != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
int32_t iviorientation = 0;
returnValue = ILM_SUCCESS;
} while(0);
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
if (pOrientation != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
uint32_t visibility = 0;
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
wl_fixed_t opacity_fixed = 0;
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pOpacity != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pDimension != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pPosition != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pPosition != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
int32_t iviorientation = 0;
returnValue = ILM_SUCCESS;
} while(0);
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pOrientation != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pPixelformat != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct screen_context *ctx_scrn = NULL;
ctx_scrn = get_screen_context_by_id(&ctx->main_ctx, (uint32_t)display);
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct screen_context *ctx_scrn = NULL;
ctx_scrn = get_screen_context_by_id(&ctx->main_ctx, (uint32_t)screen);
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceid);
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
ctx_surf = (struct surface_context*)get_surface_context(
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
t_ilm_nativehandle **p_handles)
{
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct nativehandle_context *p_nh_ctx = NULL;
*n_handle = 0;
}
}
+ unlock_context(ctx);
return (*n_handle > 0) ? ILM_SUCCESS : ILM_FAILED;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pSurfaceProperties != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
struct surface_context *ctx_surf = NULL;
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct layer_context *ctx_layer = NULL;
struct surface_context *ctx_surf = NULL;
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (pDimension != NULL) {
struct surface_context *ctx_surf = NULL;
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
if (pVisibility != NULL) {
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
struct surface_context *ctx_surf = NULL;
ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
}
}
+ unlock_context(ctx);
return returnValue;
}
{
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
+ lock_context(ctx);
if (ctx->main_ctx.controller != NULL) {
ivi_controller_commit_changes(ctx->main_ctx.controller);
returnValue = ILM_SUCCESS;
}
+ unlock_context(ctx);
return returnValue;
}