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) <eduardo.lima@intel.com>



SVN revision: 83644
This commit is contained in:
Eduardo Lima (Etrunko) 2013-02-05 17:23:38 +00:00 committed by Eduardo de Barros Lima
parent a2197ce503
commit 251544ad7e
2 changed files with 3 additions and 3 deletions

View File

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

View File

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