]> gitweb @ CieloNegro.org - bindings-apr.git/blobdiff - Bindings/APR/Version.hsc
Bindings.APR.Version
[bindings-apr.git] / Bindings / APR / Version.hsc
diff --git a/Bindings/APR/Version.hsc b/Bindings/APR/Version.hsc
new file mode 100644 (file)
index 0000000..6f00153
--- /dev/null
@@ -0,0 +1,28 @@
+#include <bindings.dsl.h>
+#include <apr_version.h>
+
+module Bindings.APR.Version where
+#strict_import
+
+#num APR_MAJOR_VERSION
+#num APR_MINOR_VERSION
+#num APR_PATCH_VERSION
+
+#cinline APR_VERSION_AT_LEAST, CInt -> CInt -> CInt -> IO CInt
+
+#pointer APR_IS_DEV_STRING
+#pointer APR_VERSION_STRING
+
+#if !defined(APR_VERSION_ONLY)
+
+#  starttype apr_version_t
+#    field major , CInt
+#    field minor , CInt
+#    field patch , CInt
+#    field is_dev, CInt
+#  stoptype
+
+#  ccall apr_version, Ptr <apr_version_t> -> IO ()
+#  ccall apr_version_string, IO (Ptr CChar)
+
+#endif
\ No newline at end of file