From 251544ad7ebfce2785dbc0a1be83517400946496 Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Tue, 5 Feb 2013 17:23:38 +0000 Subject: [PATCH] Fix return of ecore_wl_outputs_get() function This should return the pointer to the list, to get the desired behavior. Fixes ticket #2252. Signed-off-by: Eduardo Lima (Etrunko) SVN revision: 83644 --- src/lib/ecore_wayland/Ecore_Wayland.h | 2 +- src/lib/ecore_wayland/ecore_wl_output.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h index 74b4815430..ad156ae59b 100644 --- a/src/lib/ecore_wayland/Ecore_Wayland.h +++ b/src/lib/ecore_wayland/Ecore_Wayland.h @@ -489,7 +489,7 @@ EAPI void ecore_wl_input_pointer_set(Ecore_Wl_Input *input, struct wl_surface *s EAPI void ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_name); EAPI void ecore_wl_input_cursor_default_restore(Ecore_Wl_Input *input); -EAPI struct wl_list ecore_wl_outputs_get(void); +EAPI struct wl_list *ecore_wl_outputs_get(void); /** * Retrieves the Wayland Globals Interface list used for the current Wayland connection. diff --git a/src/lib/ecore_wayland/ecore_wl_output.c b/src/lib/ecore_wayland/ecore_wl_output.c index 5498895007..f0c59b4786 100644 --- a/src/lib/ecore_wayland/ecore_wl_output.c +++ b/src/lib/ecore_wayland/ecore_wl_output.c @@ -16,10 +16,10 @@ static const struct wl_output_listener _ecore_wl_output_listener = }; /* @since 1.2 */ -EAPI struct wl_list +EAPI struct wl_list * ecore_wl_outputs_get(void) { - return _ecore_wl_disp->outputs; + return &(_ecore_wl_disp->outputs); } void