ecore_wl2: Add internal _ecore_wl2_output_find
This finds the Ecore_Wl2_Output * for a given struct wl_output *
This commit is contained in:
parent
da9eef6027
commit
cc0cfb7822
|
@ -117,6 +117,17 @@ _ecore_wl2_output_del(Ecore_Wl2_Output *output)
|
|||
free(output);
|
||||
}
|
||||
|
||||
Ecore_Wl2_Output *
|
||||
_ecore_wl2_output_find(Ecore_Wl2_Display *display, struct wl_output *op)
|
||||
{
|
||||
Ecore_Wl2_Output *wl2op;
|
||||
|
||||
EINA_INLIST_FOREACH(display->outputs, wl2op)
|
||||
if (wl2op->wl_output == op) return wl2op;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
ecore_wl2_output_dpi_get(Ecore_Wl2_Output *output)
|
||||
{
|
||||
|
|
|
@ -606,4 +606,6 @@ EAPI void ecore_wl2_window_weight_set(Ecore_Wl2_Window *window, double w, double
|
|||
EAPI extern int _ecore_wl2_event_window_www;
|
||||
EAPI extern int _ecore_wl2_event_window_www_drag;
|
||||
|
||||
Ecore_Wl2_Output *_ecore_wl2_output_find(Ecore_Wl2_Display *dsp, struct wl_output *op);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue