static const struct android_wlegl_handle_interface server_handle_impl = { add_fd, destroy };
server_wlegl_handle * server_wlegl_handle_create(uint32_t id) { server_wlegl_handle *handle = new server_wlegl_handle;
memset(handle, 0, sizeof(*handle));
handle->resource.object.id = id; handle->resource.object.interface = &android_wlegl_handle_interface; handle->resource.object.implementation = (void (**)(void))&server_handle_impl;
handle->resource.destroy = server_wlegl_handle_dtor; handle->resource.data = handle;
wl_array_init(&handle->ints); wl_array_init(&handle->fds);
return handle; } |
[링크 : https://github.com/libhybris/libhybris/blob/master/hybris/egl/platforms/common/server_wlegl_handle.cpp]
extern const struct wl_interface android_wlegl_handle_interface; |
[링크 : https://github.com/groleo/simple-yuv/blob/master/wayland-android-client-protocol.h]