From b45b864c36c62b0bbe12c07bc421542040f895db Mon Sep 17 00:00:00 2001 From: Yakov Goldberg Date: Mon, 30 Dec 2013 14:26:04 +0200 Subject: [PATCH] win: fix parameter order in elm_win_available_profiles_get() for consistency --- legacy/elementary/src/lib/elm_win.c | 6 +++--- legacy/elementary/src/lib/elm_win_eo.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index cee43535ac..d3f0673bec 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -4054,16 +4054,16 @@ elm_win_available_profiles_get(Evas_Object *obj, { ELM_WIN_CHECK(obj) EINA_FALSE; Eina_Bool ret = EINA_FALSE; - eo_do((Eo *) obj, elm_obj_win_available_profiles_get(&ret, profiles, count)); + eo_do((Eo *) obj, elm_obj_win_available_profiles_get(profiles, count, &ret)); return ret; } static void _available_profiles_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) { - Eina_Bool *ret = va_arg(*list, Eina_Bool *); char ***profiles = va_arg(*list, char ***); unsigned int *count = va_arg(*list, unsigned int *); + Eina_Bool *ret = va_arg(*list, Eina_Bool *); Elm_Win_Smart_Data *sd = _pd; Eina_Bool res; @@ -4079,7 +4079,7 @@ _available_profiles_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) if (count) *count = sd->profile.count; res = EINA_TRUE; } - *ret = res; + if (ret) *ret = res; } EAPI void diff --git a/legacy/elementary/src/lib/elm_win_eo.h b/legacy/elementary/src/lib/elm_win_eo.h index 21e9430679..e7f0dcd84b 100644 --- a/legacy/elementary/src/lib/elm_win_eo.h +++ b/legacy/elementary/src/lib/elm_win_eo.h @@ -538,13 +538,13 @@ enum * * Get the array of available profiles of a window. * - * @param[out] ret * @param[out] profiles * @param[out] count + * @param[out] ret * * @see elm_win_available_profiles_get */ -#define elm_obj_win_available_profiles_get(ret, profiles, count) ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_AVAILABLE_PROFILES_GET), EO_TYPECHECK(Eina_Bool *, ret), EO_TYPECHECK(char ***, profiles), EO_TYPECHECK(unsigned int *, count) +#define elm_obj_win_available_profiles_get(profiles, count, ret) ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_AVAILABLE_PROFILES_GET), EO_TYPECHECK(char ***, profiles), EO_TYPECHECK(unsigned int *, count), EO_TYPECHECK(Eina_Bool *, ret) /** * @def elm_obj_win_profile_set