Lines Matching refs:resource
49 destroy_buffer(struct wl_resource *resource)
51 struct wl_drm_buffer *buffer = resource->data;
59 buffer_destroy(struct wl_client *client, struct wl_resource *resource)
61 wl_resource_destroy(resource);
69 create_buffer(struct wl_client *client, struct wl_resource *resource,
76 struct wl_drm *drm = resource->data;
81 wl_resource_post_no_memory(resource);
98 wl_resource_post_error(resource,
104 buffer->buffer.resource.object.id = id;
105 buffer->buffer.resource.object.interface = &wl_buffer_interface;
106 buffer->buffer.resource.object.implementation =
108 buffer->buffer.resource.data = buffer;
110 buffer->buffer.resource.destroy = destroy_buffer;
111 buffer->buffer.resource.client = resource->client;
113 wl_client_add_resource(resource->client, &buffer->buffer.resource);
117 drm_create_buffer(struct wl_client *client, struct wl_resource *resource,
127 wl_resource_post_error(resource,
133 create_buffer(client, resource, id,
139 struct wl_resource *resource,
156 wl_resource_post_error(resource,
162 create_buffer(client, resource, id, name, width, height, format,
168 struct wl_resource *resource, uint32_t id)
170 struct wl_drm *drm = resource->data;
173 wl_resource_post_error(resource,
177 wl_resource_post_event(resource, WL_DRM_AUTHENTICATED);
190 struct wl_resource *resource;
192 resource = wl_client_add_object(client, &wl_drm_interface,
194 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name);
195 wl_resource_post_event(resource, WL_DRM_FORMAT,
197 wl_resource_post_event(resource, WL_DRM_FORMAT,
199 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV410);
200 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV411);
201 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV420);
202 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV422);
203 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV444);
204 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV12);
205 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV16);
206 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUYV);
240 return buffer->resource.object.implementation ==