EAPI Eina_Bool eio_file_cancel(Eio_File *ls);
+EAPI Eina_Bool eio_file_associate_add(Eio_File *ls,
+ const char *key,
+ void *data, Eina_Free_Cb free_cb);
+EAPI Eina_Bool eio_file_associate_direct_add(Eio_File *ls,
+ const char *key,
+ void *data, Eina_Free_Cb free_cb);
+EAPI void *eio_file_associate_find(Eio_File *ls, const char *key);
+
/**
* @}
*/
if (!tmp) return tmp;
tmp->data = data;
- tmp->free_cb = free_cb ? free_cb : free;
+ tmp->free_cb = free_cb;
return tmp;
}
if (!data) return ;
tmp = data;
- tmp->free_cb(tmp->data);
+ if (tmp->free_cb)
+ tmp->free_cb(tmp->data);
_eio_pool_free(&associate_pool, tmp);
}