forked from enlightenment/efl
eio: eio doesn't modify data at all, so make it const.
SVN revision: 60635
This commit is contained in:
parent
a5fe2772c7
commit
28c4f6f8f5
|
@ -235,10 +235,10 @@ EAPI Eina_Bool eio_file_cancel(Eio_File *ls);
|
||||||
|
|
||||||
EAPI Eina_Bool eio_file_associate_add(Eio_File *ls,
|
EAPI Eina_Bool eio_file_associate_add(Eio_File *ls,
|
||||||
const char *key,
|
const char *key,
|
||||||
void *data, Eina_Free_Cb free_cb);
|
const void *data, Eina_Free_Cb free_cb);
|
||||||
EAPI Eina_Bool eio_file_associate_direct_add(Eio_File *ls,
|
EAPI Eina_Bool eio_file_associate_direct_add(Eio_File *ls,
|
||||||
const char *key,
|
const char *key,
|
||||||
void *data, Eina_Free_Cb free_cb);
|
const void *data, Eina_Free_Cb free_cb);
|
||||||
EAPI void *eio_file_associate_find(Eio_File *ls, const char *key);
|
EAPI void *eio_file_associate_find(Eio_File *ls, const char *key);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -915,7 +915,7 @@ eio_file_container_get(Eio_File *ls)
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
eio_file_associate_add(Eio_File *ls,
|
eio_file_associate_add(Eio_File *ls,
|
||||||
const char *key,
|
const char *key,
|
||||||
void *data, Eina_Free_Cb free_cb)
|
const void *data, Eina_Free_Cb free_cb)
|
||||||
{
|
{
|
||||||
/* FIXME: Check if we are in the right worker thred */
|
/* FIXME: Check if we are in the right worker thred */
|
||||||
if (!ls->worker.associated)
|
if (!ls->worker.associated)
|
||||||
|
@ -941,7 +941,7 @@ eio_file_associate_add(Eio_File *ls,
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
eio_file_associate_direct_add(Eio_File *ls,
|
eio_file_associate_direct_add(Eio_File *ls,
|
||||||
const char *key,
|
const char *key,
|
||||||
void *data, Eina_Free_Cb free_cb)
|
const void *data, Eina_Free_Cb free_cb)
|
||||||
{
|
{
|
||||||
/* FIXME: Check if we are in the right worker thred */
|
/* FIXME: Check if we are in the right worker thred */
|
||||||
if (!ls->worker.associated)
|
if (!ls->worker.associated)
|
||||||
|
|
|
@ -169,14 +169,14 @@ eio_char_free(Eio_File_Char *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
Eio_File_Associate *
|
Eio_File_Associate *
|
||||||
eio_associate_malloc(void *data, Eina_Free_Cb free_cb)
|
eio_associate_malloc(const void *data, Eina_Free_Cb free_cb)
|
||||||
{
|
{
|
||||||
Eio_File_Associate *tmp;
|
Eio_File_Associate *tmp;
|
||||||
|
|
||||||
tmp = _eio_pool_malloc(&associate_pool, sizeof (Eio_File_Associate));
|
tmp = _eio_pool_malloc(&associate_pool, sizeof (Eio_File_Associate));
|
||||||
if (!tmp) return tmp;
|
if (!tmp) return tmp;
|
||||||
|
|
||||||
tmp->data = data;
|
tmp->data = (void*) data;
|
||||||
tmp->free_cb = free_cb;
|
tmp->free_cb = free_cb;
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
|
@ -234,7 +234,7 @@ void eio_direct_info_free(Eio_File_Direct_Info *data);
|
||||||
Eio_File_Char *eio_char_malloc(void);
|
Eio_File_Char *eio_char_malloc(void);
|
||||||
void eio_char_free(Eio_File_Char *data);
|
void eio_char_free(Eio_File_Char *data);
|
||||||
|
|
||||||
Eio_File_Associate *eio_associate_malloc(void *data, Eina_Free_Cb free_cb);
|
Eio_File_Associate *eio_associate_malloc(const void *data, Eina_Free_Cb free_cb);
|
||||||
void eio_associate_free(void *data);
|
void eio_associate_free(void *data);
|
||||||
|
|
||||||
Eio_Progress *eio_progress_malloc(void);
|
Eio_Progress *eio_progress_malloc(void);
|
||||||
|
|
Loading…
Reference in New Issue