eina_file.h | eina_file.h | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
/** | /** | |||
* @typedef Eina_File_Direct_Info | * @typedef Eina_File_Direct_Info | |||
* A typedef to #_Eina_File_Direct_Info. | * A typedef to #_Eina_File_Direct_Info. | |||
*/ | */ | |||
typedef struct _Eina_File_Direct_Info Eina_File_Direct_Info; | typedef struct _Eina_File_Direct_Info Eina_File_Direct_Info; | |||
/** | /** | |||
* @typedef Eina_File_Dir_List_Cb | * @typedef Eina_File_Dir_List_Cb | |||
* Type for a callback to be called when iterating over the files of a | * Type for a callback to be called when iterating over the files of a | |||
* directory. | * directory. | |||
* @param The file name EXCLUDING the path | ||||
* @param path The path passed to eina_file_dir_list() | ||||
* @param data The data passed to eina_file_dir_list() | ||||
*/ | */ | |||
typedef void (*Eina_File_Dir_List_Cb)(const char *name, const char *path, v oid *data); | typedef void (*Eina_File_Dir_List_Cb)(const char *name, const char *path, v oid *data); | |||
/** | /** | |||
* @typedef Eina_File_Type | * @typedef Eina_File_Type | |||
* file type in Eina_File_Direct_Info. | * file type in Eina_File_Direct_Info. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
EINA_FILE_UNKNOWN, /**< Unknown file type. */ | EINA_FILE_UNKNOWN, /**< Unknown file type. */ | |||
EINA_FILE_FIFO, /**< Named pipe (FIFO) type (unused on Windows). */ | EINA_FILE_FIFO, /**< Named pipe (FIFO) type (unused on Windows). */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
eina_hash.h | eina_hash.h | |||
---|---|---|---|---|
skipping to change at line 89 | skipping to change at line 89 | |||
EAPI Eina_Bool eina_hash_add(Eina_Hash *hash, | EAPI Eina_Bool eina_hash_add(Eina_Hash *hash, | |||
const void *key, | const void *key, | |||
const void *data) EINA_ARG_NONNULL(1, 2, 3); | const void *data) EINA_ARG_NONNULL(1, 2, 3); | |||
EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash, | EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash, | |||
const void *key, | const void *key, | |||
const void *data) EINA_ARG_NONNULL(1, 2 , 3); | const void *data) EINA_ARG_NONNULL(1, 2 , 3); | |||
EAPI Eina_Bool eina_hash_del(Eina_Hash *hash, | EAPI Eina_Bool eina_hash_del(Eina_Hash *hash, | |||
const void *key, | const void *key, | |||
const void *data) EINA_ARG_NONNULL(1); | const void *data) EINA_ARG_NONNULL(1); | |||
EAPI void *eina_hash_find(const Eina_Hash *hash, | EAPI void *eina_hash_find(const Eina_Hash *hash, | |||
const void *key) EINA_ARG_NONNULL(1, 2); | const void *key) EINA_ARG_NONNULL(2); | |||
EAPI void *eina_hash_modify(Eina_Hash *hash, | EAPI void *eina_hash_modify(Eina_Hash *hash, | |||
const void *key, | const void *key, | |||
const void *data) EINA_ARG_NONNULL(1, 2, 3); | const void *data) EINA_ARG_NONNULL(1, 2, 3); | |||
EAPI void *eina_hash_set(Eina_Hash *hash, | EAPI void *eina_hash_set(Eina_Hash *hash, | |||
const void *key, | const void *key, | |||
const void *data) EINA_ARG_NONNULL(1, 2, 3); | const void *data) EINA_ARG_NONNULL(1, 2, 3); | |||
EAPI Eina_Bool eina_hash_move(Eina_Hash *hash, | EAPI Eina_Bool eina_hash_move(Eina_Hash *hash, | |||
const void *old_key, | const void *old_key, | |||
const void *new_key) EINA_ARG_NONNULL(1, 2, 3 ); | const void *new_key) EINA_ARG_NONNULL(1, 2, 3 ); | |||
EAPI void eina_hash_free(Eina_Hash *hash) EINA_ARG_NONNULL(1); | EAPI void eina_hash_free(Eina_Hash *hash) EINA_ARG_NONNULL(1); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
eina_inline_log.x | eina_inline_log.x | |||
---|---|---|---|---|
skipping to change at line 52 | skipping to change at line 52 | |||
* my_func_code(data); | * my_func_code(data); | |||
* } | * } | |||
* @endcode | * @endcode | |||
* | * | |||
* @return #EINA_TRUE if level is equal or smaller than the current global | * @return #EINA_TRUE if level is equal or smaller than the current global | |||
* logging level. | * logging level. | |||
*/ | */ | |||
static inline Eina_Bool | static inline Eina_Bool | |||
eina_log_level_check(int level) | eina_log_level_check(int level) | |||
{ | { | |||
return eina_log_level_get() <= level; | return eina_log_level_get() >= level; | |||
} | } | |||
/** | /** | |||
* Checks whenever the given level should be printed out. | * Checks whenever the given level should be printed out. | |||
* | * | |||
* This is useful to enable certain blocks of code just when given | * This is useful to enable certain blocks of code just when given | |||
* level is to be used. | * level is to be used. | |||
* | * | |||
* @code | * @code | |||
* #include <Eina.h> | * #include <Eina.h> | |||
skipping to change at line 84 | skipping to change at line 84 | |||
* | * | |||
* @return #EINA_TRUE if level is equal or smaller than the current | * @return #EINA_TRUE if level is equal or smaller than the current | |||
* domain logging level. | * domain logging level. | |||
*/ | */ | |||
static inline Eina_Bool | static inline Eina_Bool | |||
eina_log_domain_level_check(int domain, int level) | eina_log_domain_level_check(int domain, int level) | |||
{ | { | |||
int dom_level = eina_log_domain_registered_level_get(domain); | int dom_level = eina_log_domain_registered_level_get(domain); | |||
if (EINA_UNLIKELY(dom_level == EINA_LOG_LEVEL_UNKNOWN)) | if (EINA_UNLIKELY(dom_level == EINA_LOG_LEVEL_UNKNOWN)) | |||
return EINA_FALSE; | return EINA_FALSE; | |||
return dom_level <= level; | return dom_level >= level; | |||
} | } | |||
/** | /** | |||
* Function to format the level as a 3 character (+1 null byte) string. | * Function to format the level as a 3 character (+1 null byte) string. | |||
* | * | |||
* This function converts the given level to a known string name (CRI, | * This function converts the given level to a known string name (CRI, | |||
* ERR, WRN, INF or DBG) or a zero-padded 3-character string. In any | * ERR, WRN, INF or DBG) or a zero-padded 3-character string. In any | |||
* case the last byte will contain a trailing null byte. | * case the last byte will contain a trailing null byte. | |||
* | * | |||
* If extreme level values are used (greater than 999 and smaller than | * If extreme level values are used (greater than 999 and smaller than | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||