Mercurial > hg > xemacs-beta
comparison src/eldap.h @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | cc15677e0335 |
children | a86b2b5e0111 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with XEmacs; see the file COPYING. If not, write to | 17 along with XEmacs; see the file COPYING. If not, write to |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02111-1307, USA. */ |
20 | 20 |
21 #ifndef _XEMACS_ELDAP_H_ | 21 #ifndef INCLUDED_eldap_h_ |
22 #define _XEMACS_ELDAP_H_ | 22 #define INCLUDED_eldap_h_ |
23 | 23 |
24 #include <lber.h> | 24 #include <lber.h> |
25 #include <ldap.h> | 25 #include <ldap.h> |
26 | 26 |
27 /* | 27 /* |
35 struct lcrecord_header header; | 35 struct lcrecord_header header; |
36 /* The LDAP connection handle used by the LDAP API */ | 36 /* The LDAP connection handle used by the LDAP API */ |
37 LDAP *ld; | 37 LDAP *ld; |
38 /* Name of the host we connected to */ | 38 /* Name of the host we connected to */ |
39 Lisp_Object host; | 39 Lisp_Object host; |
40 /* Status of the LDAP connection. */ | |
41 int livep; | |
42 }; | 40 }; |
41 typedef struct Lisp_LDAP Lisp_LDAP; | |
43 | 42 |
44 | 43 |
45 DECLARE_LRECORD (ldap, struct Lisp_LDAP); | 44 DECLARE_LRECORD (ldap, Lisp_LDAP); |
46 #define XLDAP(x) XRECORD (x, ldap, struct Lisp_LDAP) | 45 #define XLDAP(x) XRECORD (x, ldap, Lisp_LDAP) |
47 #define XSETLDAP(x, p) XSETRECORD (x, p, ldap) | 46 #define XSETLDAP(x, p) XSETRECORD (x, p, ldap) |
48 #define LDAPP(x) RECORDP (x, ldap) | 47 #define LDAPP(x) RECORDP (x, ldap) |
49 #define GC_LDAPP(x) GC_RECORDP (x, ldap) | |
50 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap) | 48 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap) |
51 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap) | 49 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap) |
52 | 50 |
53 #define CHECK_LIVE_LDAP(ldap) do { \ | 51 #define CHECK_LIVE_LDAP(ldap) do { \ |
54 CHECK_LDAP (ldap); \ | 52 CHECK_LDAP (ldap); \ |
55 if (!XLDAP (ldap)->livep) \ | 53 if (!XLDAP (ldap)->ld) \ |
56 signal_simple_error ("Attempting to access closed LDAP connection", \ | 54 signal_simple_error ("Attempting to access closed LDAP connection", \ |
57 ldap); \ | 55 ldap); \ |
58 } while (0) | 56 } while (0) |
59 | 57 |
60 | 58 |
67 Lisp_Object Fldap_search_internal (Lisp_Object ldap, | 65 Lisp_Object Fldap_search_internal (Lisp_Object ldap, |
68 Lisp_Object filter, | 66 Lisp_Object filter, |
69 Lisp_Object base, | 67 Lisp_Object base, |
70 Lisp_Object scope, | 68 Lisp_Object scope, |
71 Lisp_Object attrs, | 69 Lisp_Object attrs, |
72 Lisp_Object attrsonly); | 70 Lisp_Object attrsonly, |
71 Lisp_Object withdn); | |
73 | 72 |
74 #endif /* _XEMACS_ELDAP_H_ */ | 73 #endif /* INCLUDED_eldap_h_ */ |