ca0ae38f4403b5adf178507eaf75392e6a1dd060
[openafs.git] / src / WINNT / afsd / cm_cell.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef __CELL_H_ENV_
11 #define __CELL_H_ENV_ 1
12
13 #include "cm_server.h"
14
15 /* a cell structure */
16 typedef struct cm_cell {
17         long cellID;                    /* cell ID */
18         struct cm_cell *nextp;          /* locked by cm_cellLock */
19         char *namep;                    /* cell name; never changes */
20         struct cm_serverRef *vlServersp;        /* locked by cm_serverLock */
21         osi_mutex_t mx;                 /* mutex locking fields (flags) */
22         long flags;                     /* locked by mx */
23 } cm_cell_t;
24
25 #define CM_CELLFLAG_SUID        1       /* setuid flag; not yet used */
26
27 extern void cm_InitCell(void);
28
29 extern cm_cell_t *cm_GetCell(char *namep, long flags);
30
31 extern cm_cell_t *cm_FindCellByID(long cellID);
32
33 extern void cm_ChangeRankCellVLServer(cm_server_t       *tsp);
34
35 extern osi_rwlock_t cm_cellLock;
36
37 extern cm_cell_t *cm_allCellsp;
38
39 #endif /* __CELL_H_ENV_ */