#include #include module Bindings.APR.Allocator where #strict_import import Bindings.APR 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 #num APR_MEMNODE_T_SIZE #num APR_ALLOCATOR_MAX_FREE_UNLIMITED #ccall apr_allocator_create , Ptr (Ptr ) -> IO #ccall apr_allocator_destroy, Ptr -> IO () #ccall apr_allocator_alloc , Ptr -> -> IO (Ptr ) #ccall apr_allocator_free , Ptr -> Ptr -> IO () -- FIXME: incomplete