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:
Derek Foreman 2018-01-30 14:46:23 -06:00
parent da9eef6027
commit cc0cfb7822
2 changed files with 13 additions and 0 deletions

View File

@ -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)
{

View File

@ -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