2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #ifndef __AFSD_H_ENV__
11 #define __AFSD_H_ENV__ 1
13 #include <afs/param.h>
16 BOOL InitClass(HANDLE);
17 BOOL InitInstance(HANDLE, int);
19 LONG APIENTRY MainWndProc(HWND, unsigned int, unsigned int, long);
20 BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
26 #include <sys/farptr.h>
28 #include "dosdefs95.h"
29 #include "largeint95.h"
38 /*#include <crypt.h>*/
39 #include <afs/prs_fs.h>
43 #include "cm_callback.h"
45 #include "cm_diskcache95.h"
46 #endif /* DISKCACHE95 */
48 #include "cm_aclent.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"
59 #include "cm_daemon.h"
63 #include "cm_freelance.h"
64 #include "smb_ioctl.h"
65 #include "afsd_init.h"
67 #include "afs/afsmsg95.h"
70 #include <afs/vldbint.h>
71 #include <afs/afsint.h>
73 #define AFS_DAEMON_SERVICE_NAME "TransarcAFSDaemon"
74 #define AFS_DAEMON_EVENT_NAME "AFS Client"
78 /* globals from the base afsd */
80 extern int cm_logChunkSize;
81 extern int cm_chunkSize;
83 extern cm_volume_t *cm_rootVolumep;
85 extern cm_cell_t *cm_rootCellp;
87 extern cm_fid_t cm_rootFid;
89 extern cm_scache_t *cm_rootSCachep;
91 extern osi_log_t *afsd_logp;
93 extern char cm_mountRoot[];
94 extern DWORD cm_mountRootLen;
96 extern char cm_CachePath[];
98 extern BOOL isGateway;
100 extern BOOL reportSessionStartups;
102 #ifdef AFS_FREELANCE_CLIENT
104 // yj: Variables used by Freelance Client
105 extern char *cm_FakeRootDir; // the fake root.afs directory
107 extern int cm_noLocalMountPoints; // no. of fake mountpoints
109 extern cm_localMountPoint_t* cm_localMountPoints; // array of fake mountpoints
111 extern int cm_fakeDirSize; // size (in bytes) of fake root.afs directory
113 extern int cm_fakeDirCallback; // state of the fake root.afs directory. indicates
114 // if it needs to be refreshed
116 extern int cm_fakeGettingCallback; // 1 if currently updating the fake root.afs directory,
119 extern int cm_fakeDirVersion; // the version number of the root.afs directory. used
120 // invalidate all the buffers containing root.afs data
121 // after reinitialization
122 // ------------------------------------------
123 #endif /* AFS_FREELANCE_CLIENT */
125 extern int cm_dnsEnabled;
126 extern int cm_freelanceEnabled;
128 #endif /* AFSD_H_ENV */