Mercurial > hg > xemacs-beta
comparison src/eldap.h @ 361:7347b34c275b r21-1-10
Import from CVS: tag r21-1-10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:58:40 +0200 |
parents | 57709be46d1b |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
360:0f00b38cfccb | 361:7347b34c275b |
---|---|
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 }; |
43 | 41 |
44 | 42 |
45 DECLARE_LRECORD (ldap, struct Lisp_LDAP); | 43 DECLARE_LRECORD (ldap, struct Lisp_LDAP); |
46 #define XLDAP(x) XRECORD (x, ldap, struct Lisp_LDAP) | 44 #define XLDAP(x) XRECORD (x, ldap, struct Lisp_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 |