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

diff --git a/Bindings/APR/LDAP.hsc b/Bindings/APR/LDAP.hsc
new file mode 100644 (file)
index 0000000..8792eed
--- /dev/null
@@ -0,0 +1,43 @@
+#include <bindings.dsl.h>
+#include <apr_ldap.h>
+
+module Bindings.APR.LDAP where
+#strict_import
+
+#num APR_HAS_LDAP
+
+#num APR_HAS_NETSCAPE_LDAPSDK
+#num APR_HAS_SOLARIS_LDAPSDK
+#num APR_HAS_NOVELL_LDAPSDK
+#num APR_HAS_MOZILLA_LDAPSDK
+#num APR_HAS_OPENLDAP_LDAPSDK
+#num APR_HAS_MICROSOFT_LDAPSDK
+#num APR_HAS_TIVOLI_LDAPSDK
+#num APR_HAS_ZOS_LDAPSDK
+#num APR_HAS_OTHER_LDAPSDK
+
+#if APR_HAS_LDAP
+
+#  num APR_HAS_LDAP_SSL
+#  num APR_HAS_LDAP_URL_PARSE
+
+#  num APR_HAS_LDAPSSL_CLIENT_INIT
+#  num APR_HAS_LDAPSSL_CLIENT_DEINIT
+#  num APR_HAS_LDAPSSL_ADD_TRUSTED_CERT
+#  num APR_HAS_LDAP_START_TLS_S
+#  num APR_HAS_LDAP_SSLINIT
+#  num APR_HAS_LDAPSSL_INIT
+#  num APR_HAS_LDAPSSL_INSTALL_ROUTINES
+
+#  num APR_LDAP_SIZELIMIT
+
+#  starttype struct apr_ldap_err_t
+#    field reason, Ptr CChar
+#    field msg   , Ptr CChar
+#    field rc    , CInt
+#  stoptype
+
+-- FIXME What's the type it takes?
+-- #  cinline APR_LDAP_IS_SERVER_DOWN, <unknown> -> IO CInt
+
+#endif
\ No newline at end of file
index 3f18e62df66249f0615e4a7ef378d3bf82abb725..2fa2cb66ff278d3941fe42f7de1b1f231decf5df 100644 (file)
@@ -37,6 +37,7 @@ Library
         Bindings.APR.DBD
         Bindings.APR.DBM
         Bindings.APR.Hooks
+        Bindings.APR.LDAP
 
     C-Sources:
         cbits/helper_apr_anylock.c