2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
10 typedef enum _Eet_Convert_Type Eet_Convert_Type;
12 enum _Eet_Convert_Type
14 EET_D_NOT_CONVERTED = 0,
16 EET_D_DOUBLE = 1 << 2,
17 EET_D_FIXED_POINT = 1 << 4
20 typedef struct _Eet_String Eet_String;
37 Eet_Convert_Type type;
39 struct _Eet_Dictionary
68 * variable and macros used for the eina_log module
70 extern int _eet_log_dom_global;
73 * Macros that are used everywhere
75 * the first four macros are the general macros for the lib
77 #ifdef EET_DEFAULT_LOG_COLOR
78 # undef EET_DEFAULT_LOG_COLOR
80 #define EET_DEFAULT_LOG_COLOR EINA_COLOR_CYAN
84 #define ERR(...) EINA_LOG_DOM_ERR(_eet_log_dom_global, __VA_ARGS__)
88 #define DBG(...) EINA_LOG_DOM_DBG(_eet_log_dom_global, __VA_ARGS__)
92 #define INF(...) EINA_LOG_DOM_INFO(_eet_log_dom_global, __VA_ARGS__)
96 #define WRN(...) EINA_LOG_DOM_WARN(_eet_log_dom_global, __VA_ARGS__)
100 #define CRIT(...) EINA_LOG_DOM_CRIT(_eet_log_dom_global, __VA_ARGS__)
102 Eet_Dictionary *eet_dictionary_add(void);
103 void eet_dictionary_free(Eet_Dictionary *ed);
104 int eet_dictionary_string_add(Eet_Dictionary *ed, const char *string);
105 int eet_dictionary_string_get_size(const Eet_Dictionary *ed, int index);
106 const char *eet_dictionary_string_get_char(const Eet_Dictionary *ed, int index);
107 Eina_Bool eet_dictionary_string_get_float(const Eet_Dictionary *ed, int index, float *result);
108 Eina_Bool eet_dictionary_string_get_double(const Eet_Dictionary *ed, int index, double *result);
109 Eina_Bool eet_dictionary_string_get_fp(const Eet_Dictionary *ed, int index, Eina_F32p32 *result);
110 int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, int index);
112 int _eet_hash_gen(const char *key, int hash_size);
114 const void* eet_identity_check(const void *data_base, unsigned int data_length,
115 void **sha1, int *sha1_length,
116 const void *signature_base, unsigned int signature_length,
117 const void **raw_signature_base, unsigned int *raw_signature_length,
119 void *eet_identity_compute_sha1(const void *data_base, unsigned int data_length,
121 Eet_Error eet_cipher(const void *data, unsigned int size, const char *key, unsigned int length, void **result, unsigned int *result_length);
122 Eet_Error eet_decipher(const void *data, unsigned int size, const char *key, unsigned int length, void **result, unsigned int *result_length);
123 Eet_Error eet_identity_sign(FILE *fp, Eet_Key *key);
124 void eet_identity_unref(Eet_Key *key);
125 void eet_identity_ref(Eet_Key *key);
127 void eet_node_shutdown(void);
128 int eet_node_init(void);
129 Eet_Node *eet_node_new(void);
130 void eet_node_free(Eet_Node *node);
133 # define PATH_MAX 4096
137 # define EET_ASSERT(Test, Do) if (Test == 0) Do;
139 # define EET_ASSERT(Test, Do) if (Test == 0) abort();