diff src/eldap.h @ 286:57709be46d1b r21-0b41

Import from CVS: tag r21-0b41
author cvs
date Mon, 13 Aug 2007 10:35:03 +0200
parents c42ec1d1cded
children 7347b34c275b
line wrap: on
line diff
--- a/src/eldap.h	Mon Aug 13 10:34:15 2007 +0200
+++ b/src/eldap.h	Mon Aug 13 10:35:03 2007 +0200
@@ -21,15 +21,26 @@
 #ifndef _XEMACS_ELDAP_H_
 #define _XEMACS_ELDAP_H_
 
-#ifndef HAVE_LDAP
-#undef XLDAP
-#undef XSETLDAP
-#define LDAPP(x) 0
-#undef CHECK_LDAP
+#include <lber.h>
+#include <ldap.h>
+
+/*
+ * The following structure records pertinent information about a
+ * LDAP connection.
+ */
 
-#else /* HAVE_LDAP */
+struct Lisp_LDAP
+{
+  /* lcrecord header */
+  struct lcrecord_header header;
+  /* The LDAP connection handle used by the LDAP API */
+  LDAP *ld;
+  /* Name of the host we connected to */
+  Lisp_Object host;
+  /* Status of the LDAP connection.  */
+  int livep;
+};
 
-struct Lisp_LDAP;
 
 DECLARE_LRECORD (ldap, struct Lisp_LDAP);
 #define XLDAP(x) XRECORD (x, ldap, struct Lisp_LDAP)
@@ -47,10 +58,6 @@
 } while (0)
 
 
-
-
-#ifdef emacs
-
 Lisp_Object Fldapp (Lisp_Object object);
 Lisp_Object Fldap_host (Lisp_Object ldap);
 Lisp_Object Fldap_status (Lisp_Object ldap);
@@ -64,10 +71,4 @@
                                    Lisp_Object attrs,
                                    Lisp_Object attrsonly);
 
-#endif /* emacs */
-
-
-#endif
-
-
 #endif /* _XEMACS_ELDAP_H_ */