Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / afsd / cm_config.h
1 /* 
2  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
3  *
4  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
5  * LICENSED MATERIALS - PROPERTY OF IBM
6  *
7  *
8  */
9 #ifndef __CONFIG_H_ENV_
10 #define __CONFIG_H_ENV_ 1
11
12 #define CM_CONFIGDEFAULT_CACHESIZE      20480
13 #define CM_CONFIGDEFAULT_BLOCKSIZE      4096
14 #define CM_CONFIGDEFAULT_STATS          1000
15 #define CM_CONFIGDEFAULT_CHUNKSIZE      15
16 #define CM_CONFIGDEFAULT_DAEMONS        2
17 #define CM_CONFIGDEFAULT_SVTHREADS      4
18 #define CM_CONFIGDEFAULT_TRACEBUFSIZE   5000
19
20 #ifndef __CM_CONFIG_INTERFACES_ONLY__
21
22 #include <stdio.h>
23
24 extern char AFSConfigKeyName[];
25
26 typedef FILE cm_configFile_t;
27
28 typedef long (cm_configProc_t)(void *rockp, struct sockaddr_in *addrp, char *namep);
29
30 extern long cm_GetRootCellName(char *namep);
31
32 extern long cm_SearchCellFile(char *cellNamep, char *newCellNamep,
33         cm_configProc_t *procp, void *rockp);
34
35 extern long cm_WriteConfigString(char *labelp, char *valuep);
36
37 extern long cm_WriteConfigInt(char *labelp, long value);
38
39 extern cm_configFile_t *cm_OpenCellFile(void);
40
41 extern long cm_AppendPrunedCellList(cm_configFile_t *filep, char *cellNamep);
42
43 extern long cm_AppendNewCell(cm_configFile_t *filep, char *cellNamep);
44
45 extern long cm_AppendNewCellLine(cm_configFile_t *filep, char *linep);
46
47 extern long cm_CloseCellFile(cm_configFile_t *filep);
48
49 #endif /* __CM_CONFIG_INTERFACES_ONLY__ */
50
51 #endif /* __CONFIG_H_ENV_ */