ev_set_allocator

Aleksandar Lazic al-libev at none.at
Sun Oct 18 01:31:21 CEST 2009


Dear Marc,

I have read in
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#GLOBAL_FUNCTIONS 

about ev_set_allocator

.
.

ev_set_allocator (void *(*cb)(void *ptr, long size)) [NOT REENTRANT]

It is used to allocate and free memory
###

I have try to use http://talloc.samba.org/ like

ev_set_allocator(talloc_size)

Sig: void *talloc_size(const void *context, size_t size);

I need to call talloc_free but I can't find a function like

ev_set_deallocator(talloc_free)

Sig: int talloc_free(void *ptr);

http://samba.org/ftp/unpacked/talloc/talloc_guide.txt

Mybe I have overseen or missunderstand something.

Thanks for help.

BR

Aleks



More information about the libev mailing list