]> gitweb @ CieloNegro.org - bindings-apr.git/blob - Bindings/APR/Version.hsc
C string macros should be treated as global arrays.
[bindings-apr.git] / Bindings / APR / Version.hsc
1 #include <bindings.dsl.h>
2 #include <apr_version.h>
3
4 module Bindings.APR.Version where
5 #strict_import
6
7 #num APR_MAJOR_VERSION
8 #num APR_MINOR_VERSION
9 #num APR_PATCH_VERSION
10
11 #cinline APR_VERSION_AT_LEAST, CInt -> CInt -> CInt -> IO CInt
12
13 #globalarray APR_VERSION_STRING, CChar
14
15 #if !defined(APR_VERSION_ONLY)
16
17 #  starttype apr_version_t
18 #    field major , CInt
19 #    field minor , CInt
20 #    field patch , CInt
21 #    field is_dev, CInt
22 #  stoptype
23
24 #  ccall apr_version, Ptr <apr_version_t> -> IO ()
25 #  ccall apr_version_string, IO (Ptr CChar)
26
27 #endif