X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=bindings-apr.git;a=blobdiff_plain;f=Bindings%2FAPR%2FAllocator.hsc;h=0ee0f9713fc82232f3b9b5ce80bd002c33567cfd;hp=454ff1612f12eb22035d282074fcdda4b776af50;hb=106350525e3f5b71a8b19c02e5aa97abfc6d4203;hpb=4ea65ba7cb9f3c0114643e5e1bef8d957218960e diff --git a/Bindings/APR/Allocator.hsc b/Bindings/APR/Allocator.hsc index 454ff16..0ee0f97 100644 --- a/Bindings/APR/Allocator.hsc +++ b/Bindings/APR/Allocator.hsc @@ -4,18 +4,9 @@ module Bindings.APR.Allocator where #strict_import import Bindings.APR +import Bindings.APR.Allocator.Types import Bindings.APR.Errno - -#opaque_t apr_allocator_t - -#starttype struct apr_memnode_t -#field next , Ptr -#field ref , Ptr (Ptr ) -#field index , -#field free_index , -#field first_avail, Ptr CChar -#field endp , Ptr CChar -#stoptype +import Bindings.APR.Pools #num APR_MEMNODE_T_SIZE #num APR_ALLOCATOR_MAX_FREE_UNLIMITED @@ -25,4 +16,9 @@ import Bindings.APR.Errno #ccall apr_allocator_alloc , Ptr -> -> IO (Ptr ) #ccall apr_allocator_free , Ptr -> Ptr -> IO () --- FIXME: incomplete +#ccall apr_allocator_owner_set, Ptr -> Ptr -> IO () +#ccall apr_allocator_owner_get, Ptr -> IO (Ptr ) + +#ccall apr_allocator_max_free_set, Ptr -> -> IO () + +-- FIXME: incomplete \ No newline at end of file