From dd18206d860fa9cd1cea4ce01657c21678318bca Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Thu, 31 Oct 2013 20:02:40 -0200 Subject: ecore/wayland: Do not use win->id directly. Use a getter for it instead, so we don't need to expose the Ecore_Wl_Window struct just because of it. --- src/lib/ecore_wayland/ecore_wl_window.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/ecore_wayland/ecore_wl_window.c') diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 0de39d9e58..8307f654c1 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -687,6 +687,17 @@ ecore_wl_window_rotation_get(Ecore_Wl_Window *win) return win->rotation; } +/* @since 1.8 */ +EAPI int +ecore_wl_window_id_get(Ecore_Wl_Window *win) +{ + LOGFN(__FILE__, __LINE__, __FUNCTION__); + + if (!win) return 0; + return win->id; +} + + /* local functions */ static void _ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial) -- cgit v1.2.1