windows-clean-20041129
[openafs.git] / src / WINNT / afsd / afsd.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 __AFSD_H_ENV__
11 #define __AFSD_H_ENV__ 1
12
13 #include <afs/param.h>
14
15 #ifndef DJGPP
16 BOOL InitClass(HANDLE);
17 BOOL InitInstance(HANDLE, int);
18
19 LONG APIENTRY MainWndProc(HWND, unsigned int, unsigned int, long);
20 BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
21 #endif /* !DJGPP */
22
23 #ifndef DJGPP
24 #include <nb30.h>
25 #else /* DJGPP */
26 #include <sys/farptr.h>
27 #include <go32.h>
28 #include "dosdefs95.h"
29 #include "largeint95.h"
30 #endif /* !DJGPP */
31
32 #include "afsdicon.h"
33
34 #include "cm.h"
35
36 #include "krb.h"
37 #include "krb_prot.h"
38 /*#include <crypt.h>*/
39 #include <afs/prs_fs.h>
40
41 #include <osi.h>
42 #include "cm_user.h"
43 #include "cm_callback.h"
44 #ifdef DISKCACHE95
45 #include "cm_diskcache95.h"
46 #endif /* DISKCACHE95 */
47 #include "cm_conn.h"
48 #include "cm_aclent.h"
49 #include "cm_cell.h"
50 #include "cm_config.h"
51 #include "cm_server.h"
52 #include "cm_volume.h"
53 #include "cm_scache.h"
54 #include "cm_dcache.h"
55 #include "cm_access.h"
56 #include "cm_vnodeops.h"
57 #include "cm_dir.h"
58 #include "cm_utils.h"
59 #include "cm_daemon.h"
60 #include "cm_ioctl.h"
61 #include "cm_dnlc.h"
62 #include "cm_buf.h"
63 #include "cm_freelance.h"
64 #include "smb_ioctl.h"
65 #ifdef DJGPP
66 #include "afs/afsmsg95.h"
67 #endif
68
69 #include <afs/vldbint.h>
70 #include <afs/afsint.h>
71
72 #define AFS_DAEMON_SERVICE_NAME "TransarcAFSDaemon"
73 #define AFS_DAEMON_EVENT_NAME "AFS Client"
74
75 void afs_exit();
76
77 /* globals from the base afsd */
78
79 extern int cm_logChunkSize;
80 extern int cm_chunkSize;
81
82 extern cm_volume_t *cm_rootVolumep;
83
84 extern cm_cell_t *cm_rootCellp;
85
86 extern cm_fid_t cm_rootFid;
87
88 extern cm_scache_t *cm_rootSCachep;
89
90 extern osi_log_t *afsd_logp;
91
92 extern char cm_mountRoot[];
93 extern DWORD cm_mountRootLen;
94
95 extern char cm_CachePath[];
96
97 extern BOOL isGateway;
98
99 extern BOOL reportSessionStartups;
100
101 #ifdef AFS_FREELANCE_CLIENT
102
103 // yj: Variables used by Freelance Client
104 extern char *cm_FakeRootDir;                                            // the fake root.afs directory
105
106 extern int cm_noLocalMountPoints;                                       // no. of fake mountpoints
107
108 extern cm_localMountPoint_t* cm_localMountPoints;       // array of fake mountpoints
109
110 extern int cm_fakeDirSize;                                                      // size (in bytes) of fake root.afs directory
111
112 extern int cm_fakeDirCallback;                                          // state of the fake root.afs directory. indicates
113                                                                                                         // if it needs to be refreshed
114
115 extern int cm_fakeGettingCallback;                                      // 1 if currently updating the fake root.afs directory,
116                                                                                                         // 0 otherwise
117
118 extern int cm_fakeDirVersion;                                           // the version number of the root.afs directory. used 
119                                                                                                         // invalidate all the buffers containing root.afs data
120                                                                                                         // after reinitialization
121 // ------------------------------------------
122 #endif /* AFS_FREELANCE_CLIENT */
123
124 extern int cm_dnsEnabled;
125 extern int cm_freelanceEnabled;
126
127 #endif /* AFSD_H_ENV */