forked from enlightenment/efl
efl/wl: define opaque wl/xkb types to native types when those headers are included
Summary: simplify a lot of casting when we're in a native wl env Depends on D11495 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11496
This commit is contained in:
parent
07b8f7f0ff
commit
592ca5ea3b
|
@ -22,15 +22,26 @@
|
|||
|
||||
#define EWAPI EAPI EAPI_WEAK
|
||||
|
||||
|
||||
#ifdef WAYLAND_UTIL_H
|
||||
typedef struct wl_surface Efl_Canvas_Wl_Wl_Surface;
|
||||
typedef struct wl_global Efl_Canvas_Wl_Wl_Global;
|
||||
typedef struct wl_interface Efl_Canvas_Wl_Wl_Interface;
|
||||
typedef struct wl_array Efl_Canvas_Wl_Wl_Array;
|
||||
typedef void Efl_Canvas_Wl_Wl_Interface_Data;
|
||||
typedef void Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
|
||||
#else
|
||||
typedef struct Efl_Canvas_Wl_Wl_Surface Efl_Canvas_Wl_Wl_Surface;
|
||||
typedef struct Efl_Canvas_Wl_Wl_Global Efl_Canvas_Wl_Wl_Global;
|
||||
typedef struct Efl_Canvas_Wl_Wl_Interface Efl_Canvas_Wl_Wl_Interface;
|
||||
typedef struct Efl_Canvas_Wl_Wl_Array Efl_Canvas_Wl_Wl_Array;
|
||||
typedef void * Efl_Canvas_Wl_Wl_Interface_Data;
|
||||
typedef void * Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
|
||||
#endif
|
||||
#ifdef _XKBCOMMON_H_
|
||||
typedef struct xkb_state Efl_Canvas_Wl_Xkb_State;
|
||||
#else
|
||||
typedef struct Efl_Canvas_Wl_Xkb_State Efl_Canvas_Wl_Xkb_State;
|
||||
|
||||
#endif
|
||||
#include <efl_canvas_wl_surface.eo.h>
|
||||
#include <efl_canvas_wl.eo.h>
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue