]> gitweb @ CieloNegro.org - bindings-apr.git/blob - Bindings/APR/General.hsc
more bindings
[bindings-apr.git] / Bindings / APR / General.hsc
1 #include <bindings.dsl.h>
2 #include <apr_general.h>
3
4 module Bindings.APR.General where
5 #strict_import
6 import Bindings.APR
7 import Bindings.APR.ErrNo
8 import Bindings.APR.Pools
9
10 #num FALSE
11 #num TRUE
12
13 #num APR_ASCII_BLANK
14 #num APR_ASCII_CR
15 #num APR_ASCII_LF
16 #num APR_ASCII_TAB
17
18 #integral_t apr_signum_t
19
20 -- It's impossible to wrap around APR_OFFSET() and APR_OFFSET_OF().
21
22 #cinline strcasecmp , Ptr CChar -> Ptr CChar -> IO CInt
23 #cinline strncasecmp, Ptr CChar -> Ptr CChar -> CSize -> IO CInt
24
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>
28
29 #cinline memmove, Ptr () -> Ptr () -> CSize -> IO (Ptr ())
30 #cinline memchr , Ptr () -> CInt -> CSize -> IO (Ptr ())
31
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 ()
36
37 #if APR_HAS_RANDOM
38 #ccall apr_generate_random_bytes, Ptr CUChar -> <apr_size_t> -> IO <apr_status_t>
39 #endif