forked from enlightenment/efl
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
// Internal header are to be used only inside efl itself.
|
|
#ifndef _ECORE_INTERNAL_H
|
|
#define _ECORE_INTERNAL_H
|
|
|
|
#ifdef EAPI
|
|
# undef EAPI
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
# ifdef EFL_BUILD
|
|
# ifdef DLL_EXPORT
|
|
# define EAPI __declspec(dllexport)
|
|
# else
|
|
# define EAPI
|
|
# endif
|
|
# else
|
|
# define EAPI __declspec(dllimport)
|
|
# endif
|
|
#else
|
|
# ifdef __GNUC__
|
|
# if __GNUC__ >= 4
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
# else
|
|
# define EAPI
|
|
# endif
|
|
# else
|
|
# define EAPI
|
|
# endif
|
|
#endif
|
|
|
|
EAPI void ecore_loop_arguments_send(int argc, const char **argv);
|
|
EAPI Eina_Bool efl_loop_message_process(Eo *obj);
|
|
|
|
static inline Eina_Value
|
|
efl_model_list_value_get(Eina_List *childrens,
|
|
unsigned int start,
|
|
unsigned int count)
|
|
{
|
|
Eina_Value v = EINA_VALUE_EMPTY;
|
|
Eina_List *l;
|
|
Eo *child;
|
|
|
|
if (eina_list_count(childrens) < start + count)
|
|
return eina_value_error_init(EFL_MODEL_ERROR_INCORRECT_VALUE);
|
|
|
|
eina_value_array_setup(&v, EINA_VALUE_TYPE_OBJECT, 4);
|
|
|
|
childrens = eina_list_nth_list(childrens, start);
|
|
|
|
EINA_LIST_FOREACH(childrens, l, child)
|
|
{
|
|
if (count == 0)
|
|
break;
|
|
count--;
|
|
|
|
eina_value_array_append(&v, child);
|
|
}
|
|
|
|
return v;
|
|
}
|
|
|
|
#undef EAPI
|
|
#define EAPI
|
|
|
|
#endif
|