]> gitweb @ CieloNegro.org - bindings-apr-util.git/blob - Bindings/APR/XLate.hsc
Bindings.APR.MD4 and XLate
[bindings-apr-util.git] / Bindings / APR / XLate.hsc
1 #include <bindings.dsl.h>
2 #include <apr_xlate.h>
3
4 module Bindings.APR.XLate where
5 #strict_import
6 import Bindings.APR
7 import Bindings.APR.ErrNo
8 import Bindings.APR.Pools
9
10 #opaque_t apr_xlate_t
11
12 #ccall apr_xlate_open, Ptr (Ptr <apr_xlate_t>) -> Ptr CChar -> Ptr CChar -> Ptr <apr_pool_t> -> IO <apr_status_t>
13
14 #pointer APR_DEFAULT_CHARSET
15 #pointer APR_LOCALE_CHARSET
16
17 #ccall apr_xlate_sb_get     , Ptr <apr_xlate_t> -> Ptr CInt -> IO <apr_status_t>
18 #ccall apr_xlate_conv_buffer, Ptr <apr_xlate_t> -> Ptr CChar -> Ptr <apr_size_t> -> Ptr CChar -> Ptr <apr_size_t> -> IO <apr_status_t>
19
20 #if APR_NOT_DONE_YET
21 #  ccall apr_xlate_conv_char, Ptr <apr_xlate_t> -> CChar -> CChar -> IO <apr_status_t>
22 #endif
23
24 #ccall apr_xlate_conv_byte  , Ptr <apr_xlate_t> -> CUChar -> IO <apr_int32_t>
25 #ccall apr_xlate_close      , Ptr <apr_xlate_t> -> IO <apr_status_t>