#include #include module Bindings.APR.Pools where #strict_import import Bindings.APR import Bindings.APR.Allocator.Types import Bindings.APR.ErrNo #opaque_t apr_pool_t #num APR_POOL_DEBUG #callback apr_abortfunc_t, CInt -> IO CInt #ccall apr_pool_initialize, IO #ccall apr_pool_terminate , IO () #if APR_POOL_DEBUG # cinline apr_pool_create_ex, Ptr (Ptr ) -> Ptr -> -> Ptr -> IO # cinline apr_pool_create_core_ex, Ptr (Ptr ) -> -> Ptr -> IO # cinline apr_pool_create_unmanaged_ex, Ptr (Ptr ) -> -> Ptr -> IO # ccall apr_pool_create_ex_debug, Ptr (Ptr ) -> Ptr -> -> Ptr -> Ptr CChar -> IO # ccall apr_pool_create_core_ex_debug, Ptr (Ptr ) -> -> Ptr -> Ptr CChar -> IO # ccall apr_pool_create_unmanaged_ex_debug, Ptr (Ptr ) -> -> Ptr -> Ptr CChar -> IO #else # ccall apr_pool_create_ex, Ptr (Ptr ) -> Ptr -> -> Ptr -> IO # ccall apr_pool_create_core_ex, Ptr (Ptr ) -> -> Ptr -> IO # ccall apr_pool_create_unmanaged_ex, Ptr (Ptr ) -> -> Ptr -> IO #endif #cinline apr_pool_create, Ptr (Ptr ) -> Ptr -> IO #cinline apr_pool_create_core, Ptr (Ptr ) -> IO #cinline apr_pool_create_unmanaged, Ptr (Ptr ) -> IO #ccall apr_pool_allocator_get, Ptr -> IO (Ptr ) #if APR_POOL_DEBUG # cinline apr_pool_clear, Ptr -> IO () # ccall apr_pool_clear_debug, Ptr -> Ptr CChar -> IO () #else # ccall apr_pool_clear, Ptr -> IO () #endif #if APR_POOL_DEBUG # cinline apr_pool_destroy, Ptr -> IO () # ccall apr_pool_destroy_debug, Ptr -> Ptr CChar -> IO () #else # ccall apr_pool_destroy, Ptr -> IO () #endif #if APR_POOL_DEBUG # cinline apr_palloc, Ptr -> -> IO (Ptr ()) # ccall apr_palloc_debug, Ptr -> -> Ptr CChar -> IO (Ptr ()) #else # ccall apr_palloc, Ptr -> -> IO (Ptr ()) #endif #cinline apr_pcalloc, Ptr -> -> IO (Ptr ()) #if APR_POOL_DEBUG # ccall apr_pcalloc_debug, Ptr -> -> Ptr CChar -> IO (Ptr ()) #endif #ccall apr_pool_abort_set , -> Ptr -> IO () #ccall apr_pool_abort_get , Ptr -> IO #ccall apr_pool_parent_get , Ptr -> IO (Ptr ) #ccall apr_pool_is_ancestor, Ptr -> Ptr -> IO CInt #ccall apr_pool_tag , Ptr -> Ptr CChar -> IO () #ccall apr_pool_userdata_set , Ptr () -> Ptr CChar -> FunPtr (Ptr () -> IO ) -> Ptr -> IO #ccall apr_pool_userdata_setn, Ptr () -> Ptr CChar -> FunPtr (Ptr () -> IO ) -> Ptr -> IO #ccall apr_pool_userdata_get , Ptr (Ptr ()) -> Ptr CChar -> Ptr -> IO #ccall apr_pool_cleanup_register , Ptr -> Ptr () -> FunPtr (Ptr () -> IO ) -> FunPtr (Ptr () -> IO ) -> IO () #ccall apr_pool_pre_cleanup_register, Ptr -> Ptr () -> FunPtr (Ptr () -> IO ) -> IO () #ccall apr_pool_cleanup_kill , Ptr -> Ptr () -> FunPtr (Ptr () -> IO ) -> IO () #ccall apr_pool_child_cleanup_set , Ptr -> Ptr () -> FunPtr (Ptr () -> IO ) -> FunPtr (Ptr () -> IO ) -> IO () #ccall apr_pool_cleanup_run , Ptr -> Ptr () -> FunPtr (Ptr () -> IO ) -> IO #ccall apr_pool_cleanup_null , Ptr () -> IO #ccall apr_pool_cleanup_for_exec , Ptr () -> IO () #if APR_POOL_DEBUG # ccall apr_pool_join , Ptr -> Ptr -> IO () # ccall apr_pool_find , Ptr () -> IO (Ptr ) # ccall apr_pool_num_bytes, Ptr -> CInt -> IO # ccall apr_pool_lock , Ptr -> CInt -> IO () #else # cinline apr_pool_join, Ptr -> Ptr -> IO () # cinline apr_pool_lock, Ptr -> CInt -> IO () #endif