]> gitweb @ CieloNegro.org - bindings-apr-util.git/commitdiff
Bindings.APR.LDAP.Rebind
authorPHO <pho@cielonegro.org>
Sun, 12 Sep 2010 02:19:15 +0000 (11:19 +0900)
committerPHO <pho@cielonegro.org>
Sun, 12 Sep 2010 02:19:15 +0000 (11:19 +0900)
Bindings/APR/LDAP/Rebind.hsc [new file with mode: 0644]
bindings-apr-util.cabal

diff --git a/Bindings/APR/LDAP/Rebind.hsc b/Bindings/APR/LDAP/Rebind.hsc
new file mode 100644 (file)
index 0000000..657c2a2
--- /dev/null
@@ -0,0 +1,16 @@
+#include <bindings.dsl.h>
+#include <apr_ldap.h>
+#include <apr_ldap_rebind.h>
+
+module Bindings.APR.LDAP.Rebind where
+#strict_import
+import Bindings.APR.ErrNo
+import Bindings.APR.LDAP
+import Bindings.APR.Pools
+
+#if APR_HAS_LDAP
+
+#  ccall apr_ldap_rebind_add   , Ptr <apr_pool_t> -> Ptr <LDAP> -> Ptr CChar -> Ptr CChar -> IO <apr_status_t>
+#  ccall apr_ldap_rebind_remove, Ptr <LDAP> -> IO <apr_status_t>
+
+#endif
index f78eb548b229172e0e00f2cac87e837ea16ba501..d4ca929e2a106c08e26edc8f0f0a571ee12bd5ed 100644 (file)
@@ -40,6 +40,7 @@ Library
         Bindings.APR.LDAP
         Bindings.APR.LDAP.Init
         Bindings.APR.LDAP.Option
+        Bindings.APR.LDAP.Rebind
 
     C-Sources:
         cbits/helper_apr_anylock.c