*
* @since 1.0.0
*/
-EAPI Eet_File * eet_open(const char * file,
+EAPI Eet_File * eet_open(const char *file,
Eet_File_Mode mode);
/**
* @ingroup Eet_File_Group
*/
EAPI int eet_dictionary_string_check(Eet_Dictionary *ed,
- const char * string);
+ const char *string);
/**
* Read a specified entry from an eet file and return data
* @since 1.0.0
* @ingroup Eet_File_Group
*/
-EAPI void * eet_read(Eet_File * ef,
+EAPI void * eet_read(Eet_File *ef,
const char *name,
- int * size_ret);
+ int *size_ret);
/**
* Read a specified entry from an eet file and return data
* @since 1.0.0
* @ingroup Eet_File_Group
*/
-EAPI const void * eet_read_direct(Eet_File * ef,
+EAPI const void * eet_read_direct(Eet_File *ef,
const char *name,
- int * size_ret);
+ int *size_ret);
/**
* Write a specified entry to an eet file handle
* @since 1.0.0
* @ingroup Eet_File_Group
*/
-EAPI int eet_write(Eet_File * ef,
+EAPI int eet_write(Eet_File *ef,
const char *name,
const void *data,
int size,
* @since 1.0.0
* @ingroup Eet_File_Group
*/
-EAPI int eet_delete(Eet_File * ef,
+EAPI int eet_delete(Eet_File *ef,
const char *name);
/**
* @since 1.3.3
* @ingroup Eet_File_Group
*/
-EAPI Eina_Bool eet_alias(Eet_File * ef,
+EAPI Eina_Bool eet_alias(Eet_File *ef,
const char *name,
const char *destination,
int compress);
* @since 1.0.0
* @ingroup Eet_File_Group
*/
-EAPI char ** eet_list(Eet_File * ef,
+EAPI char ** eet_list(Eet_File *ef,
const char *glob,
- int * count_ret);
+ int *count_ret);
/**
* Return the number of entries in the specified eet file.
* @since 1.0.0
* @ingroup Eet_File_Cipher_Group
*/
-EAPI void * eet_read_cipher(Eet_File * ef,
+EAPI void * eet_read_cipher(Eet_File *ef,
const char *name,
- int * size_ret,
+ int *size_ret,
const char *cipher_key);
/**
* @since 1.0.0
* @ingroup Eet_File_Cipher_Group
*/
-EAPI int eet_write_cipher(Eet_File * ef,
+EAPI int eet_write_cipher(Eet_File *ef,
const char *name,
const void *data,
int size,
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI int eet_data_image_header_read(Eet_File * ef,
- const char * name,
+EAPI int eet_data_image_header_read(Eet_File *ef,
+ const char *name,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Read image data from the named key in the eet file.
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI void * eet_data_image_read(Eet_File * ef,
- const char * name,
+EAPI void * eet_data_image_read(Eet_File *ef,
+ const char *name,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Read image data from the named key in the eet file.
* @since 1.0.2
* @ingroup Eet_File_Image_Group
*/
-EAPI int eet_data_image_read_to_surface(Eet_File * ef,
- const char * name,
+EAPI int eet_data_image_read_to_surface(Eet_File *ef,
+ const char *name,
unsigned int src_x,
unsigned int src_y,
unsigned int *d,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Write image data to the named key in an eet file.
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI int eet_data_image_write(Eet_File * ef,
- const char * name,
- const void * data,
+EAPI int eet_data_image_write(Eet_File *ef,
+ const char *name,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI int eet_data_image_header_decode(const void * data,
+EAPI int eet_data_image_header_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Decode Image data into pixel data.
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI void * eet_data_image_decode(const void * data,
+EAPI void * eet_data_image_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Decode Image data into pixel data.
* @since 1.0.2
* @ingroup Eet_File_Image_Group
*/
-EAPI int eet_data_image_decode_to_surface(const void * data,
+EAPI int eet_data_image_decode_to_surface(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Encode image data for storage or transmission.
* @since 1.0.0
* @ingroup Eet_File_Image_Group
*/
-EAPI void * eet_data_image_encode(const void * data,
- int * size_ret,
+EAPI void * eet_data_image_encode(const void *data,
+ int *size_ret,
unsigned int w,
unsigned int h,
int alpha,
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI int eet_data_image_header_read_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+EAPI int eet_data_image_header_read_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Read image data from the named key in the eet file using a cipher.
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI void * eet_data_image_read_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+EAPI void * eet_data_image_read_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Read image data from the named key in the eet file using a cipher.
* @since 1.0.2
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI int eet_data_image_read_to_surface_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+EAPI int eet_data_image_read_to_surface_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int src_x,
unsigned int src_y,
unsigned int *d,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Write image data to the named key in an eet file using a cipher.
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI int eet_data_image_write_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
- const void * data,
+EAPI int eet_data_image_write_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI int eet_data_image_header_decode_cipher(const void * data,
- const char * cipher_key,
+EAPI int eet_data_image_header_decode_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Decode Image data into pixel data using a cipher.
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI void * eet_data_image_decode_cipher(const void * data,
- const char * cipher_key,
+EAPI void * eet_data_image_decode_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Decode Image data into pixel data using a cipher.
* @since 1.0.2
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI int eet_data_image_decode_to_surface_cipher(const void * data,
- const char * cipher_key,
+EAPI int eet_data_image_decode_to_surface_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * compress,
- int * quality,
- int * lossy);
+ int *alpha,
+ int *compress,
+ int *quality,
+ int *lossy);
/**
* Encode image data for storage or transmission using a cipher.
* @since 1.0.0
* @ingroup Eet_File_Image_Cipher_Group
*/
-EAPI void * eet_data_image_encode_cipher(const void * data,
- const char * cipher_key,
+EAPI void * eet_data_image_encode_cipher(const void *data,
+ const char *cipher_key,
unsigned int w,
unsigned int h,
int alpha,
int compress,
int quality,
int lossy,
- int * size_ret);
+ int *size_ret);
/**
* @defgroup Eet_Cipher_Group Cipher, Identity and Protection Mechanisms
* @since 1.2.0
* @ingroup Eet_Cipher_Group
*/
-EAPI Eet_Key * eet_identity_open(const char * certificate_file,
- const char * private_key_file,
+EAPI Eet_Key * eet_identity_open(const char *certificate_file,
+ const char *private_key_file,
Eet_Key_Password_Callback cb);
/**
* @ingroup Eet_Cipher_Group
*/
EAPI Eet_Error eet_identity_set(Eet_File *ef,
- Eet_Key * key);
+ Eet_Key *key);
/**
* Display both private and public key of an Eet_Key.
* @ingroup Eet_Cipher_Group
*/
EAPI void eet_identity_print(Eet_Key *key,
- FILE * out);
+ FILE *out);
/**
* Get the x509 der certificate associated with an Eet_File. Will return NULL
* @ingroup Eet_Cipher_Group
*/
EAPI const void * eet_identity_x509(Eet_File *ef,
- int * der_length);
+ int *der_length);
/**
* Get the raw signature associated with an Eet_File. Will return NULL
* @ingroup Eet_Cipher_Group
*/
EAPI const void * eet_identity_signature(Eet_File *ef,
- int * signature_length);
+ int *signature_length);
/**
* Get the SHA1 associated with a file. Could be the one used to
* @ingroup Eet_Cipher_Group
*/
EAPI const void * eet_identity_sha1(Eet_File *ef,
- int * sha1_length);
+ int *sha1_length);
/**
* Display the x509 der certificate to out.
*/
EAPI void eet_identity_certificate_print(const unsigned char *certificate,
int der_length,
- FILE * out);
+ FILE *out);
/**
* @defgroup Eet_Data_Group Eet Data Serialization
int size; /**< Size in bytes of data type to be serialized */
struct
{
- void * (*mem_alloc)(size_t size); /**< how to allocate memory (usually malloc()) */
+ void * (*mem_alloc)(size_t size); /**< how to allocate memory (usually malloc()) */
void (*mem_free)(void *mem); /**< how to free memory (usually free()) */
- char * (*str_alloc)(const char *str); /**< how to allocate a string */
+ char * (*str_alloc)(const char *str); /**< how to allocate a string */
void (*str_free)(const char *str); /**< how to free a string */
- void * (*list_next)(void *l); /**< how to iterate to the next element of a list. Receives and should return the list node. */
- void * (*list_append)(void *l, void *d); /**< how to append data @p d to list which head node is @p l */
- void * (*list_data)(void *l); /**< retrieves the data from node @p l */
- void * (*list_free)(void *l); /**< free all the nodes from the list which head node is @p l */
+ void * (*list_next)(void *l); /**< how to iterate to the next element of a list. Receives and should return the list node. */
+ void * (*list_append)(void *l, void *d); /**< how to append data @p d to list which head node is @p l */
+ void * (*list_data)(void *l); /**< retrieves the data from node @p l */
+ void * (*list_free)(void *l); /**< free all the nodes from the list which head node is @p l */
void (*hash_foreach)(void *h, int (*func)(void *h, const char *k, void *dt, void *fdt), void *fdt); /**< iterates over all elements in the hash @p h in no specific order */
- void * (*hash_add)(void *h, const char *k, void *d); /**< add a new data @p d as key @p k in hash @p h */
+ void * (*hash_add)(void *h, const char *k, void *d); /**< add a new data @p d as key @p k in hash @p h */
void (*hash_free)(void *h); /**< free all entries from the hash @p h */
- char * (*str_direct_alloc)(const char *str); /**< how to allocate a string directly from file backed/mmaped region pointed by @p str */
+ char * (*str_direct_alloc)(const char *str); /**< how to allocate a string directly from file backed/mmaped region pointed by @p str */
void (*str_direct_free)(const char *str); /**< how to free a string returned by str_direct_alloc */
const char *(*type_get)(const void *data, Eina_Bool *unknow); /**< convert any kind of data type to a name that define an Eet_Data_Element. */
Eina_Bool (*type_set)(const char *type, void *data, Eina_Bool unknow); /**< set the type at a particular adress */
void *(*func_list_append)(void *l, void *d),
void *(*func_list_data)(void *l),
void *(*func_list_free)(void *l),
- void (*func_hash_foreach)(void *h, int (*func)(void * h,
+ void (*func_hash_foreach)(void *h, int (*func)(void *h,
const char *k,
- void * dt,
- void * fdt), void *fdt),
+ void *dt,
+ void *fdt), void *fdt),
void *(*func_hash_add)(void *h, const char *k, void *d),
void (*func_hash_free)(void *h));
/*
* @ingroup Eet_Data_Group
*/
EAPI Eina_Bool eet_eina_stream_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc,
- const char * name,
+ const char *name,
int size);
/**
* @ingroup Eet_Data_Group
*/
EAPI Eina_Bool eet_eina_file_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc,
- const char * name,
+ const char *name,
int size);
/**
* @ingroup Eet_Data_Group
*/
EAPI void eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
- const char * name,
+ const char *name,
int type,
int group_type,
int offset,
/* int count_offset, */
int count,
- const char * counter_name,
+ const char *counter_name,
Eet_Data_Descriptor *subtype);
/**
* @since 1.0.0
* @ingroup Eet_Data_Group
*/
-EAPI void * eet_data_read(Eet_File * ef,
+EAPI void * eet_data_read(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name);
+ const char *name);
/**
* Write a data structure from memory and store in an eet file.
* @since 1.0.0
* @ingroup Eet_Data_Group
*/
-EAPI int eet_data_write(Eet_File * ef,
+EAPI int eet_data_write(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const void * data,
+ const char *name,
+ const void *data,
int compress);
/**
*/
EAPI void * eet_data_text_undump(const char *text,
int textlen,
- int * size_ret);
+ int *size_ret);
/**
* Dump an eet encoded data structure from an eet file into ascii text
* @since 1.0.0
* @ingroup Eet_Data_Group
*/
-EAPI int eet_data_undump(Eet_File * ef,
+EAPI int eet_data_undump(Eet_File *ef,
const char *name,
const char *text,
int textlen,
* @ingroup Eet_Data_Group
*/
EAPI void * eet_data_descriptor_decode(Eet_Data_Descriptor *edd,
- const void * data_in,
+ const void *data_in,
int size_in);
/**
* @ingroup Eet_Data_Group
*/
EAPI void * eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
- const void * data_in,
- int * size_ret);
+ const void *data_in,
+ int *size_ret);
/**
* Add a basic data element to a data descriptor.
* @since 1.0.0
* @ingroup Eet_Data_Cipher_Group
*/
-EAPI void * eet_data_read_cipher(Eet_File * ef,
+EAPI void * eet_data_read_cipher(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const char * cipher_key);
+ const char *name,
+ const char *cipher_key);
/**
* Write a data structure from memory and store in an eet file
* @since 1.0.0
* @ingroup Eet_Data_Cipher_Group
*/
-EAPI int eet_data_write_cipher(Eet_File * ef,
+EAPI int eet_data_write_cipher(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const char * cipher_key,
- const void * data,
+ const char *name,
+ const char *cipher_key,
+ const void *data,
int compress);
/**
EAPI void * eet_data_text_undump_cipher(const char *text,
const char *cipher_key,
int textlen,
- int * size_ret);
+ int *size_ret);
/**
* Dump an eet encoded data structure from an eet file into ascii
* @since 1.0.0
* @ingroup Eet_Data_Cipher_Group
*/
-EAPI int eet_data_undump_cipher(Eet_File * ef,
+EAPI int eet_data_undump_cipher(Eet_File *ef,
const char *name,
const char *cipher_key,
const char *text,
* @ingroup Eet_Data_Cipher_Group
*/
EAPI void * eet_data_descriptor_decode_cipher(Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key,
+ const void *data_in,
+ const char *cipher_key,
int size_in);
/**
* @ingroup Eet_Data_Cipher_Group
*/
EAPI void * eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key,
- int * size_ret);
+ const void *data_in,
+ const char *cipher_key,
+ int *size_ret);
/**
* @defgroup Eet_Node_Group Low-level Serialization Structures.
unsigned short us;
unsigned int ui;
unsigned long long ul;
- const char * str;
+ const char *str;
} value;
};
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI Eet_Node * eet_node_unsigned_char_new(const char * name,
+EAPI Eet_Node * eet_node_unsigned_char_new(const char *name,
unsigned char uc);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI Eet_Node * eet_node_unsigned_short_new(const char * name,
+EAPI Eet_Node * eet_node_unsigned_short_new(const char *name,
unsigned short us);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI Eet_Node * eet_node_unsigned_int_new(const char * name,
+EAPI Eet_Node * eet_node_unsigned_int_new(const char *name,
unsigned int ui);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI Eet_Node * eet_node_unsigned_long_long_new(const char * name,
+EAPI Eet_Node * eet_node_unsigned_long_long_new(const char *name,
unsigned long long l);
/**
* @ingroup Eet_Node_Group
*/
EAPI Eet_Node * eet_node_list_new(const char *name,
- Eina_List * nodes);
+ Eina_List *nodes);
/**
* TODO FIX ME
*/
EAPI Eet_Node * eet_node_array_new(const char *name,
int count,
- Eina_List * nodes);
+ Eina_List *nodes);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
EAPI Eet_Node * eet_node_var_array_new(const char *name,
- Eina_List * nodes);
+ Eina_List *nodes);
/**
* TODO FIX ME
*/
EAPI Eet_Node * eet_node_hash_new(const char *name,
const char *key,
- Eet_Node * node);
+ Eet_Node *node);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
EAPI Eet_Node * eet_node_struct_new(const char *name,
- Eina_List * nodes);
+ Eina_List *nodes);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
EAPI Eet_Node * eet_node_struct_child_new(const char *parent,
- Eet_Node * child);
+ Eet_Node *child);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI void eet_node_list_append(Eet_Node * parent,
+EAPI void eet_node_list_append(Eet_Node *parent,
const char *name,
- Eet_Node * child);
+ Eet_Node *child);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI void eet_node_struct_append(Eet_Node * parent,
+EAPI void eet_node_struct_append(Eet_Node *parent,
const char *name,
- Eet_Node * child);
+ Eet_Node *child);
/**
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI void eet_node_hash_add(Eet_Node * parent,
+EAPI void eet_node_hash_add(Eet_Node *parent,
const char *name,
const char *key,
- Eet_Node * child);
+ Eet_Node *child);
/**
* TODO FIX ME
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI void * eet_data_node_encode_cipher(Eet_Node * node,
+EAPI void * eet_data_node_encode_cipher(Eet_Node *node,
const char *cipher_key,
- int * size_ret);
+ int *size_ret);
/**
* TODO FIX ME
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI Eet_Node * eet_data_node_read_cipher(Eet_File * ef,
+EAPI Eet_Node * eet_data_node_read_cipher(Eet_File *ef,
const char *name,
const char *cipher_key);
* TODO FIX ME
* @ingroup Eet_Node_Group
*/
-EAPI int eet_data_node_write_cipher(Eet_File * ef,
+EAPI int eet_data_node_write_cipher(Eet_File *ef,
const char *name,
const char *cipher_key,
- Eet_Node * node,
+ Eet_Node *node,
int compress);
/* EXPERIMENTAL: THIS API MAY CHANGE IN THE FUTURE, USE IT ONLY IF YOU KNOW WHAT YOU ARE DOING. */
void *(*simple)(int type, Eet_Node_Data *data, void *user_data);
};
-EAPI void * eet_node_walk(void * parent,
- const char * name,
- Eet_Node * root,
+EAPI void * eet_node_walk(void *parent,
+ const char *name,
+ Eet_Node *root,
Eet_Node_Walk *cb,
- void * user_data);
+ void *user_data);
/*******/
* @since 1.2.4
* @ingroup Eet_Connection_Group
*/
-EAPI Eet_Connection * eet_connection_new(Eet_Read_Cb * eet_read_cb,
+EAPI Eet_Connection * eet_connection_new(Eet_Read_Cb *eet_read_cb,
Eet_Write_Cb *eet_write_cb,
- const void * user_data);
+ const void *user_data);
/**
* Process a raw packet received over the link
* @ingroup Eet_Connection_Group
*/
EAPI int eet_connection_received(Eet_Connection *conn,
- const void * data,
+ const void *data,
size_t size);
/**
* @since 1.2.4
* @ingroup Eet_Connection_Group
*/
-EAPI Eina_Bool eet_connection_send(Eet_Connection * conn,
+EAPI Eina_Bool eet_connection_send(Eet_Connection *conn,
Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key);
+ const void *data_in,
+ const char *cipher_key);
/**
* Convert a Eet_Node tree and prepare it to be send.
* @ingroup Eet_Connection_Group
*/
EAPI Eina_Bool eet_connection_node_send(Eet_Connection *conn,
- Eet_Node * node,
- const char * cipher_key);
+ Eet_Node *node,
+ const char *cipher_key);
/**
* Close a connection and lost its track.
* @ingroup Eet_Connection_Group
*/
EAPI void * eet_connection_close(Eet_Connection *conn,
- Eina_Bool * on_going);
+ Eina_Bool *on_going);
/***************************************************************************/
struct _Eet_String
{
- const char * mmap;
- char * str;
+ const char *mmap;
+ char *str;
int hash;
int len;
{
int type;
int count;
- const char * name;
- const char * key;
- Eet_Node * values;
- Eet_Node * next;
- Eet_Node * parent;
+ const char *name;
+ const char *key;
+ Eet_Node *values;
+ Eet_Node *next;
+ Eet_Node *parent;
Eet_Node_Data data;
};
Eet_Dictionary * eet_dictionary_add(void);
void eet_dictionary_free(Eet_Dictionary *ed);
int eet_dictionary_string_add(Eet_Dictionary *ed,
- const char * string);
+ const char *string);
int eet_dictionary_string_get_size(const Eet_Dictionary *ed,
int index);
const char * eet_dictionary_string_get_char(const Eet_Dictionary *ed,
int index);
Eina_Bool eet_dictionary_string_get_float(const Eet_Dictionary *ed,
int index,
- float * result);
+ float *result);
Eina_Bool eet_dictionary_string_get_double(const Eet_Dictionary *ed,
int index,
- double * result);
+ double *result);
Eina_Bool eet_dictionary_string_get_fp(const Eet_Dictionary *ed,
int index,
- Eina_F32p32 * result);
+ Eina_F32p32 *result);
int eet_dictionary_string_get_hash(const Eet_Dictionary *ed,
int index);
int _eet_hash_gen(const char *key, int hash_size);
-const void * eet_identity_check(const void * data_base,
+const void * eet_identity_check(const void *data_base,
unsigned int data_length,
- void ** sha1,
- int * sha1_length,
- const void * signature_base,
+ void **sha1,
+ int *sha1_length,
+ const void *signature_base,
unsigned int signature_length,
- const void ** raw_signature_base,
+ const void **raw_signature_base,
unsigned int *raw_signature_length,
- int * x509_length);
-void * eet_identity_compute_sha1(const void * data_base,
+ int *x509_length);
+void * eet_identity_compute_sha1(const void *data_base,
unsigned int data_length,
- int * sha1_length);
-Eet_Error eet_cipher(const void * data,
+ int *sha1_length);
+Eet_Error eet_cipher(const void *data,
unsigned int size,
- const char * key,
+ const char *key,
unsigned int length,
- void ** result,
+ void **result,
unsigned int *result_length);
-Eet_Error eet_decipher(const void * data,
+Eet_Error eet_decipher(const void *data,
unsigned int size,
- const char * key,
+ const char *key,
unsigned int length,
- void ** result,
+ void **result,
unsigned int *result_length);
-Eet_Error eet_identity_sign(FILE * fp,
+Eet_Error eet_identity_sign(FILE *fp,
Eet_Key *key);
void eet_identity_unref(Eet_Key *key);
void eet_identity_ref(Eet_Key *key);
#ifdef HAVE_CIPHER
# ifdef HAVE_GNUTLS
-static Eet_Error eet_hmac_sha1(const void * key,
+static Eet_Error eet_hmac_sha1(const void *key,
size_t key_len,
- const void * data,
+ const void *data,
size_t data_len,
unsigned char *res);
# endif /* ifdef HAVE_GNUTLS */
-static Eet_Error eet_pbkdf2_sha1(const char * key,
+static Eet_Error eet_pbkdf2_sha1(const char *key,
int key_len,
const unsigned char *salt,
unsigned int salt_len,
int iter,
- unsigned char * res,
+ unsigned char *res,
int res_len);
#endif /* ifdef HAVE_CIPHER */
gnutls_x509_crt_t certificate;
gnutls_x509_privkey_t private_key;
# else /* ifdef HAVE_GNUTLS */
- X509 * certificate;
- EVP_PKEY * private_key;
+ X509 *certificate;
+ EVP_PKEY *private_key;
# endif /* ifdef HAVE_GNUTLS */
#endif /* ifdef HAVE_SIGNATURE */
};
EAPI Eet_Key *
-eet_identity_open(const char * certificate_file,
- const char * private_key_file,
+eet_identity_open(const char *certificate_file,
+ const char *private_key_file,
Eet_Key_Password_Callback cb)
{
#ifdef HAVE_SIGNATURE
EAPI void
eet_identity_print(Eet_Key *key,
- FILE * out)
+ FILE *out)
{
#ifdef HAVE_SIGNATURE
# ifdef HAVE_GNUTLS
} /* eet_identity_unref */
void *
-eet_identity_compute_sha1(const void * data_base,
+eet_identity_compute_sha1(const void *data_base,
unsigned int data_length,
- int * sha1_length)
+ int *sha1_length)
{
void *result;
} /* eet_identity_compute_sha1 */
Eet_Error
-eet_identity_sign(FILE * fp,
+eet_identity_sign(FILE *fp,
Eet_Key *key)
{
#ifdef HAVE_SIGNATURE
} /* eet_identity_sign */
const void *
-eet_identity_check(const void * data_base,
+eet_identity_check(const void *data_base,
unsigned int data_length,
- void ** sha1,
- int * sha1_length,
- const void * signature_base,
+ void **sha1,
+ int *sha1_length,
+ const void *signature_base,
unsigned int signature_length,
- const void ** raw_signature_base,
+ const void **raw_signature_base,
unsigned int *raw_signature_length,
- int * x509_length)
+ int *x509_length)
{
#ifdef HAVE_SIGNATURE
const int *header = signature_base;
EAPI void
eet_identity_certificate_print(const unsigned char *certificate,
int der_length,
- FILE * out)
+ FILE *out)
{
#ifdef HAVE_SIGNATURE
if (!certificate || !out || der_length <= 0)
} /* eet_identity_certificate_print */
Eet_Error
-eet_cipher(const void * data,
+eet_cipher(const void *data,
unsigned int size,
- const char * key,
+ const char *key,
unsigned int length,
- void ** result,
+ void **result,
unsigned int *result_length)
{
#ifdef HAVE_CIPHER
} /* eet_cipher */
Eet_Error
-eet_decipher(const void * data,
+eet_decipher(const void *data,
unsigned int size,
- const char * key,
+ const char *key,
unsigned int length,
- void ** result,
+ void **result,
unsigned int *result_length)
{
#ifdef HAVE_CIPHER
#ifdef HAVE_CIPHER
# ifdef HAVE_GNUTLS
static Eet_Error
-eet_hmac_sha1(const void * key,
+eet_hmac_sha1(const void *key,
size_t key_len,
- const void * data,
+ const void *data,
size_t data_len,
unsigned char *res)
{
# endif /* ifdef HAVE_GNUTLS */
static Eet_Error
-eet_pbkdf2_sha1(const char * key,
+eet_pbkdf2_sha1(const char *key,
int key_len,
const unsigned char *salt,
unsigned int salt_len,
int iter,
- unsigned char * res,
+ unsigned char *res,
int res_len)
{
unsigned char digest[20];
struct _Eet_Connection
{
- Eet_Read_Cb * eet_read_cb;
+ Eet_Read_Cb *eet_read_cb;
Eet_Write_Cb *eet_write_cb;
- void * user_data;
+ void *user_data;
size_t allocated;
size_t size;
size_t received;
- void * buffer;
+ void *buffer;
};
EAPI Eet_Connection *
-eet_connection_new(Eet_Read_Cb * eet_read_cb,
+eet_connection_new(Eet_Read_Cb *eet_read_cb,
Eet_Write_Cb *eet_write_cb,
- const void * user_data)
+ const void *user_data)
{
Eet_Connection *conn;
EAPI int
eet_connection_received(Eet_Connection *conn,
- const void * data,
+ const void *data,
size_t size)
{
if ((!conn) || (!data) || (!size))
static Eina_Bool
_eet_connection_raw_send(Eet_Connection *conn,
- void * data,
+ void *data,
int data_size)
{
Eet_Message *message;
} /* _eet_connection_raw_send */
EAPI Eina_Bool
-eet_connection_send(Eet_Connection * conn,
+eet_connection_send(Eet_Connection *conn,
Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key)
+ const void *data_in,
+ const char *cipher_key)
{
void *flat_data;
int data_size;
EAPI Eina_Bool
eet_connection_node_send(Eet_Connection *conn,
- Eet_Node * node,
- const char * cipher_key)
+ Eet_Node *node,
+ const char *cipher_key)
{
void *data;
int data_size;
EAPI void *
eet_connection_close(Eet_Connection *conn,
- Eina_Bool * on_going)
+ Eina_Bool *on_going)
{
void *user_data;
int size;
const char *name;
int (*get)(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dest);
- void * (*put)(Eet_Dictionary *ed, const void *src, int *size_ret);
+ void * (*put)(Eet_Dictionary *ed, const void *src, int *size_ret);
};
struct _Eet_Data_Group_Type_Codec
struct _Eet_Data_Chunk
{
- char * name;
+ char *name;
int len;
int size;
int hash;
- void * data;
+ void *data;
unsigned char type;
unsigned char group_type;
};
struct _Eet_Data_Descriptor_Hash
{
- Eet_Data_Element * element;
+ Eet_Data_Element *element;
Eet_Data_Descriptor_Hash *next;
};
struct _Eet_Data_Descriptor
{
- const char * name;
+ const char *name;
const Eet_Dictionary *ed;
int size;
struct
{
- void * (*mem_alloc)(size_t size);
+ void * (*mem_alloc)(size_t size);
void (*mem_free)(void *mem);
- char * (*str_alloc)(const char *str);
- char * (*str_direct_alloc)(const char *str);
+ char * (*str_alloc)(const char *str);
+ char * (*str_direct_alloc)(const char *str);
void (*str_free)(const char *str);
void (*str_direct_free)(const char *str);
- void * (*list_next)(void *l);
- void * (*list_append)(void *l, void *d);
- void * (*list_data)(void *l);
- void * (*list_free)(void *l);
+ void * (*list_next)(void *l);
+ void * (*list_append)(void *l, void *d);
+ void * (*list_data)(void *l);
+ void * (*list_free)(void *l);
void (*hash_foreach)(void *h, int (*func)(void *h, const char *k, void *dt, void *fdt), void *fdt);
- void * (*hash_add)(void *h, const char *k, void *d);
+ void * (*hash_add)(void *h, const char *k, void *d);
void (*hash_free)(void *h);
const char *(*type_get)(const void *data, Eina_Bool *unknow);
Eina_Bool (*type_set)(const char *type, void *data, Eina_Bool unknow);
struct _Eet_Data_Element
{
- const char * name;
- const char * counter_name;
- const char * directory_name_ptr;
+ const char *name;
+ const char *counter_name;
+ const char *directory_name_ptr;
Eet_Data_Descriptor *subtype;
int offset; /* offset in bytes from the base element */
int count; /* number of elements for a fixed array */
struct _Eet_Data_Encode_Hash_Info
{
- Eet_Data_Stream * ds;
+ Eet_Data_Stream *ds;
Eet_Data_Element *ede;
- Eet_Dictionary * ed;
+ Eet_Dictionary *ed;
};
struct _Eet_Free
/*---*/
static int eet_data_get_char(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_char(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_short(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_short(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static inline int eet_data_get_int(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_int(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_long_long(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_long_long(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_float(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_float(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_double(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_double(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_f32p32(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_f32p32(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_f16p16(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_f16p16(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_f8p24(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_f8p24(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static inline int eet_data_get_string(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_string(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_istring(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_istring(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_null(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_null(Eet_Dictionary *ed,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static int eet_data_get_type(const Eet_Dictionary *ed,
int type,
- const void * src,
- const void * src_end,
- void * dest);
+ const void *src,
+ const void *src_end,
+ void *dest);
static void * eet_data_put_type(Eet_Dictionary *ed,
int type,
- const void * src,
- int * size_ret);
+ const void *src,
+ int *size_ret);
static Eet_Node * eet_data_node_simple_type(int type,
const char *name,
- void * dd);
+ void *dd);
-static int eet_data_get_unknown(Eet_Free_Context * context,
+static int eet_data_get_unknown(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data_in,
- char ** p,
- int * size);
-static void eet_data_put_unknown(Eet_Dictionary * ed,
+ void *data_in,
+ char **p,
+ int *size);
+static void eet_data_put_unknown(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static void eet_data_put_array(Eet_Dictionary * ed,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static void eet_data_put_array(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static int eet_data_get_array(Eet_Free_Context * context,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static int eet_data_get_array(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size);
-static int eet_data_get_list(Eet_Free_Context * context,
+ void *data,
+ char **p,
+ int *size);
+static int eet_data_get_list(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data_in,
- char ** p,
- int * size);
-static void eet_data_put_list(Eet_Dictionary * ed,
+ void *data_in,
+ char **p,
+ int *size);
+static void eet_data_put_list(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static void eet_data_put_hash(Eet_Dictionary * ed,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static void eet_data_put_hash(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static int eet_data_get_hash(Eet_Free_Context * context,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static int eet_data_get_hash(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size);
-static void eet_data_put_union(Eet_Dictionary * ed,
+ void *data,
+ char **p,
+ int *size);
+static void eet_data_put_union(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static int eet_data_get_union(Eet_Free_Context * context,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static int eet_data_get_union(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size);
-static void eet_data_put_variant(Eet_Dictionary * ed,
+ void *data,
+ char **p,
+ int *size);
+static void eet_data_put_variant(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in);
-static int eet_data_get_variant(Eet_Free_Context * context,
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in);
+static int eet_data_get_variant(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size);
+ void *data,
+ char **p,
+ int *size);
static void eet_data_chunk_get(const Eet_Dictionary *ed,
- Eet_Data_Chunk * chnk,
- const void * src,
+ Eet_Data_Chunk *chnk,
+ const void *src,
int size);
-static Eet_Data_Chunk * eet_data_chunk_new(void * data,
+static Eet_Data_Chunk * eet_data_chunk_new(void *data,
int size,
const char *name,
int type,
static Eet_Data_Stream * eet_data_stream_new(void);
static void eet_data_stream_write(Eet_Data_Stream *ds,
- const void * data,
+ const void *data,
int size);
static void eet_data_stream_free(Eet_Data_Stream *ds);
-static void eet_data_chunk_put(Eet_Dictionary * ed,
- Eet_Data_Chunk * chnk,
+static void eet_data_chunk_put(Eet_Dictionary *ed,
+ Eet_Data_Chunk *chnk,
Eet_Data_Stream *ds);
-static int eet_data_descriptor_encode_hash_cb(void * hash,
+static int eet_data_descriptor_encode_hash_cb(void *hash,
const char *key,
- void * hdata,
- void * fdata);
-static void * _eet_data_descriptor_encode(Eet_Dictionary * ed,
+ void *hdata,
+ void *fdata);
+static void * _eet_data_descriptor_encode(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- const void * data_in,
- int * size_ret);
-static void * _eet_data_descriptor_decode(Eet_Free_Context * context,
+ const void *data_in,
+ int *size_ret);
+static void * _eet_data_descriptor_decode(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- const void * data_in,
+ Eet_Data_Descriptor *edd,
+ const void *data_in,
int size_in);
/*---*/
/* CHAR TYPE */
static int
eet_data_get_char(const Eet_Dictionary *ed __UNUSED__,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
char *s, *d;
static void *
eet_data_put_char(Eet_Dictionary *ed __UNUSED__,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
char *s, *d;
/* SHORT TYPE */
static int
eet_data_get_short(const Eet_Dictionary *ed __UNUSED__,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
short *d;
static void *
eet_data_put_short(Eet_Dictionary *ed __UNUSED__,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
short *s, *d;
/* INT TYPE */
static inline int
eet_data_get_int(const Eet_Dictionary *ed __UNUSED__,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
int *d;
static void *
eet_data_put_int(Eet_Dictionary *ed __UNUSED__,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
int *s, *d;
/* LONG LONG TYPE */
static int
eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
unsigned long long *d;
static void *
eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
unsigned long long *s, *d;
/* STRING TYPE */
static inline int
eet_data_get_string_hash(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end)
+ const void *src,
+ const void *src_end)
{
if (ed)
{
static inline int
eet_data_get_string(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
char *s, **d;
static void *
eet_data_put_string(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
char *s, *d;
int len;
/* ALWAYS INLINED STRING TYPE */
static int
eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
return eet_data_get_string(NULL, src, src_end, dst);
} /* eet_data_get_istring */
static void *
eet_data_put_istring(Eet_Dictionary *ed __UNUSED__,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
return eet_data_put_string(NULL, src, size_ret);
} /* eet_data_put_istring */
eet_data_get_null(const Eet_Dictionary *ed __UNUSED__,
const void *src __UNUSED__,
const void *src_end __UNUSED__,
- void * dst)
+ void *dst)
{
char **d;
static void *
eet_data_put_null(Eet_Dictionary *ed __UNUSED__,
const void *src __UNUSED__,
- int * size_ret)
+ int *size_ret)
{
*size_ret = 0;
return NULL;
static inline int
_eet_data_float_cache_get(const char *s,
int len,
- float * d)
+ float *d)
{
/* fast handle of simple case 0xMp+E*/
if ((len == 6) && (s[0] == '0') && (s[1] == 'x') && (s[3] == 'p'))
static inline int
_eet_data_double_cache_get(const char *s,
int len,
- double * d)
+ double *d)
{
/* fast handle of simple case 0xMp+E*/
if ((len == 6) && (s[0] == '0') && (s[1] == 'x') && (s[3] == 'p'))
/* FLOAT TYPE */
static int
eet_data_get_float(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
float *d;
int idx;
static void *
eet_data_put_float(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
char buf[128];
int idx;
/* DOUBLE TYPE */
static int
eet_data_get_double(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
double *d;
int idx;
static void *
eet_data_put_double(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
char buf[128];
int idx;
static int
eet_data_get_f32p32(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
Eina_F32p32 *fp;
int idx;
static void *
eet_data_put_f32p32(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
char buf[128];
int idx;
static int
eet_data_get_f16p16(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
Eina_F32p32 tmp;
Eina_F16p16 *fp;
static void *
eet_data_put_f16p16(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
Eina_F32p32 tmp;
static int
eet_data_get_f8p24(const Eet_Dictionary *ed,
- const void * src,
- const void * src_end,
- void * dst)
+ const void *src,
+ const void *src_end,
+ void *dst)
{
Eina_F32p32 tmp;
Eina_F8p24 *fp;
static void *
eet_data_put_f8p24(Eet_Dictionary *ed,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
Eina_F32p32 tmp;
static inline int
eet_data_get_type(const Eet_Dictionary *ed,
int type,
- const void * src,
- const void * src_end,
- void * dest)
+ const void *src,
+ const void *src_end,
+ void *dest)
{
int ret;
static inline void *
eet_data_put_type(Eet_Dictionary *ed,
int type,
- const void * src,
- int * size_ret)
+ const void *src,
+ int *size_ret)
{
void *ret;
static inline void
eet_data_chunk_get(const Eet_Dictionary *ed,
- Eet_Data_Chunk * chnk,
- const void * src,
+ Eet_Data_Chunk *chnk,
+ const void *src,
int size)
{
const char *s;
} /* eet_data_chunk_get */
static inline Eet_Data_Chunk *
-eet_data_chunk_new(void * data,
+eet_data_chunk_new(void *data,
int size,
const char *name,
int type,
static inline void
eet_data_stream_write(Eet_Data_Stream *ds,
- const void * data,
+ const void *data,
int size)
{
char *p;
} /* eet_data_stream_write */
static void
-eet_data_chunk_put(Eet_Dictionary * ed,
- Eet_Data_Chunk * chnk,
+eet_data_chunk_put(Eet_Dictionary *ed,
+ Eet_Data_Chunk *chnk,
Eet_Data_Stream *ds)
{
int *size;
static Eet_Data_Element *
_eet_descriptor_hash_find(Eet_Data_Descriptor *edd,
- char * name,
+ char *name,
int hash)
{
Eet_Data_Descriptor_Hash *bucket;
} /* _eet_str_free */
static Eina_Hash *
-_eet_eina_hash_add_alloc(Eina_Hash * hash,
+_eet_eina_hash_add_alloc(Eina_Hash *hash,
const char *key,
- void * data)
+ void *data)
{
if (!hash)
hash = eina_hash_string_small_new(NULL);
} /* _eet_eina_hash_add_alloc */
static Eina_Hash *
-_eet_eina_hash_direct_add_alloc(Eina_Hash * hash,
+_eet_eina_hash_direct_add_alloc(Eina_Hash *hash,
const char *key,
- void * data)
+ void *data)
{
if (!hash)
hash = eina_hash_string_small_new(NULL);
} /* _eet_str_direct_free */
static void
-_eet_eina_hash_foreach(void * hash,
+_eet_eina_hash_foreach(void *hash,
Eina_Hash_Foreach cb,
- void * fdata)
+ void *fdata)
{
if (hash)
eina_hash_foreach(hash, cb, fdata);
/*---*/
EAPI Eina_Bool
eet_eina_stream_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc,
- const char * name,
+ const char *name,
int size)
{
if (!eddc || !name)
EAPI Eina_Bool
eet_eina_file_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc,
- const char * name,
+ const char *name,
int size)
{
if (!eet_eina_stream_data_descriptor_class_set(eddc, name, size))
EAPI void
eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
- const char * name,
+ const char *name,
int type,
int group_type,
int offset,
int count,
/* int counter_offset, */
- const char * counter_name /* FIXME: Useless should go on a major release */,
+ const char *counter_name /* FIXME: Useless should go on a major release */,
Eet_Data_Descriptor *subtype)
{
Eet_Data_Element *ede;
} /* eet_data_descriptor_element_add */
EAPI void *
-eet_data_read_cipher(Eet_File * ef,
+eet_data_read_cipher(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const char * cipher_key)
+ const char *name,
+ const char *cipher_key)
{
const Eet_Dictionary *ed = NULL;
const void *data = NULL;
} /* eet_data_read_cipher */
EAPI Eet_Node *
-eet_data_node_read_cipher(Eet_File * ef,
+eet_data_node_read_cipher(Eet_File *ef,
const char *name,
const char *cipher_key)
{
} /* eet_data_node_read_cipher */
EAPI void *
-eet_data_read(Eet_File * ef,
+eet_data_read(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name)
+ const char *name)
{
return eet_data_read_cipher(ef, edd, name, NULL);
} /* eet_data_read */
EAPI int
-eet_data_write_cipher(Eet_File * ef,
+eet_data_write_cipher(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const char * cipher_key,
- const void * data,
+ const char *name,
+ const char *cipher_key,
+ const void *data,
int compress)
{
Eet_Dictionary *ed;
} /* eet_data_write_cipher */
EAPI int
-eet_data_write(Eet_File * ef,
+eet_data_write(Eet_File *ef,
Eet_Data_Descriptor *edd,
- const char * name,
- const void * data,
+ const char *name,
+ const void *data,
int compress)
{
return eet_data_write_cipher(ef, edd, name, NULL, data, compress);
static void
_eet_free_add(Eet_Free *ef,
- void * data)
+ void *data)
{
int hash;
int i;
#define _eet_freelist_unref(Ctx) _eet_free_unref(&Ctx->freelist);
static void
-_eet_freelist_free(Eet_Free_Context * context,
+_eet_freelist_free(Eet_Free_Context *context,
Eet_Data_Descriptor *edd)
{
int j;
#define _eet_freelist_list_unref(Ctx) _eet_free_unref(&Ctx->freelist_list);
static void
-_eet_freelist_list_free(Eet_Free_Context * context,
+_eet_freelist_list_free(Eet_Free_Context *context,
Eet_Data_Descriptor *edd)
{
int j;
#define _eet_freelist_direct_str_unref(Ctx) _eet_free_unref(&Ctx->freelist_direct_str);
static void
-_eet_freelist_direct_str_free(Eet_Free_Context * context,
+_eet_freelist_direct_str_free(Eet_Free_Context *context,
Eet_Data_Descriptor *edd)
{
int j;
#define _eet_freelist_hash_unref(Ctx) _eet_free_unref(&Ctx->freelist_hash);
static void
-_eet_freelist_hash_free(Eet_Free_Context * context,
+_eet_freelist_hash_free(Eet_Free_Context *context,
Eet_Data_Descriptor *edd)
{
int j;
static int
eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__,
const char *cipher_key,
- void * hdata,
- void * fdata)
+ void *hdata,
+ void *fdata)
{
Eet_Dictionary *ed;
Eet_Data_Encode_Hash_Info *edehi;
static char *
_eet_data_dump_token_get(const char *src,
- int * len)
+ int *len)
{
const char *p;
char *tok = NULL;
} /* _eet_data_dump_token_get */
static void
-eet_data_encode(Eet_Dictionary * ed,
+eet_data_encode(Eet_Dictionary *ed,
Eet_Data_Stream *ds,
- void * data,
- const char * name,
+ void *data,
+ const char *name,
int size,
int type,
int group_type)
static void *
_eet_data_dump_encode(int parent_type,
Eet_Dictionary *ed,
- Eet_Node * node,
- int * size_ret)
+ Eet_Node *node,
+ int *size_ret)
{
Eet_Data_Chunk *chnk = NULL;
Eet_Data_Stream *ds;
static void *
_eet_data_dump_parse(Eet_Dictionary *ed,
- int * size_ret,
- const char * src,
+ int *size_ret,
+ const char *src,
int size)
{
void *cdata = NULL;
}
static void *
-_eet_data_descriptor_decode(Eet_Free_Context * context,
+_eet_data_descriptor_decode(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- const void * data_in,
+ Eet_Data_Descriptor *edd,
+ const void *data_in,
int size_in)
{
Eet_Node *result = NULL;
} /* _eet_data_descriptor_decode */
static int
-eet_data_get_list(Eet_Free_Context * context,
+eet_data_get_list(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type __UNUSED__,
- void * data,
- char ** p,
- int * size)
+ void *data,
+ char **p,
+ int *size)
{
Eet_Data_Descriptor *subtype = NULL;
void *list = NULL;
} /* eet_data_get_list */
static int
-eet_data_get_hash(Eet_Free_Context * context,
+eet_data_get_hash(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type __UNUSED__,
- void * data,
- char ** p,
- int * size)
+ void *data,
+ char **p,
+ int *size)
{
void **ptr;
void *hash = NULL;
* each chunk is pointless.
*/
static int
-eet_data_get_array(Eet_Free_Context * context,
+eet_data_get_array(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size)
+ void *data,
+ char **p,
+ int *size)
{
Eina_List *childs = NULL;
const char *name;
} /* eet_data_get_array */
static void
-eet_data_put_union(Eet_Dictionary * ed,
+eet_data_put_union(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
const char *union_type;
int i;
} /* eet_data_put_union */
static int
-eet_data_get_union(Eet_Free_Context * context,
- const Eet_Dictionary * ed,
+eet_data_get_union(Eet_Free_Context *context,
+ const Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type,
- void * data,
- char ** p,
- int * size)
+ void *data,
+ char **p,
+ int *size)
{
const char *union_type;
void *data_ret = NULL;
} /* eet_data_get_union */
static void
-eet_data_put_variant(Eet_Dictionary * ed,
+eet_data_put_variant(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
const char *union_type;
void *data;
} /* eet_data_put_variant */
static int
-eet_data_get_variant(Eet_Free_Context * context,
- const Eet_Dictionary * ed,
+eet_data_get_variant(Eet_Free_Context *context,
+ const Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type __UNUSED__,
int group_type __UNUSED__,
- void * data,
- char ** p,
- int * size)
+ void *data,
+ char **p,
+ int *size)
{
const char *union_type;
void *data_ret = NULL;
} /* eet_data_node_simple_type */
static int
-eet_data_get_unknown(Eet_Free_Context * context,
+eet_data_get_unknown(Eet_Free_Context *context,
const Eet_Dictionary *ed,
- Eet_Data_Descriptor * edd,
- Eet_Data_Element * ede,
- Eet_Data_Chunk * echnk,
+ Eet_Data_Descriptor *edd,
+ Eet_Data_Element *ede,
+ Eet_Data_Chunk *echnk,
int type,
int group_type __UNUSED__,
- void * data,
+ void *data,
char **p __UNUSED__,
int *size __UNUSED__)
{
} /* eet_data_get_unknown */
static void
-eet_data_put_array(Eet_Dictionary * ed,
+eet_data_put_array(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
void *data;
int offset = 0;
} /* eet_data_put_array */
static void
-eet_data_put_unknown(Eet_Dictionary * ed,
+eet_data_put_unknown(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd __UNUSED__,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
void *data = NULL;
int size;
} /* eet_data_put_unknown */
static void
-eet_data_put_list(Eet_Dictionary * ed,
+eet_data_put_list(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
void *data;
void *l;
} /* eet_data_put_list */
static void
-eet_data_put_hash(Eet_Dictionary * ed,
+eet_data_put_hash(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- Eet_Data_Element * ede,
- Eet_Data_Stream * ds,
- void * data_in)
+ Eet_Data_Element *ede,
+ Eet_Data_Stream *ds,
+ void *data_in)
{
Eet_Data_Encode_Hash_Info fdata;
void *l;
eet_data_text_undump_cipher(const char *text,
const char *cipher_key,
int textlen,
- int * size_ret)
+ int *size_ret)
{
void *ret = NULL;
EAPI void *
eet_data_text_undump(const char *text,
int textlen,
- int * size_ret)
+ int *size_ret)
{
return eet_data_text_undump_cipher(text, NULL, textlen, size_ret);
} /* eet_data_text_undump */
EAPI int
-eet_data_undump_cipher(Eet_File * ef,
+eet_data_undump_cipher(Eet_File *ef,
const char *name,
const char *cipher_key,
const char *text,
} /* eet_data_undump_cipher */
EAPI int
-eet_data_undump(Eet_File * ef,
+eet_data_undump(Eet_File *ef,
const char *name,
const char *text,
int textlen,
EAPI void *
eet_data_descriptor_decode_cipher(Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key,
+ const void *data_in,
+ const char *cipher_key,
int size_in)
{
void *deciphered = (void *)data_in;
EAPI void *
eet_data_descriptor_decode(Eet_Data_Descriptor *edd,
- const void * data_in,
+ const void *data_in,
int size_in)
{
return eet_data_descriptor_decode_cipher(edd, data_in, NULL, size_in);
} /* eet_data_node_decode_cipher */
static void *
-_eet_data_descriptor_encode(Eet_Dictionary * ed,
+_eet_data_descriptor_encode(Eet_Dictionary *ed,
Eet_Data_Descriptor *edd,
- const void * data_in,
- int * size_ret)
+ const void *data_in,
+ int *size_ret)
{
Eet_Data_Stream *ds;
Eet_Data_Chunk *chnk;
} /* _eet_data_descriptor_encode */
EAPI int
-eet_data_node_write_cipher(Eet_File * ef,
+eet_data_node_write_cipher(Eet_File *ef,
const char *name,
const char *cipher_key,
- Eet_Node * node,
+ Eet_Node *node,
int compress)
{
Eet_Dictionary *ed;
} /* eet_data_node_write_cipher */
EAPI void *
-eet_data_node_encode_cipher(Eet_Node * node,
+eet_data_node_encode_cipher(Eet_Node *node,
const char *cipher_key,
- int * size_ret)
+ int *size_ret)
{
void *ret = NULL;
void *ciphered = NULL;
EAPI void *
eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd,
- const void * data_in,
- const char * cipher_key,
- int * size_ret)
+ const void *data_in,
+ const char *cipher_key,
+ int *size_ret)
{
void *ret = NULL;
void *ciphered = NULL;
EAPI void *
eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
- const void * data_in,
- int * size_ret)
+ const void *data_in,
+ int *size_ret)
{
return eet_data_descriptor_encode_cipher(edd, data_in, NULL, size_ret);
} /* eet_data_descriptor_encode */
static int
_eet_dictionary_lookup(Eet_Dictionary *ed,
- const char * string,
+ const char *string,
int hash)
{
int prev = -1;
int
eet_dictionary_string_add(Eet_Dictionary *ed,
- const char * string)
+ const char *string)
{
Eet_String *current;
char *str;
static inline Eina_Bool
_eet_dictionary_string_get_me_cache(const char *s,
int len,
- int * mantisse,
- int * exponent)
+ int *mantisse,
+ int *exponent)
{
if ((len == 6) && (s[0] == '0') && (s[1] == 'x') && (s[3] == 'p'))
{
static inline Eina_Bool
_eet_dictionary_string_get_float_cache(const char *s,
int len,
- float * result)
+ float *result)
{
int mantisse;
int exponent;
static inline Eina_Bool
_eet_dictionary_string_get_double_cache(const char *s,
int len,
- double * result)
+ double *result)
{
int mantisse;
int exponent;
static inline Eina_Bool
_eet_dictionary_test(const Eet_Dictionary *ed,
int idx,
- void * result)
+ void *result)
{
if (!result)
return EINA_FALSE;
Eina_Bool
eet_dictionary_string_get_float(const Eet_Dictionary *ed,
int idx,
- float * result)
+ float *result)
{
if (!_eet_dictionary_test(ed, idx, result))
return EINA_FALSE;
Eina_Bool
eet_dictionary_string_get_double(const Eet_Dictionary *ed,
int idx,
- double * result)
+ double *result)
{
if (!_eet_dictionary_test(ed, idx, result))
return EINA_FALSE;
Eina_Bool
eet_dictionary_string_get_fp(const Eet_Dictionary *ed,
int idx,
- Eina_F32p32 * result)
+ Eina_F32p32 *result)
{
if (!_eet_dictionary_test(ed, idx, result))
return EINA_FALSE;
EAPI int
eet_dictionary_string_check(Eet_Dictionary *ed,
- const char * string)
+ const char *string)
{
int i;
{
struct jpeg_source_mgr pub;
- const unsigned char * buf;
+ const unsigned char *buf;
size_t len;
};
static int
eet_jpeg_membuf_src(j_decompress_ptr cinfo,
- const void * buf,
+ const void *buf,
size_t len)
{
struct jpeg_membuf_src *src;
{
struct jpeg_destination_mgr pub;
- void ** dst_buf;
- size_t * dst_len;
+ void **dst_buf;
+ size_t *dst_len;
- unsigned char * buf;
+ unsigned char *buf;
size_t len;
int failed;
};
static int
eet_jpeg_membuf_dst(j_compress_ptr cinfo,
- void ** buf,
- size_t * len)
+ void **buf,
+ size_t *len)
{
struct jpeg_membuf_dst *dst;
static void _JPEGErrorHandler2(j_common_ptr cinfo,
int msg_level);
-static int eet_data_image_jpeg_header_decode(const void * data,
+static int eet_data_image_jpeg_header_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h);
-static int eet_data_image_jpeg_rgb_decode(const void * data,
+static int eet_data_image_jpeg_rgb_decode(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride);
-static void * eet_data_image_jpeg_alpha_decode(const void * data,
+static void * eet_data_image_jpeg_alpha_decode(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride);
-static void * eet_data_image_lossless_convert(int * size,
- const void * data,
+static void * eet_data_image_lossless_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha);
-static void * eet_data_image_lossless_compressed_convert(int * size,
- const void * data,
+static void * eet_data_image_lossless_compressed_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
int compression);
-static void * eet_data_image_jpeg_convert(int * size,
- const void * data,
+static void * eet_data_image_jpeg_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
int quality);
-static void * eet_data_image_jpeg_alpha_convert(int * size,
- const void * data,
+static void * eet_data_image_jpeg_alpha_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* _JPEGErrorHandler2 */
static int
-eet_data_image_jpeg_header_decode(const void * data,
+eet_data_image_jpeg_header_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h)
} /* eet_data_image_jpeg_header_decode */
static int
-eet_data_image_jpeg_rgb_decode(const void * data,
+eet_data_image_jpeg_rgb_decode(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
} /* eet_data_image_jpeg_rgb_decode */
static void *
-eet_data_image_jpeg_alpha_decode(const void * data,
+eet_data_image_jpeg_alpha_decode(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
} /* eet_data_image_jpeg_alpha_decode */
static void *
-eet_data_image_lossless_convert(int * size,
- const void * data,
+eet_data_image_lossless_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha)
} /* eet_data_image_lossless_convert */
static void *
-eet_data_image_lossless_compressed_convert(int * size,
- const void * data,
+eet_data_image_lossless_compressed_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_lossless_compressed_convert */
static void *
-eet_data_image_jpeg_convert(int * size,
- const void * data,
+eet_data_image_jpeg_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_jpeg_convert */
static void *
-eet_data_image_jpeg_alpha_convert(int * size,
- const void * data,
+eet_data_image_jpeg_alpha_convert(int *size,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_jpeg_alpha_convert */
EAPI int
-eet_data_image_write_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
- const void * data,
+eet_data_image_write_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_write_cipher */
EAPI int
-eet_data_image_write(Eet_File * ef,
- const char * name,
- const void * data,
+eet_data_image_write(Eet_File *ef,
+ const char *name,
+ const void *data,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_write */
EAPI void *
-eet_data_image_read_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+eet_data_image_read_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
unsigned int *d = NULL;
void *data = NULL;
} /* eet_data_image_read_cipher */
EAPI void *
-eet_data_image_read(Eet_File * ef,
- const char * name,
+eet_data_image_read(Eet_File *ef,
+ const char *name,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_read_cipher(ef, name, NULL, w, h, alpha,
comp, quality, lossy);
} /* eet_data_image_read */
EAPI int
-eet_data_image_read_to_surface_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+eet_data_image_read_to_surface_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int src_x,
unsigned int src_y,
unsigned int *d,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
void *data = NULL;
int free_data = 0;
} /* eet_data_image_read_to_surface_cipher */
EAPI int
-eet_data_image_read_to_surface(Eet_File * ef,
- const char * name,
+eet_data_image_read_to_surface(Eet_File *ef,
+ const char *name,
unsigned int src_x,
unsigned int src_y,
unsigned int *d,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_read_to_surface_cipher(ef, name, NULL,
src_x, src_y, d,
} /* eet_data_image_read_to_surface */
EAPI int
-eet_data_image_header_read_cipher(Eet_File * ef,
- const char * name,
- const char * cipher_key,
+eet_data_image_header_read_cipher(Eet_File *ef,
+ const char *name,
+ const char *cipher_key,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
void *data = NULL;
int size = 0;
} /* eet_data_image_header_read_cipher */
EAPI int
-eet_data_image_header_read(Eet_File * ef,
- const char * name,
+eet_data_image_header_read(Eet_File *ef,
+ const char *name,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_header_read_cipher(ef, name, NULL,
w, h, alpha,
} /* eet_data_image_header_read */
EAPI void *
-eet_data_image_encode_cipher(const void * data,
- const char * cipher_key,
+eet_data_image_encode_cipher(const void *data,
+ const char *cipher_key,
unsigned int w,
unsigned int h,
int alpha,
int comp,
int quality,
int lossy,
- int * size_ret)
+ int *size_ret)
{
void *d = NULL;
void *ciphered_d = NULL;
} /* eet_data_image_encode_cipher */
EAPI void *
-eet_data_image_encode(const void * data,
- int * size_ret,
+eet_data_image_encode(const void *data,
+ int *size_ret,
unsigned int w,
unsigned int h,
int alpha,
} /* eet_data_image_encode */
EAPI int
-eet_data_image_header_decode_cipher(const void * data,
- const char * cipher_key,
+eet_data_image_header_decode_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
int header[8];
void *deciphered_d = NULL;
} /* eet_data_image_header_decode_cipher */
EAPI int
-eet_data_image_header_decode(const void * data,
+eet_data_image_header_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_header_decode_cipher(data,
NULL,
unsigned int src_x,
unsigned int src_y,
unsigned int src_w,
- unsigned int * dst,
+ unsigned int *dst,
unsigned int w,
unsigned int h,
unsigned int row_stride)
} /* _eet_data_image_copy_buffer */
static int
-_eet_data_image_decode_inside(const void * data,
+_eet_data_image_decode_inside(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
} /* _eet_data_image_decode_inside */
EAPI void *
-eet_data_image_decode_cipher(const void * data,
- const char * cipher_key,
+eet_data_image_decode_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
unsigned int *d = NULL;
unsigned int iw, ih;
} /* eet_data_image_decode_cipher */
EAPI void *
-eet_data_image_decode(const void * data,
+eet_data_image_decode(const void *data,
int size,
unsigned int *w,
unsigned int *h,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_decode_cipher(data, NULL, size, w, h,
alpha, comp, quality, lossy);
} /* eet_data_image_decode */
EAPI int
-eet_data_image_decode_to_surface_cipher(const void * data,
- const char * cipher_key,
+eet_data_image_decode_to_surface_cipher(const void *data,
+ const char *cipher_key,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
unsigned int iw, ih;
int ialpha, icompress, iquality, ilossy;
} /* eet_data_image_decode_to_surface_cipher */
EAPI int
-eet_data_image_decode_to_surface(const void * data,
+eet_data_image_decode_to_surface(const void *data,
int size,
unsigned int src_x,
unsigned int src_y,
unsigned int w,
unsigned int h,
unsigned int row_stride,
- int * alpha,
- int * comp,
- int * quality,
- int * lossy)
+ int *alpha,
+ int *comp,
+ int *quality,
+ int *lossy)
{
return eet_data_image_decode_to_surface_cipher(data, NULL, size,
src_x, src_y, d,
struct _Eet_File
{
- char * path;
- FILE * readfp;
- Eet_File_Header * header;
- Eet_Dictionary * ed;
- Eet_Key * key;
+ char *path;
+ FILE *readfp;
+ Eet_File_Header *header;
+ Eet_Dictionary *ed;
+ Eet_Key *key;
const unsigned char *data;
- const void * x509_der;
- const void * signature;
- void * sha1;
+ const void *x509_der;
+ const void *signature;
+ void *sha1;
Eet_File_Mode mode;
struct _Eet_File_Node
{
- char * name;
- void * data;
+ char *name;
+ void *data;
Eet_File_Node *next; /* FIXME: make buckets linked lists */
int offset;
/* prototypes of internal calls */
static Eet_File * eet_cache_find(const char *path,
- Eet_File ** cache,
+ Eet_File **cache,
int cache_num);
-static void eet_cache_add(Eet_File * ef,
+static void eet_cache_add(Eet_File *ef,
Eet_File ***cache,
- int * cache_num,
- int * cache_alloc);
-static void eet_cache_del(Eet_File * ef,
+ int *cache_num,
+ int *cache_alloc);
+static void eet_cache_del(Eet_File *ef,
Eet_File ***cache,
- int * cache_num,
- int * cache_alloc);
+ int *cache_num,
+ int *cache_alloc);
static int eet_string_match(const char *s1, const char *s2);
#if 0 /* Unused */
static Eet_Error eet_flush(Eet_File *ef);
#endif /* if 0 */
static Eet_Error eet_flush2(Eet_File *ef);
static Eet_File_Node * find_node_by_name(Eet_File *ef, const char *name);
-static int read_data_from_disk(Eet_File * ef,
+static int read_data_from_disk(Eet_File *ef,
Eet_File_Node *efn,
- void * buf,
+ void *buf,
int len);
static Eet_Error eet_internal_close(Eet_File *ef, Eina_Bool locked);
/* find an eet file in the currently in use cache */
static Eet_File *
eet_cache_find(const char *path,
- Eet_File ** cache,
+ Eet_File **cache,
int cache_num)
{
int i;
/* add to end of cache */
/* this should only be called when the cache lock is already held */
static void
-eet_cache_add(Eet_File * ef,
+eet_cache_add(Eet_File *ef,
Eet_File ***cache,
- int * cache_num,
- int * cache_alloc)
+ int *cache_num,
+ int *cache_alloc)
{
Eet_File **new_cache;
int new_cache_num;
/* delete from cache */
/* this should only be called when the cache lock is already held */
static void
-eet_cache_del(Eet_File * ef,
+eet_cache_del(Eet_File *ef,
Eet_File ***cache,
- int * cache_num,
- int * cache_alloc)
+ int *cache_num,
+ int *cache_alloc)
{
Eet_File **new_cache;
int new_cache_num, new_cache_alloc;
} /* eet_memopen_read */
EAPI Eet_File *
-eet_open(const char * file,
+eet_open(const char *file,
Eet_File_Mode mode)
{
FILE *fp;
EAPI const void *
eet_identity_x509(Eet_File *ef,
- int * der_length)
+ int *der_length)
{
if (!ef->x509_der)
return NULL;
EAPI const void *
eet_identity_signature(Eet_File *ef,
- int * signature_length)
+ int *signature_length)
{
if (!ef->signature)
return NULL;
EAPI const void *
eet_identity_sha1(Eet_File *ef,
- int * sha1_length)
+ int *sha1_length)
{
if (!ef->sha1)
ef->sha1 = eet_identity_compute_sha1(ef->data,
EAPI Eet_Error
eet_identity_set(Eet_File *ef,
- Eet_Key * key)
+ Eet_Key *key)
{
Eet_Key *tmp = ef->key;
} /* eet_close */
EAPI void *
-eet_read_cipher(Eet_File * ef,
+eet_read_cipher(Eet_File *ef,
const char *name,
- int * size_ret,
+ int *size_ret,
const char *cipher_key)
{
Eet_File_Node *efn;
} /* eet_read_cipher */
EAPI void *
-eet_read(Eet_File * ef,
+eet_read(Eet_File *ef,
const char *name,
- int * size_ret)
+ int *size_ret)
{
return eet_read_cipher(ef, name, size_ret, NULL);
} /* eet_read */
EAPI const void *
-eet_read_direct(Eet_File * ef,
+eet_read_direct(Eet_File *ef,
const char *name,
- int * size_ret)
+ int *size_ret)
{
Eet_File_Node *efn;
const char *data = NULL;
} /* eet_read_direct */
EAPI Eina_Bool
-eet_alias(Eet_File * ef,
+eet_alias(Eet_File *ef,
const char *name,
const char *destination,
int comp)
} /* eet_alias */
EAPI int
-eet_write_cipher(Eet_File * ef,
+eet_write_cipher(Eet_File *ef,
const char *name,
const void *data,
int size,
} /* eet_write_cipher */
EAPI int
-eet_write(Eet_File * ef,
+eet_write(Eet_File *ef,
const char *name,
const void *data,
int size,
} /* eet_write */
EAPI int
-eet_delete(Eet_File * ef,
+eet_delete(Eet_File *ef,
const char *name)
{
Eet_File_Node *efn;
} /* eet_dictionary_get */
EAPI char **
-eet_list(Eet_File * ef,
+eet_list(Eet_File *ef,
const char *glob,
- int * count_ret)
+ int *count_ret)
{
Eet_File_Node *efn;
char **list_ret = NULL;
} /* eet_num_entries */
static Eet_File_Node *
-find_node_by_name(Eet_File * ef,
+find_node_by_name(Eet_File *ef,
const char *name)
{
Eet_File_Node *efn;
} /* find_node_by_name */
static int
-read_data_from_disk(Eet_File * ef,
+read_data_from_disk(Eet_File *ef,
Eet_File_Node *efn,
- void * buf,
+ void *buf,
int len)
{
if (efn->offset < 0)
Eet_Node *
eet_node_list_new(const char *name,
- Eina_List * nodes)
+ Eina_List *nodes)
{
Eet_Node *n;
Eet_Node *
eet_node_array_new(const char *name,
int count,
- Eina_List * nodes)
+ Eina_List *nodes)
{
Eet_Node *n;
Eet_Node *
eet_node_var_array_new(const char *name,
- Eina_List * nodes)
+ Eina_List *nodes)
{
Eet_Node *n;
Eet_Node *
eet_node_hash_new(const char *name,
const char *key,
- Eet_Node * node)
+ Eet_Node *node)
{
Eina_List *nodes;
Eet_Node *n;
Eet_Node *
eet_node_struct_new(const char *name,
- Eina_List * nodes)
+ Eina_List *nodes)
{
Eet_Node *n;
Eet_Node *
eet_node_struct_child_new(const char *parent,
- Eet_Node * child)
+ Eet_Node *child)
{
Eet_Node *n;
} /* eet_node_struct_child_new */
void
-eet_node_list_append(Eet_Node * parent,
+eet_node_list_append(Eet_Node *parent,
const char *name,
- Eet_Node * child)
+ Eet_Node *child)
{
const char *tmp;
Eet_Node *nn;
} /* eet_node_list_append */
void
-eet_node_struct_append(Eet_Node * parent,
+eet_node_struct_append(Eet_Node *parent,
const char *name,
- Eet_Node * child)
+ Eet_Node *child)
{
const char *tmp;
Eet_Node *prev;
} /* eet_node_struct_append */
void
-eet_node_hash_add(Eet_Node * parent,
+eet_node_hash_add(Eet_Node *parent,
const char *name,
const char *key,
- Eet_Node * child)
+ Eet_Node *child)
{
Eet_Node *nn;
} /* eet_node_dump */
void *
-eet_node_walk(void * parent,
- const char * name,
- Eet_Node * root,
+eet_node_walk(void *parent,
+ const char *name,
+ Eet_Node *root,
Eet_Node_Walk *cb,
- void * user_data)
+ void *user_data)
{
Eet_Node *it;
void *me = NULL;