diff options
author | Benjamin Franzke <[email protected]> | 2011-09-01 08:48:27 +0200 |
---|---|---|
committer | Benjamin Franzke <[email protected]> | 2011-09-01 11:44:25 +0200 |
commit | 59884b9b5922ceb87e5d24acc36ffc70570a873d (patch) | |
tree | 160383bd51964002780622fee9f729496fa9be3e /src/egl/wayland | |
parent | db3a7c366b51e4ae006697b73c1ebca8559bfa13 (diff) |
wayland-drm: Fix compilation with wayland master
c661ecce introduced some not-yet-upstream stuff.
Diffstat (limited to 'src/egl/wayland')
-rw-r--r-- | src/egl/wayland/wayland-drm/wayland-drm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 372faf70806..443744c1b44 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -95,9 +95,9 @@ drm_create_buffer(struct wl_client *client, struct wl_resource *resource, case WL_DRM_FORMAT_XRGB32: break; default: - wl_resource_post_error(resource, - WL_DRM_ERROR_INVALID_FORMAT, - "invalid format"); + wl_client_post_error(client, &resource->object, + WL_DRM_ERROR_INVALID_FORMAT, + "invalid format"); return; } @@ -118,9 +118,9 @@ drm_create_buffer(struct wl_client *client, struct wl_resource *resource, stride, format); if (buffer->driver_buffer == NULL) { - wl_resource_post_error(resource, - WL_DRM_ERROR_INVALID_NAME, - "invalid name"); + wl_client_post_error(client, &resource->object, + WL_DRM_ERROR_INVALID_NAME, + "invalid name"); return; } @@ -143,9 +143,9 @@ drm_authenticate(struct wl_client *client, struct wl_drm *drm = resource->data; if (drm->callbacks->authenticate(drm->user_data, id) < 0) - wl_resource_post_error(resource, - WL_DRM_ERROR_AUTHENTICATE_FAIL, - "authenicate failed"); + wl_client_post_error(client, &resource->object, + WL_DRM_ERROR_AUTHENTICATE_FAIL, + "authenicate failed"); else wl_resource_post_event(resource, WL_DRM_AUTHENTICATED); } |