]> gitweb @ CieloNegro.org - bindings-apr-util.git/blob - Bindings/APR/MD4.hsc
Bindings.APR.MD4 and XLate
[bindings-apr-util.git] / Bindings / APR / MD4.hsc
1 #include <bindings.dsl.h>
2 #include <apr_md4.h>
3
4 module Bindings.APR.MD4 where
5 #strict_import
6 import Bindings.APR
7 import Bindings.APR.ErrNo
8 import Bindings.APR.XLate
9
10 #num APR_MD4_DIGESTSIZE
11
12 #starttype struct apr_md4_ctx_t
13 #  array_field state , <apr_uint32_t>
14 #  array_field count , <apr_uint32_t>
15 #  array_field buffer, CUChar
16 #  if APR_HAS_XLATE
17 #    field xlate, Ptr <apr_xlate_t>
18 #  endif
19 #stoptype
20
21 #ccall   apr_md4_init     , Ptr <apr_md4_ctx_t> -> IO <apr_status_t>
22 #cinline apr_md4_set_xlate, Ptr <apr_md4_ctx_t> -> Ptr <apr_xlate_t> -> IO <apr_status_t>
23 #ccall   apr_md4_update   , Ptr <apr_md4_ctx_t> -> Ptr CUChar -> <apr_size_t> -> IO <apr_status_t>
24 #ccall   apr_md4_final    , Ptr CUChar -> Ptr <apr_md4_ctx_t> -> IO <apr_status_t>
25 #ccall   apr_md4          , Ptr CUChar -> Ptr CUChar -> <apr_size_t> -> IO <apr_status_t>