]> git.sur5r.net Git - openldap/blob - servers/slapd/globals.c
notices
[openldap] / servers / slapd / globals.c
1 /* globals.c - various global variables */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4  *
5  * Copyright 1998-2003 The OpenLDAP Foundation.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in the file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16 /* Portions Copyright (c) 1995 Regents of the University of Michigan.
17  * All rights reserved.
18  *
19  * Redistribution and use in source and binary forms are permitted
20  * provided that this notice is preserved and that due credit is given
21  * to the University of Michigan at Ann Arbor. The name of the University
22  * may not be used to endorse or promote products derived from this
23  * software without specific prior written permission. This software
24  * is provided ``as is'' without express or implied warranty.
25  */
26
27 #include "portable.h"
28
29 #include "lber_pvt.h"
30
31 #include "slap.h"
32
33
34 /*
35  * global variables, in general, should be declared in the file
36  * primarily responsible for its management.  Configurable globals
37  * belong in config.c.  variables declared here have no other
38  * sensible home.
39  */
40
41 const struct berval slap_empty_bv = BER_BVC("");
42 const struct berval slap_unknown_bv = BER_BVC("unknown");
43
44 /* normalized boolean values */
45 const struct berval slap_true_bv = BER_BVC("TRUE");
46 const struct berval slap_false_bv = BER_BVC("FALSE");
47
48 #if 0
49 struct sync_cookie *slap_sync_cookie = NULL;
50 #endif
51 struct slap_sync_cookie_s slap_sync_cookie =
52                         LDAP_STAILQ_HEAD_INITIALIZER( slap_sync_cookie );