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