]> gitweb @ CieloNegro.org - bindings-apr-util.git/commitdiff
Bindings.APR.Base64
authorPHO <pho@cielonegro.org>
Tue, 31 Aug 2010 12:50:49 +0000 (21:50 +0900)
committerPHO <pho@cielonegro.org>
Tue, 31 Aug 2010 12:50:49 +0000 (21:50 +0900)
Bindings/APR/Base64.hsc [new file with mode: 0644]
Bindings/APU.hsc [new file with mode: 0644]
bindings-apr-util.cabal

diff --git a/Bindings/APR/Base64.hsc b/Bindings/APR/Base64.hsc
new file mode 100644 (file)
index 0000000..2ea30a0
--- /dev/null
@@ -0,0 +1,13 @@
+#include <bindings.dsl.h>
+#include <apr_base64.h>
+
+module Bindings.APR.Base64 where
+#strict_import
+
+#ccall apr_base64_encode_len   , CInt -> IO CInt
+#ccall apr_base64_encode       , Ptr CChar -> Ptr CChar -> CInt -> IO CInt
+#ccall apr_base64_encode_binary, Ptr CChar -> Ptr CUChar -> CInt -> IO CInt
+#ccall apr_base64_decode_len   , Ptr CChar -> IO CInt
+#ccall apr_base64_decode       , Ptr CChar -> Ptr CChar -> IO CInt
+#ccall apr_base64_decode_binary, Ptr CUChar -> Ptr CChar -> IO CInt
+
diff --git a/Bindings/APU.hsc b/Bindings/APU.hsc
new file mode 100644 (file)
index 0000000..f5bc88a
--- /dev/null
@@ -0,0 +1,26 @@
+#include <bindings.dsl.h>
+#include <apu.h>
+
+module Bindings.APU where
+#strict_import
+
+#num APU_HAVE_SDBM
+#num APU_HAVE_GDBM
+#num APU_HAVE_NDBM
+#num APU_HAVE_DB
+
+#if APU_HAVE_DB
+#  num APU_HAVE_DB_VERSION
+#endif
+
+#num APU_HAVE_PGSQL
+#num APU_HAVE_MYSQL
+#num APU_HAVE_SQLITE3
+#num APU_HAVE_SQLITE2
+#num APU_HAVE_ORACLE
+#num APU_HAVE_FREETDS
+#num APU_HAVE_ODBC
+
+#num APU_HAVE_APR_ICONV
+#num APU_HAVE_ICONV
+#num APR_HAS_XLATE
index 737838694df5784689d0f8c7c6f9cdc2880fa117..4c8d66aeaad64356d9895abe02eced0875279389 100644 (file)
@@ -29,7 +29,9 @@ Library
         apr-util-1 >= 1.3
 
     Exposed-Modules:
+        Bindings.APU
         Bindings.APR.AnyLock
+        Bindings.APR.Base64
 
     C-Sources:
         cbits/helper_apr_anylock.c