enlightenment/src/bin/e_comp_wl.c

39 lines
820 B
C

#define E_COMP_WL
#include "e.h"
#define COMPOSITOR_VERSION 3
#define E_COMP_WL_PIXMAP_CHECK \
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return
/* public functions */
EAPI Eina_Bool
e_comp_wl_init(void)
{
/* set gl available if we have ecore_evas support */
if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) ||
ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_OPENGL_DRM))
e_comp_gl_set(EINA_TRUE);
return EINA_FALSE;
}
EAPI struct wl_signal
e_comp_wl_surface_create_signal_get(E_Comp *comp)
{
return comp->wl_comp_data->signals.surface.create;
}
/* internal functions */
EINTERN void
e_comp_wl_shutdown(void)
{
}
EINTERN struct wl_resource *
e_comp_wl_surface_create(struct wl_client *client, int version, uint32_t id)
{
return NULL;
}