EGLint error = 0;
struct yagl_display *dpy;
- YAGL_LOG_FUNC_ENTER(eglInitialize, "dpy = %u", (yagl_host_handle)dpy_);
+ YAGL_LOG_FUNC_ENTER(eglInitialize,
+ "dpy = %u",
+ (yagl_host_handle)VOIDP2INT(dpy_));
dpy = yagl_display_get(dpy_);
struct yagl_display *dpy;
EGLBoolean ret = EGL_FALSE;
- YAGL_LOG_FUNC_ENTER(eglTerminate, "dpy = %u", (yagl_host_handle)dpy_);
+ YAGL_LOG_FUNC_ENTER(eglTerminate,
+ "dpy = %u",
+ (yagl_host_handle)VOIDP2INT(dpy_));
if (!yagl_validate_display(dpy_, &dpy)) {
goto out;
YAGL_LOG_FUNC_ENTER(eglQueryString,
"dpy = %u, name = %d",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
name);
switch (name) {
YAGL_LOG_FUNC_ENTER(eglGetConfigs,
"dpy = %u, configs = %p, config_size = %d",
- (yagl_host_handle)dpy,
+ (yagl_host_handle)VOIDP2INT(dpy),
configs,
config_size);
{
EGLint error = 0;
- YAGL_LOG_FUNC_ENTER(eglChooseConfig, "dpy = %u", (yagl_host_handle)dpy);
+ YAGL_LOG_FUNC_ENTER(eglChooseConfig,
+ "dpy = %u",
+ (yagl_host_handle)VOIDP2INT(dpy));
if (!num_config) {
YAGL_SET_ERR(EGL_BAD_PARAMETER);
YAGL_LOG_FUNC_ENTER(eglGetConfigAttrib,
"dpy = %u, config = %u, attribute = 0x%X",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)config,
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(config),
attribute);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglCreateWindowSurface,
"dpy = %u, config = %u",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)config);
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(config));
if (!yagl_validate_display(dpy_, &dpy)) {
goto fail;
YAGL_LOG_FUNC_ENTER(eglCreatePbufferSurface,
"dpy = %u, config = %u",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)config);
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(config));
if (!yagl_validate_display(dpy_, &dpy)) {
goto fail;
YAGL_LOG_FUNC_ENTER(eglCreatePixmapSurface,
"dpy = %u, config = %u",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)config);
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(config));
if (!yagl_validate_display(dpy_, &dpy)) {
goto fail;
YAGL_LOG_FUNC_ENTER(eglDestroySurface,
"dpy = %u, surface = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglQuerySurface,
"dpy = %u, surface = %p, attribute = 0x%X, value = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_,
attribute,
value);
YAGL_LOG_FUNC_ENTER(eglSurfaceAttrib,
"dpy = %u, surface = %p, attribute = 0x%X, value = 0x%X",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_,
attribute,
value);
YAGL_LOG_FUNC_ENTER(eglBindTexImage,
"dpy = %u, surface = %p, buffer = 0x%X",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_,
buffer);
YAGL_LOG_FUNC_ENTER(eglReleaseTexImage,
"dpy = %u, surface = %p, buffer = 0x%X",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_,
buffer);
YAGL_LOG_FUNC_ENTER(eglSwapInterval,
"dpy = %u, interval = %d",
- (yagl_host_handle)dpy,
+ (yagl_host_handle)VOIDP2INT(dpy),
interval);
draw_sfc = yagl_get_draw_surface();
YAGL_LOG_FUNC_ENTER(eglCreateContext,
"dpy = %u, config = %u, share_context = %u",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)config,
- (yagl_host_handle)share_context_);
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(config),
+ (yagl_host_handle)VOIDP2INT(share_context_));
if (!yagl_validate_display(dpy_, &dpy)) {
goto out;
YAGL_LOG_FUNC_ENTER(eglDestroyContext,
"dpy = %u, ctx = %u",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)ctx);
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(ctx));
if (!yagl_validate_display(dpy_, &dpy)) {
goto fail;
YAGL_LOG_FUNC_ENTER(eglMakeCurrent,
"dpy = %u, draw = %p, read = %p, ctx = %u",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
draw_,
read_,
- (yagl_host_handle)ctx_);
+ (yagl_host_handle)VOIDP2INT(ctx_));
if (bad_match) {
YAGL_SET_ERR(EGL_BAD_MATCH);
YAGL_LOG_FUNC_ENTER(eglQueryContext,
"dpy = %u, ctx = %u, attribute = 0x%X, value = %p",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)ctx_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(ctx_),
attribute,
value);
YAGL_LOG_FUNC_ENTER(eglSwapBuffers,
"dpy = %u, surface = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglCopyBuffers,
"dpy = %u, surface = %p, target = %u",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_,
(uint32_t)target);
YAGL_LOG_FUNC_ENTER(eglCreateImageKHR,
"dpy = %u, ctx = %u, target = %u, buffer = %p",
- (yagl_host_handle)dpy_,
- (yagl_host_handle)ctx_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ (yagl_host_handle)VOIDP2INT(ctx_),
target,
buffer);
YAGL_LOG_FUNC_ENTER(eglDestroyImageKHR,
"dpy = %u, image = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
image_);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglLockSurfaceKHR,
"dpy = %u, surface = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglUnlockSurfaceKHR,
"dpy = %u, surface = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
surface_);
if (!yagl_validate_display(dpy_, &dpy)) {
struct yagl_display *dpy = NULL;
struct yagl_fence *fence = NULL;
- YAGL_LOG_FUNC_ENTER(eglCreateSyncKHR, "dpy = %u, type = %u",
- (yagl_host_handle)dpy_, type);
+ YAGL_LOG_FUNC_ENTER(eglCreateSyncKHR,
+ "dpy = %u, type = %u",
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ type);
if (type != EGL_SYNC_FENCE_KHR) {
YAGL_SET_ERR(EGL_BAD_ATTRIBUTE);
struct yagl_display *dpy = NULL;
struct yagl_fence *fence = NULL;
- YAGL_LOG_FUNC_ENTER(eglDestroySyncKHR, "dpy = %u, sync = %p",
- (yagl_host_handle)dpy_, sync_);
+ YAGL_LOG_FUNC_ENTER(eglDestroySyncKHR,
+ "dpy = %u, sync = %p",
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ sync_);
if (!yagl_validate_display(dpy_, &dpy)) {
goto out;
struct yagl_display *dpy = NULL;
struct yagl_fence *fence = NULL;
- YAGL_LOG_FUNC_ENTER(eglClientWaitSyncKHR, "dpy = %u, sync = %p, flags = 0x%X, timeout = %u",
- (yagl_host_handle)dpy_, sync_, flags, (uint32_t)timeout);
+ YAGL_LOG_FUNC_ENTER(eglClientWaitSyncKHR,
+ "dpy = %u, sync = %p, flags = 0x%X, timeout = %u",
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ sync_,
+ flags,
+ (uint32_t)timeout);
if (!yagl_validate_display(dpy_, &dpy)) {
goto out;
YAGL_API EGLBoolean eglSignalSyncKHR(EGLDisplay dpy_, EGLSyncKHR sync_, EGLenum mode)
{
- YAGL_LOG_FUNC_ENTER(eglSignalSyncKHR, "dpy = %u, sync = %p, mode = 0x%X",
- (yagl_host_handle)dpy_, sync_, mode);
+ YAGL_LOG_FUNC_ENTER(eglSignalSyncKHR,
+ "dpy = %u, sync = %p, mode = 0x%X",
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ sync_,
+ mode);
YAGL_SET_ERR(EGL_BAD_MATCH);
struct yagl_display *dpy = NULL;
struct yagl_fence *fence = NULL;
- YAGL_LOG_FUNC_ENTER(eglGetSyncAttribKHR, "dpy = %u, sync = %p, attribute = 0x%X",
- (yagl_host_handle)dpy_, sync_, attribute);
+ YAGL_LOG_FUNC_ENTER(eglGetSyncAttribKHR,
+ "dpy = %u, sync = %p, attribute = 0x%X",
+ (yagl_host_handle)VOIDP2INT(dpy_),
+ sync_,
+ attribute);
if (!yagl_validate_display(dpy_, &dpy)) {
goto out;
YAGL_LOG_FUNC_ENTER(eglBindWaylandDisplayWL,
"dpy = %u, display = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
display);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglUnbindWaylandDisplayWL,
"dpy = %u, display = %p",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
display);
if (!yagl_validate_display(dpy_, &dpy)) {
YAGL_LOG_FUNC_ENTER(eglQueryWaylandBufferWL,
"dpy = %u, buffer = %p, attribute = 0x%X",
- (yagl_host_handle)dpy_,
+ (yagl_host_handle)VOIDP2INT(dpy_),
buffer,
attribute);