Lines Matching refs:resource
60 struct wl_resource *resource; member
70 struct wl_resource *resource; member
94 wl_resource_post_error(pool->resource, in shm_pool_finish_resize()
123 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
125 struct wl_shm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
133 shm_buffer_destroy(struct wl_client *client, struct wl_resource *resource) in shm_buffer_destroy() argument
135 wl_resource_destroy(resource); in shm_buffer_destroy()
164 shm_pool_create_buffer(struct wl_client *client, struct wl_resource *resource, in shm_pool_create_buffer() argument
169 struct wl_shm_pool *pool = wl_resource_get_user_data(resource); in shm_pool_create_buffer()
173 wl_resource_post_error(resource, in shm_pool_create_buffer()
182 wl_resource_post_error(resource, in shm_pool_create_buffer()
203 buffer->resource = in shm_pool_create_buffer()
205 if (buffer->resource == NULL) { in shm_pool_create_buffer()
212 wl_resource_set_implementation(buffer->resource, in shm_pool_create_buffer()
218 destroy_pool(struct wl_resource *resource) in destroy_pool() argument
220 struct wl_shm_pool *pool = wl_resource_get_user_data(resource); in destroy_pool()
226 shm_pool_destroy(struct wl_client *client, struct wl_resource *resource) in shm_pool_destroy() argument
228 wl_resource_destroy(resource); in shm_pool_destroy()
232 shm_pool_resize(struct wl_client *client, struct wl_resource *resource, in shm_pool_resize() argument
235 struct wl_shm_pool *pool = wl_resource_get_user_data(resource); in shm_pool_resize()
238 wl_resource_post_error(resource, in shm_pool_resize()
262 shm_create_pool(struct wl_client *client, struct wl_resource *resource, in shm_create_pool() argument
269 wl_resource_post_error(resource, in shm_create_pool()
297 wl_resource_post_error(resource, in shm_create_pool()
305 pool->resource = in shm_create_pool()
307 if (!pool->resource) { in shm_create_pool()
314 wl_resource_set_implementation(pool->resource, in shm_create_pool()
334 struct wl_resource *resource; in bind_shm() local
339 resource = wl_resource_create(client, &wl_shm_interface, 1, id); in bind_shm()
340 if (!resource) { in bind_shm()
345 wl_resource_set_implementation(resource, &shm_interface, data, NULL); in bind_shm()
347 wl_shm_send_format(resource, WL_SHM_FORMAT_ARGB8888); in bind_shm()
348 wl_shm_send_format(resource, WL_SHM_FORMAT_XRGB8888); in bind_shm()
352 wl_shm_send_format(resource, *p); in bind_shm()
365 wl_shm_buffer_get(struct wl_resource *resource) in wl_shm_buffer_get() argument
367 if (resource == NULL) in wl_shm_buffer_get()
370 if (wl_resource_instance_of(resource, &wl_buffer_interface, in wl_shm_buffer_get()
372 return wl_resource_get_user_data(resource); in wl_shm_buffer_get()
634 wl_resource_post_error(buffer->resource, in wl_shm_buffer_end_access()