comparison src/eldap.h @ 418:e804706bfb8c r21-2-17

Import from CVS: tag r21-2-17
author cvs
date Mon, 13 Aug 2007 11:23:13 +0200
parents 697ef44129c6
children 11054d720c21
comparison
equal deleted inserted replaced
417:43a18b32d56e 418:e804706bfb8c
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