ev_set_allocator

Marc Lehmann schmorp at schmorp.de
Sun Oct 18 07:28:30 CEST 2009


On Sun, Oct 18, 2009 at 01:31:21AM +0200, Aleksandar Lazic <al-libev at none.at> wrote:
> 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);

That's not the corretc function - talloc expects a context pointer, which
libev knows nothing about.

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

The allocator works (as the documentation points out) like realloc, ad in
factm the talloc_realloc function is what you need (with an appropriate
wrapper).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list