]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldap/back-ldap.h
Add support for unsolicited notifications.
[openldap] / servers / slapd / back-ldap / back-ldap.h
1 /* back-ldap.h - ldap backend header file */
2
3 /*
4  * Copyright 1999, Howard Chu, All rights reserved. <hyc@highlandsun.com>
5  * 
6  * Permission is granted to anyone to use this software for any purpose
7  * on any computer system, and to alter it and redistribute it, subject
8  * to the following restrictions:
9  * 
10  * 1. The author is not responsible for the consequences of use of this
11  *    software, no matter how awful, even if they arise from flaws in it.
12  * 
13  * 2. The origin of this software must not be misrepresented, either by
14  *    explicit claim or by omission.  Since few users ever read sources,
15  *    credits should appear in the documentation.
16  * 
17  * 3. Altered versions must be plainly marked as such, and must not be
18  *    misrepresented as being the original software.  Since few users
19  *    ever read sources, credits should appear in the documentation.
20  * 
21  * 4. This notice may not be removed or altered.
22  */
23
24 #ifndef SLAPD_LDAP_H
25 #define SLAPD_LDAP_H
26
27 #include "external.h"
28
29 LDAP_BEGIN_DECL
30
31 struct slap_conn;
32 struct slap_op;
33
34 struct ldapconn {
35         struct ldapconn *next;
36         struct slap_conn        *conn;
37         LDAP            *ld;
38         int             bound;
39 };
40
41 struct ldapinfo {
42         char *host;
43         int port;
44         char *suffix;
45         ldap_pvt_thread_mutex_t         conn_mutex;
46         struct ldapconn *lcs;
47 };
48
49 struct ldapconn *ldap_back_getconn(struct ldapinfo *li, struct slap_conn *conn,
50         struct slap_op *op);
51
52 LDAP_END_DECL
53
54 #endif