forked from enlightenment/efl
parent
80a1aea7b0
commit
0279df6fc1
|
@ -522,7 +522,7 @@ typedef struct _Eet_Dictionary Eet_Dictionary;
|
||||||
* You can also open the file for read/write. If you then write a key that
|
* You can also open the file for read/write. If you then write a key that
|
||||||
* does not exist it will be created, if the key exists it will be replaced
|
* does not exist it will be created, if the key exists it will be replaced
|
||||||
* by the new data.
|
* by the new data.
|
||||||
*
|
*
|
||||||
* If the same file is opened multiple times, then the same file handle will
|
* If the same file is opened multiple times, then the same file handle will
|
||||||
* be returned as eet maintains an internal list of all currently open
|
* be returned as eet maintains an internal list of all currently open
|
||||||
* files. Note that it considers files opened for read only and those opened
|
* files. Note that it considers files opened for read only and those opened
|
||||||
|
@ -1389,7 +1389,7 @@ eet_data_image_read_cipher(Eet_File *ef,
|
||||||
int *compress,
|
int *compress,
|
||||||
int *quality,
|
int *quality,
|
||||||
int *lossy);
|
int *lossy);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read image data from the named key in the eet file using a cipher.
|
* Read image data from the named key in the eet file using a cipher.
|
||||||
* @param ef A valid eet file handle opened for reading.
|
* @param ef A valid eet file handle opened for reading.
|
||||||
|
@ -2343,7 +2343,7 @@ typedef struct _Eet_Data_Descriptor Eet_Data_Descriptor;
|
||||||
typedef struct _Eet_Data_Descriptor_Class Eet_Data_Descriptor_Class;
|
typedef struct _Eet_Data_Descriptor_Class Eet_Data_Descriptor_Class;
|
||||||
|
|
||||||
typedef int (*Eet_Descriptor_Hash_Foreach_Callback_Callback)(void *h, const char *k, void *dt, void *fdt);
|
typedef int (*Eet_Descriptor_Hash_Foreach_Callback_Callback)(void *h, const char *k, void *dt, void *fdt);
|
||||||
|
|
||||||
typedef void *(*Eet_Descriptor_Mem_Alloc_Callback)(size_t size);
|
typedef void *(*Eet_Descriptor_Mem_Alloc_Callback)(size_t size);
|
||||||
typedef void (*Eet_Descriptor_Mem_Free_Callback)(void *mem);
|
typedef void (*Eet_Descriptor_Mem_Free_Callback)(void *mem);
|
||||||
typedef char *(*Eet_Descriptor_Str_Alloc_Callback)(const char *str);
|
typedef char *(*Eet_Descriptor_Str_Alloc_Callback)(const char *str);
|
||||||
|
@ -2405,7 +2405,7 @@ struct _Eet_Data_Descriptor_Class
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new empty data structure descriptor.
|
* Create a new empty data structure descriptor.
|
||||||
* @param name The string name of this data structure (most be a
|
* @param name The string name of this data structure (most be a
|
||||||
|
@ -3218,7 +3218,7 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
|
||||||
(char *)(& (___ett)), \
|
(char *)(& (___ett)), \
|
||||||
NULL, unified_type); \
|
NULL, unified_type); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a automatically selectable type to a data descriptor
|
* Add a automatically selectable type to a data descriptor
|
||||||
* @param edd The data descriptor to add the type to.
|
* @param edd The data descriptor to add the type to.
|
||||||
|
@ -3250,7 +3250,7 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
|
||||||
(char *)(& (___ett)), \
|
(char *)(& (___ett)), \
|
||||||
NULL, unified_type); \
|
NULL, unified_type); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a mapping to a data descriptor that will be used by union, variant or inherited type
|
* Add a mapping to a data descriptor that will be used by union, variant or inherited type
|
||||||
* @param unified_type The data descriptor to add the mapping to.
|
* @param unified_type The data descriptor to add the mapping to.
|
||||||
|
@ -3906,7 +3906,7 @@ typedef void *(*Eet_Node_Walk_List_Callback)(const char *name, void *user_data);
|
||||||
typedef void (*Eet_Node_Walk_Append_Callback)(void *list, void *child, void *user_data);
|
typedef void (*Eet_Node_Walk_Append_Callback)(void *list, void *child, void *user_data);
|
||||||
typedef void *(*Eet_Node_Walk_Hash_Callback)(void *parent, const char *name, const char *key, void *value, void *user_data);
|
typedef void *(*Eet_Node_Walk_Hash_Callback)(void *parent, const char *name, const char *key, void *value, void *user_data);
|
||||||
typedef void *(*Eet_Node_Walk_Simple_Callback)(int type, Eet_Node_Data *data, void *user_data);
|
typedef void *(*Eet_Node_Walk_Simple_Callback)(int type, Eet_Node_Data *data, void *user_data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @struct _Eet_Node_Walk
|
* @struct _Eet_Node_Walk
|
||||||
* Describes how to walk trees of #Eet_Node.
|
* Describes how to walk trees of #Eet_Node.
|
||||||
|
|
|
@ -150,7 +150,7 @@ eet_identity_open(const char *certificate_file,
|
||||||
|
|
||||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||||
|
|
||||||
if ((data =
|
if ((data =
|
||||||
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
@ -184,7 +184,7 @@ eet_identity_open(const char *certificate_file,
|
||||||
|
|
||||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||||
|
|
||||||
if ((data =
|
if ((data =
|
||||||
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
@ -533,7 +533,7 @@ eet_identity_sign(FILE *fp,
|
||||||
|
|
||||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||||
|
|
||||||
/* Map the file in memory. */
|
/* Map the file in memory. */
|
||||||
data = mmap(NULL, st_buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
data = mmap(NULL, st_buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||||
if (data == MAP_FAILED)
|
if (data == MAP_FAILED)
|
||||||
|
|
|
@ -94,7 +94,7 @@ static void
|
||||||
_eet_jpeg_membuf_src_term(j_decompress_ptr cinfo)
|
_eet_jpeg_membuf_src_term(j_decompress_ptr cinfo)
|
||||||
{
|
{
|
||||||
struct jpeg_membuf_src *src = ((struct jpeg_membuf_src *)cinfo->src)->self;
|
struct jpeg_membuf_src *src = ((struct jpeg_membuf_src *)cinfo->src)->self;
|
||||||
|
|
||||||
free(src);
|
free(src);
|
||||||
cinfo->src = NULL;
|
cinfo->src = NULL;
|
||||||
} /* _eet_jpeg_membuf_src_term */
|
} /* _eet_jpeg_membuf_src_term */
|
||||||
|
@ -111,7 +111,7 @@ eet_jpeg_membuf_src(j_decompress_ptr cinfo,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
src->self = src;
|
src->self = src;
|
||||||
|
|
||||||
cinfo->src = &src->pub;
|
cinfo->src = &src->pub;
|
||||||
src->buf = buf;
|
src->buf = buf;
|
||||||
src->len = len;
|
src->len = len;
|
||||||
|
@ -1571,7 +1571,7 @@ _eet_data_image_decode_inside(const void *data,
|
||||||
Bytef *dtmp;
|
Bytef *dtmp;
|
||||||
uLongf dlen = src_w * src_h * 4;
|
uLongf dlen = src_w * src_h * 4;
|
||||||
|
|
||||||
/* FIXME: This could create a huge alloc. So compressed
|
/* FIXME: This could create a huge alloc. So compressed
|
||||||
data and tile could not always work. */
|
data and tile could not always work. */
|
||||||
dtmp = malloc(dlen);
|
dtmp = malloc(dlen);
|
||||||
if (!dtmp)
|
if (!dtmp)
|
||||||
|
|
|
@ -929,7 +929,7 @@ eet_internal_read2(Eet_File *ef)
|
||||||
efn = malloc(sizeof(Eet_File_Node));
|
efn = malloc(sizeof(Eet_File_Node));
|
||||||
if (eet_test_close(!efn, ef))
|
if (eet_test_close(!efn, ef))
|
||||||
{
|
{
|
||||||
if (efn) free(efn); /* yes i know - we only get here if
|
if (efn) free(efn); /* yes i know - we only get here if
|
||||||
* efn is null/0 -> trying to shut up
|
* efn is null/0 -> trying to shut up
|
||||||
* warning tools like cppcheck */
|
* warning tools like cppcheck */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -1193,7 +1193,7 @@ eet_internal_read1(Eet_File *ef)
|
||||||
efn = malloc (sizeof(Eet_File_Node));
|
efn = malloc (sizeof(Eet_File_Node));
|
||||||
if (eet_test_close(!efn, ef))
|
if (eet_test_close(!efn, ef))
|
||||||
{
|
{
|
||||||
if (efn) free(efn); /* yes i know - we only get here if
|
if (efn) free(efn); /* yes i know - we only get here if
|
||||||
* efn is null/0 -> trying to shut up
|
* efn is null/0 -> trying to shut up
|
||||||
* warning tools like cppcheck */
|
* warning tools like cppcheck */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue