1 #include <bindings.dsl.h>
2 #include <apr_general.h>
4 module Bindings.APR.General where
7 import Bindings.APR.ErrNo
8 import Bindings.APR.Pools
18 #integral_t apr_signum_t
20 -- It's impossible to wrap around APR_OFFSET() and APR_OFFSET_OF().
22 #cinline strcasecmp , Ptr CChar -> Ptr CChar -> IO CInt
23 #cinline strncasecmp, Ptr CChar -> Ptr CChar -> CSize -> IO CInt
25 -- What's the correct type for these macros?
26 #cinline APR_ALIGN, <apr_uint64_t> -> <apr_uint64_t> -> IO <apr_uint64_t>
27 #cinline APR_ALIGN_DEFAULT, <apr_uint64_t> -> IO <apr_uint64_t>
29 #cinline memmove, Ptr () -> Ptr () -> CSize -> IO (Ptr ())
30 #cinline memchr , Ptr () -> CInt -> CSize -> IO (Ptr ())
32 #ccall apr_initialize , IO <apr_status_t>
33 #ccall apr_app_initialize, Ptr CInt -> Ptr (Ptr (Ptr CChar)) -> Ptr (Ptr (Ptr CChar)) -> IO <apr_status_t>
34 #ccall apr_terminate , IO ()
35 #ccall apr_terminate2 , IO ()
38 #ccall apr_generate_random_bytes, Ptr CUChar -> <apr_size_t> -> IO <apr_status_t>