forked from enlightenment/efl
ecore_drm2: Fix warning with a dirty hack
So because we include wayland-server.h we're told that wl_buffer is deprecated - however clients are still expected to use it, it's only deprecated for usage in a compositor. Making these into void pointers shuts up the warning. We need to include wayland-server.h since some of the code provided by ecore_wl2 is for compositors, but some of it is also for clients...
This commit is contained in:
parent
2b9a2692e8
commit
4e41f7569b
|
@ -1941,7 +1941,7 @@ EAPI void ecore_wl2_window_frame_callback_del(Ecore_Wl2_Frame_Cb_Handle *handle)
|
|||
*
|
||||
* @since 1.20
|
||||
*/
|
||||
EAPI void ecore_wl2_window_buffer_attach(Ecore_Wl2_Window *win, struct wl_buffer *buffer, int x, int y, Eina_Bool implicit);
|
||||
EAPI void ecore_wl2_window_buffer_attach(Ecore_Wl2_Window *win, void *buffer, int x, int y, Eina_Bool implicit);
|
||||
|
||||
# endif
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ struct _Ecore_Wl2_Window
|
|||
const char *role;
|
||||
|
||||
struct wl_surface *surface;
|
||||
struct wl_buffer *buffer;
|
||||
void *buffer;
|
||||
struct wl_callback *callback;
|
||||
struct www_surface *www_surface;
|
||||
struct zxdg_surface_v6 *zxdg_surface;
|
||||
|
|
|
@ -1438,7 +1438,7 @@ ecore_wl2_window_frame_callback_del(Ecore_Wl2_Frame_Cb_Handle *handle)
|
|||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_window_buffer_attach(Ecore_Wl2_Window *win, struct wl_buffer *buffer, int x, int y, Eina_Bool implicit)
|
||||
ecore_wl2_window_buffer_attach(Ecore_Wl2_Window *win, void *buffer, int x, int y, Eina_Bool implicit)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(win);
|
||||
EINA_SAFETY_ON_NULL_RETURN(win->surface);
|
||||
|
|
Loading…
Reference in New Issue