case WL_DRM_FORMAT_XRGB32:
break;
default:
- wl_client_post_error(client, &resource->object,
- WL_DRM_ERROR_INVALID_FORMAT,
- "invalid format");
+ wl_resource_post_error(resource,
+ WL_DRM_ERROR_INVALID_FORMAT,
+ "invalid format");
return;
}
buffer = calloc(1, sizeof *buffer);
if (buffer == NULL) {
- wl_client_post_no_memory(resource->client);
+ wl_resource_post_no_memory(resource);
return;
}
stride, format);
if (buffer->driver_buffer == NULL) {
- wl_client_post_error(client, &resource->object,
- WL_DRM_ERROR_INVALID_NAME,
- "invalid name");
+ wl_resource_post_error(resource,
+ WL_DRM_ERROR_INVALID_NAME,
+ "invalid name");
return;
}
struct wl_drm *drm = resource->data;
if (drm->callbacks->authenticate(drm->user_data, id) < 0)
- wl_client_post_error(client, &resource->object,
- WL_DRM_ERROR_AUTHENTICATE_FAIL,
- "authenicate failed");
+ wl_resource_post_error(resource,
+ WL_DRM_ERROR_AUTHENTICATE_FAIL,
+ "authenicate failed");
else
wl_resource_post_event(resource, WL_DRM_AUTHENTICATED);
}