win: fix parameter order in elm_win_available_profiles_get() for consistency

This commit is contained in:
Yakov Goldberg 2013-12-30 14:26:04 +02:00
parent e2e1814a4f
commit b45b864c36
2 changed files with 5 additions and 5 deletions

View File

@ -4054,16 +4054,16 @@ elm_win_available_profiles_get(Evas_Object *obj,
{ {
ELM_WIN_CHECK(obj) EINA_FALSE; ELM_WIN_CHECK(obj) EINA_FALSE;
Eina_Bool ret = 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; return ret;
} }
static void static void
_available_profiles_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) _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 ***); char ***profiles = va_arg(*list, char ***);
unsigned int *count = va_arg(*list, unsigned int *); unsigned int *count = va_arg(*list, unsigned int *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
Elm_Win_Smart_Data *sd = _pd; Elm_Win_Smart_Data *sd = _pd;
Eina_Bool res; 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; if (count) *count = sd->profile.count;
res = EINA_TRUE; res = EINA_TRUE;
} }
*ret = res; if (ret) *ret = res;
} }
EAPI void EAPI void

View File

@ -538,13 +538,13 @@ enum
* *
* Get the array of available profiles of a window. * Get the array of available profiles of a window.
* *
* @param[out] ret
* @param[out] profiles * @param[out] profiles
* @param[out] count * @param[out] count
* @param[out] ret
* *
* @see elm_win_available_profiles_get * @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 * @def elm_obj_win_profile_set