ecore-wl2: Add function to return window id

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-08-20 12:44:17 -04:00
parent 8eda8449de
commit d02da903fe
2 changed files with 16 additions and 0 deletions

View File

@ -222,6 +222,15 @@ EAPI Eina_Iterator *ecore_wl2_display_globals_get(Ecore_Wl2_Display *display);
*/
EAPI Ecore_Wl2_Window *ecore_wl2_window_new(Ecore_Wl2_Display *display, Ecore_Wl2_Window *parent, int x, int y, int w, int h);
/**
* Get the window id associated with an Ecore_Wl2_Window
*
* @param window The Ecore_Wl2_Window of which to retrieve the window id
*
* @return The id associated with this window
*/
EAPI int ecore_wl2_window_id_get(Ecore_Wl2_Window *window);
/* # ifdef __cplusplus */
/* } */
/* # endif */

View File

@ -27,3 +27,10 @@ ecore_wl2_window_new(Ecore_Wl2_Display *display, Ecore_Wl2_Window *parent, int x
return win;
}
EAPI int
ecore_wl2_window_id_get(Ecore_Wl2_Window *window)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(window, -1);
return win->id;
}