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
15 #include <afs/param.h>
17 BOOL InitClass(HANDLE);
18 BOOL InitInstance(HANDLE, int);
20 LONG APIENTRY MainWndProc(HWND, unsigned int, unsigned int, long);
21 BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
29 #include <afs/vldbint.h>
30 #include <afs/afsint.h>
31 #define FSINT_COMMON_XG
33 #include <afs/prs_fs.h>
35 #include "cm_config.h"
37 #include "cm_scache.h"
38 #include "cm_callback.h"
40 #include "cm_diskcache95.h"
41 #endif /* DISKCACHE95 */
44 #include "cm_aclent.h"
45 #include "cm_server.h"
46 #include "cm_volstat.h"
47 #include "cm_volume.h"
48 #include "cm_dcache.h"
49 #include "cm_access.h"
52 #include "cm_vnodeops.h"
54 #include "cm_daemon.h"
56 #include "smb_iocons.h"
59 #include "cm_memmap.h"
60 #include "cm_freelance.h"
61 #include "cm_performance.h"
62 #include "afsd_init.h"
63 #include "afsd_eventlog.h"
66 #define AFS_DAEMON_SERVICE_NAME AFSREG_CLT_SVC_NAME
67 #define AFS_DAEMON_EVENT_NAME AFSREG_CLT_SW_NAME
71 extern void afsi_log(char *pattern, ...);
73 /* globals from the base afsd */
75 extern int cm_logChunkSize;
76 extern int cm_chunkSize;
78 extern cm_volume_t *cm_rootVolumep;
80 extern cm_cell_t *cm_rootCellp;
82 extern cm_fid_t cm_rootFid;
84 extern cm_scache_t *cm_rootSCachep;
86 extern osi_log_t *afsd_logp;
88 extern fschar_t cm_mountRoot[];
89 extern DWORD cm_mountRootLen;
91 extern clientchar_t cm_mountRootC[];
92 extern DWORD cm_mountRootCLen;
94 extern char cm_CachePath[];
96 extern BOOL isGateway;
98 extern BOOL reportSessionStartups;
100 #ifdef AFS_FREELANCE_CLIENT
101 extern char *cm_FakeRootDir; // the fake root.afs directory
103 extern int cm_fakeDirSize; // size (in bytes) of fake root.afs directory
105 extern int cm_fakeDirCallback; // state of the fake root.afs directory. indicates
106 // if it needs to be refreshed
108 extern int cm_fakeGettingCallback; // 1 if currently updating the fake root.afs directory,
110 #endif /* AFS_FREELANCE_CLIENT */
112 extern int cm_dnsEnabled;
113 extern int cm_freelanceEnabled;
114 extern int cm_readonlyVolumeVersioning;
118 extern HANDLE WaitToTerminate;
120 #define DFS_SUPPORT 1
123 #define LOCK_TESTING 1
125 #define WORKER_THREADS 10
127 #define AFSD_HOOK_DLL "afsdhook.dll"
128 #define AFSD_INIT_HOOK "AfsdInitHook"
129 typedef BOOL ( APIENTRY * AfsdInitHook )(void);
130 #define AFSD_RX_STARTED_HOOK "AfsdRxStartedHook"
131 typedef BOOL ( APIENTRY * AfsdRxStartedHook )(void);
132 #define AFSD_SMB_STARTED_HOOK "AfsdSmbStartedHook"
133 typedef BOOL ( APIENTRY * AfsdSmbStartedHook )(void);
134 #define AFSD_STARTED_HOOK "AfsdStartedHook"
135 typedef BOOL ( APIENTRY * AfsdStartedHook )(void);
136 #define AFSD_DAEMON_HOOK "AfsdDaemonHook"
137 typedef BOOL ( APIENTRY * AfsdDaemonHook )(void);
138 #define AFSD_STOPPING_HOOK "AfsdStoppingHook"
139 typedef BOOL ( APIENTRY * AfsdStoppingHook )(void);
140 #define AFSD_STOPPED_HOOK "AfsdStoppedHook"
141 typedef BOOL ( APIENTRY * AfsdStoppedHook )(void);
143 #define SERVICE_CONTROL_CUSTOM_DUMP 128
144 #endif /* AFSD_H_ENV */