]> git.sur5r.net Git - openldap/blob - servers/slapd/back-monitor/proto-back-monitor.h
notices
[openldap] / servers / slapd / back-monitor / proto-back-monitor.h
1 /* $OpenLDAP$ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 1998-2003 The OpenLDAP Foundation.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted only as authorized by the OpenLDAP
9  * Public License.
10  *
11  * A copy of this license is available in file LICENSE in the
12  * top-level directory of the distribution or, alternatively, at
13  * <http://www.OpenLDAP.org/license.html>.
14  */
15 /* ACKNOWLEDGEMENTS:
16  * This work was initially developed by Pierangelo Masarati for inclusion
17  * in OpenLDAP Software.
18  */
19 /* This is an altered version */
20 /*
21  * Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
22  * 
23  * This work has beed deveolped for the OpenLDAP Foundation 
24  * in the hope that it may be useful to the Open Source community, 
25  * but WITHOUT ANY WARRANTY.
26  * 
27  * Permission is granted to anyone to use this software for any purpose
28  * on any computer system, and to alter it and redistribute it, subject
29  * to the following restrictions:
30  * 
31  * 1. The author and SysNet s.n.c. are not responsible for the consequences
32  *    of use of this software, no matter how awful, even if they arise from
33  *    flaws in it.
34  * 
35  * 2. The origin of this software must not be misrepresented, either by
36  *    explicit claim or by omission.  Since few users ever read sources,
37  *    credits should appear in the documentation.
38  * 
39  * 3. Altered versions must be plainly marked as such, and must not be
40  *    misrepresented as being the original software.  Since few users
41  *    ever read sources, credits should appear in the documentation.
42  *    SysNet s.n.c. cannot be responsible for the consequences of the
43  *    alterations.
44  * 
45  * 4. This notice may not be removed or altered.
46  */
47
48 #ifndef _PROTO_BACK_MONITOR
49 #define _PROTO_BACK_MONITOR
50
51 #include <ldap_cdefs.h>
52
53 #include "external.h"
54
55 LDAP_BEGIN_DECL
56
57 /*
58  * entry
59  */
60 int monitor_entry_test_flags LDAP_P(( struct monitorentrypriv *mp, int cond ));
61
62 /*
63  * backends
64  */
65 int monitor_subsys_backend_init LDAP_P(( BackendDB *be ));
66
67 /*
68  * databases 
69  */
70 int monitor_subsys_database_init LDAP_P(( BackendDB *be ));
71
72 /*
73  * threads
74  */
75 int monitor_subsys_thread_init LDAP_P(( BackendDB *be ));
76 int monitor_subsys_thread_update LDAP_P(( Operation *op, Entry *e ));
77
78 /*
79  * connections
80  */
81 int monitor_subsys_conn_init LDAP_P(( BackendDB *be ));
82 int monitor_subsys_conn_update LDAP_P(( Operation *op, Entry *e ));
83 int monitor_subsys_conn_create LDAP_P(( Operation *op, struct berval *ndn,
84                         Entry *e_parent, Entry **ep ));
85
86 /*
87  * waiters
88  */
89 int monitor_subsys_rww_init LDAP_P(( BackendDB *be ));
90 int monitor_subsys_rww_update LDAP_P(( Operation *op, Entry *e ));
91
92 /*
93  * log
94  */
95 int monitor_subsys_log_init LDAP_P(( BackendDB *be ));
96 int monitor_subsys_log_modify LDAP_P(( Operation *op, Entry *e ));
97
98 /*
99  * operations
100  */
101 int monitor_subsys_ops_init LDAP_P(( BackendDB *be ));
102 int monitor_subsys_ops_update LDAP_P(( Operation *op, Entry *e ));
103
104 /*
105  * sent
106  */
107 int monitor_subsys_sent_init LDAP_P(( BackendDB *be ));
108 int monitor_subsys_sent_update LDAP_P(( Operation *op, Entry *e ));
109
110 /*
111  * listener
112  */
113 int monitor_subsys_listener_init LDAP_P(( BackendDB *be ));
114
115 /*
116  * time
117  */
118 int monitor_subsys_time_init LDAP_P(( BackendDB *be ));
119 int monitor_subsys_time_update LDAP_P(( Operation *op, Entry *e ));
120
121 LDAP_END_DECL
122
123 #endif /* _PROTO_BACK_MONITOR */
124