]> git.sur5r.net Git - openldap/blob - servers/slapd/back-monitor/proto-back-monitor.h
improvements to monitor backend: added a log entry that lists the current log level...
[openldap] / servers / slapd / back-monitor / proto-back-monitor.h
1 /*
2  * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5 /*
6  * Copyright 2001 The OpenLDAP Foundation, All Rights Reserved.
7  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8  * 
9  * Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
10  * 
11  * This work has beed deveolped for the OpenLDAP Foundation 
12  * in the hope that it may be useful to the Open Source community, 
13  * but WITHOUT ANY WARRANTY.
14  * 
15  * Permission is granted to anyone to use this software for any purpose
16  * on any computer system, and to alter it and redistribute it, subject
17  * to the following restrictions:
18  * 
19  * 1. The author and SysNet s.n.c. are not responsible for the consequences
20  *    of use of this software, no matter how awful, even if they arise from
21  *    flaws in it.
22  * 
23  * 2. The origin of this software must not be misrepresented, either by
24  *    explicit claim or by omission.  Since few users ever read sources,
25  *    credits should appear in the documentation.
26  * 
27  * 3. Altered versions must be plainly marked as such, and must not be
28  *    misrepresented as being the original software.  Since few users
29  *    ever read sources, credits should appear in the documentation.
30  *    SysNet s.n.c. cannot be responsible for the consequences of the
31  *    alterations.
32  * 
33  * 4. This notice may not be removed or altered.
34  */
35
36 #ifndef _PROTO_BACK_LDBM
37 #define _PROTO_BACK_LDBM
38
39 #include <ldap_cdefs.h>
40
41 #include "external.h"
42
43 LDAP_BEGIN_DECL
44
45 /*
46  * entry
47  */
48 int monitor_entry_test_flags LDAP_P(( struct monitorentrypriv *mp, int cond ));
49
50 /*
51  * backends
52  */
53 int monitor_subsys_backend_init LDAP_P(( BackendDB *be ));
54
55 /*
56  * databases 
57  */
58 int monitor_subsys_database_init LDAP_P(( BackendDB *be ));
59
60 /*
61  * threads
62  */
63 int monitor_subsys_thread_init LDAP_P(( BackendDB *be ));
64 int monitor_subsys_thread_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
65
66 /*
67  * connections
68  */
69 int monitor_subsys_conn_init LDAP_P(( BackendDB *be ));
70 int monitor_subsys_conn_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
71 int monitor_subsys_conn_create LDAP_P(( struct monitorinfo *mi, const char *ndn, Entry *e_parent, Entry **ep ));
72
73 /*
74  * read waiters
75  */
76 int monitor_subsys_readw_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
77
78 /*
79  * write waiters
80  */
81 int monitor_subsys_writew_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
82
83 /*
84  * log
85  */
86 int monitor_subsys_log_init LDAP_P(( BackendDB *be ));
87 int monitor_subsys_log_modify LDAP_P(( struct monitorinfo *mi, Entry *e, Modifications *modlist ));
88
89 LDAP_END_DECL
90 #endif