]> git.sur5r.net Git - openldap/blob - servers/slapd/back-monitor/proto-back-monitor.h
pass Operation instead of private info
[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(( Operation *op, 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(( Operation *op, Entry *e ));
68 int monitor_subsys_conn_create LDAP_P(( Operation *op, struct berval *ndn,
69                         Entry *e_parent, Entry **ep ));
70
71 /*
72  * read waiters
73  */
74 int monitor_subsys_readw_update LDAP_P(( Operation *op, Entry *e ));
75
76 /*
77  * write waiters
78  */
79 int monitor_subsys_writew_update LDAP_P(( Operation *op, Entry *e ));
80
81 /*
82  * log
83  */
84 int monitor_subsys_log_init LDAP_P(( BackendDB *be ));
85 int monitor_subsys_log_modify LDAP_P(( Operation *op, Entry *e,
86                         Modifications *modlist  ));
87
88 /*
89  * operations
90  */
91 int monitor_subsys_ops_init LDAP_P(( BackendDB *be ));
92 int monitor_subsys_ops_update LDAP_P(( Operation *op, Entry *e ));
93
94 /*
95  * sent
96  */
97 int monitor_subsys_sent_init LDAP_P(( BackendDB *be ));
98 int monitor_subsys_sent_update LDAP_P(( Operation *op, Entry *e ));
99
100 /*
101  * listener
102  */
103 int monitor_subsys_listener_init LDAP_P(( BackendDB *be ));
104
105 /*
106  * time
107  */
108 int monitor_subsys_time_init LDAP_P(( BackendDB *be ));
109 int monitor_subsys_time_update LDAP_P(( Operation *op, Entry *e ));
110
111 LDAP_END_DECL
112
113 #endif /* _PROTO_BACK_LDBM */
114