Tizen Native API
4.0
|
Typedefs | |
typedef unsigned char | Eina_Bool |
typedef int(* | Eina_Compare_Cb )(const void *data1, const void *data2) |
typedef int(* | Eina_Random_Cb )(const int min, const int max) |
typedef Eina_Bool(* | Eina_Each_Cb )(const void *container, void *data, void *fdata) |
typedef void(* | Eina_Free_Cb )(void *data) |
Defines | |
#define | EAPI |
Used to export functions(by changing visibility). | |
#define | EINA_UNUSED |
#define | EINA_WARN_UNUSED_RESULT |
#define | EINA_ARG_NONNULL(...) |
#define | EINA_DEPRECATED |
#define | EINA_MALLOC |
EINA_MALLOC is used to tell the compiler that a function may be treated as if any non-NULL pointer it returns cannot alias any other pointer valid when the function returns and that the memory has undefined content. | |
#define | EINA_PURE |
EINA_PURE is used to tell the compiler this functions has no effects except the return value and their return value depends only on the parameters and/or global variables. | |
#define | EINA_PRINTF(fmt, arg) |
#define | EINA_SCANF(fmt, arg) |
#define | EINA_FORMAT(fmt) |
#define | EINA_CONST |
Attribute from gcc to prevent the function to read/modify any global memory. | |
#define | EINA_NOINSTRUMENT |
Attribute from gcc to disable instrumentation for a specific function. | |
#define | EINA_UNLIKELY(exp) exp |
#define | EINA_LIKELY(exp) exp |
#define | EINA_SENTINEL |
Attribute from gcc to prevent calls without the necessary NULL sentinel in certain variadic functions. | |
#define | EINA_FALSE ((Eina_Bool)0) |
#define | EINA_TRUE ((Eina_Bool)1) |
#define | EINA_COMPARE_CB(function) ((Eina_Compare_Cb)function) |
#define | EINA_RANDOM_CB(function) ((Eina_Random_Cb)function) |
#define | EINA_EACH_CB(Function) ((Eina_Each_Cb)Function) |
#define | EINA_FREE_CB(Function) ((Eina_Free_Cb)Function) |
#define | EINA_C_ARRAY_LENGTH(arr) (sizeof(arr) / sizeof((arr)[0])) |
#define EINA_ARG_NONNULL | ( | ... | ) |
Used to warn when the specified arguments of the function are NULL
.
... | Oridnals of the parameters to check for nullity (1..n) |
#define EINA_C_ARRAY_LENGTH | ( | arr | ) | (sizeof(arr) / sizeof((arr)[0])) |
Macro to return the array length of a standard c array. For example: int foo[] = { 0, 1, 2, 3 }; would return 4 and not 4 * sizeof(int).
#define EINA_COMPARE_CB | ( | function | ) | ((Eina_Compare_Cb)function) |
Macro to cast to Eina_Compare_Cb.
#define EINA_DEPRECATED |
Used to warn when the function is considered as deprecated.
#define EINA_EACH_CB | ( | Function | ) | ((Eina_Each_Cb)Function) |
Macro to cast to Eina_Each.
#define EINA_FALSE ((Eina_Bool)0) |
boolean value FALSE (numerical value 0)
#define EINA_FORMAT | ( | fmt | ) |
fmt | The format to be used. |
#define EINA_FREE_CB | ( | Function | ) | ((Eina_Free_Cb)Function) |
Macro to cast to Eina_Free_Cb.
#define EINA_LIKELY | ( | exp | ) | exp |
exp | The expression to be used. |
#define EINA_PRINTF | ( | fmt, | |
arg | |||
) |
fmt | The format to be used. |
arg | The argument to be used. |
#define EINA_RANDOM_CB | ( | function | ) | ((Eina_Random_Cb)function) |
Macro to cast to Eina_Random_Cb.
#define EINA_SCANF | ( | fmt, | |
arg | |||
) |
fmt | The format to be used. |
arg | The argument to be used. |
#define EINA_SENTINEL |
Attribute from gcc to prevent calls without the necessary NULL sentinel in certain variadic functions.
boolean value TRUE (numerical value 1)
#define EINA_UNLIKELY | ( | exp | ) | exp |
exp | The expression to be used. |
#define EINA_UNUSED |
Used to warn when an argument of the function is not used.
#define EINA_WARN_UNUSED_RESULT |
Used to warn when the returned value of the function is not used.
Type to mimic a boolean.
Function used in functions using sorting. It compares data1
and data2
. If data1
is 'less' than data2
, -1 must be returned, if it is 'greater', 1 must be returned, and if they are equal, 0 must be returned.
A callback type used when iterating over a container.
A callback type used to free data when iterating over a container.
Function used in shuffling functions. An integer between min and max inclusive must be returned.