Debian Codegraph @

include/libaccess/aclglobal.h

raw
1 /** BEGIN COPYRIGHT BLOCK
2 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3 * Copyright (C) 2005 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * License: GPL (version 3 or any later version).
7 * See LICENSE for details.
8 * END COPYRIGHT BLOCK **/
9
10 #ifdef HAVE_CONFIG_H
11 #include <config.h>
12 #endif
13
14 /*
15 ** Header file containing global data elements. These are duplicated
16 ** when a cache flush is done.
17 */
18
19 #include <libaccess/acl.h>
20
21 struct ACLGlobal_s
22 {
23 ACLListHandle_t *primarylist;
24 pool_handle_t *pool; /* Deallocate at the start of cache flush */
25 pool_handle_t *databasepool;
26 pool_handle_t *methodpool;
27 PRHashTable *urihash;
28 PRHashTable *urigethash;
29 PRHashTable *listhash;
30 PRHashTable *evalhash;
31 PRHashTable *flushhash;
32 PRHashTable *methodhash;
33 PRHashTable *dbtypehash;
34 PRHashTable *dbnamehash;
35 PRHashTable *attrgetterhash;
36 PRHashTable *userLdbHash; /* user's LDAP handle hash */
37 };
38
39 typedef struct ACLGlobal_s ACLGlobal_t;
40 typedef struct ACLGlobal_s *ACLGlobal_p;
41
42 #define acl_uri_hash_pool ACLGlobal->pool
43 #define acl_uri_hash ACLGlobal->urihash
44 #define acl_uri_get_hash ACLGlobal->urigethash
45 #define ACLListHash ACLGlobal->listhash
46 #define ACLLasEvalHash ACLGlobal->evalhash
47 #define ACLLasFlushHash ACLGlobal->flushhash
48 #define ACLMethodHash ACLGlobal->methodhash
49 #define ACLDbTypeHash ACLGlobal->dbtypehash
50 #define ACLDbNameHash ACLGlobal->dbnamehash
51 #define ACLAttrGetterHash ACLGlobal->attrgetterhash
52 #define ACLUserLdbHash ACLGlobal->userLdbHash
53 #define ACL_DATABASE_POOL ACLGlobal->databasepool
54 #define ACL_METHOD_POOL ACLGlobal->methodpool
55
56 NSPR_BEGIN_EXTERN_C
57
58 extern ACLGlobal_p ACLGlobal;
59 extern ACLGlobal_p oldACLGlobal;
60
61 NSPR_END_EXTERN_C