windows-dfs-support-disable-20050817
[openafs.git] / src / WINNT / afsd / afsd.h
index 51b6dc2..6109885 100644 (file)
 #ifndef __AFSD_H_ENV__
 #define __AFSD_H_ENV__ 1
 
+#include <afs/param.h>
+
+#ifndef DJGPP
 BOOL InitClass(HANDLE);
 BOOL InitInstance(HANDLE, int);
 
 LONG APIENTRY MainWndProc(HWND, unsigned int, unsigned int, long);
 BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
+#endif /* !DJGPP */
 
+#ifndef DJGPP
 #include <nb30.h>
+#else /* DJGPP */
+#include <sys/farptr.h>
+#include <go32.h>
+#include "dosdefs95.h"
+#include "largeint95.h"
+#endif /* !DJGPP */
+
 #include "afsdicon.h"
 
 #include "cm.h"
 
 #include "krb.h"
 #include "krb_prot.h"
-#include <crypt.h>
+/*#include <crypt.h>*/
 #include <afs/prs_fs.h>
 
-#include "cm_access.h"
-#include "cm_aclent.h"
-#include "cm_cell.h"
+#include <osi.h>
 #include "cm_config.h"
-#include "cm_server.h"
 #include "cm_user.h"
+#include "cm_callback.h"
+#ifdef DISKCACHE95
+#include "cm_diskcache95.h"
+#endif /* DISKCACHE95 */
 #include "cm_conn.h"
-#include "cm_volume.h"
-#include "cm_access.h"
+#include "cm_aclent.h"
+#include "cm_cell.h"
+#include "cm_server.h"
 #include "cm_scache.h"
+#include "cm_volume.h"
 #include "cm_dcache.h"
-#include "cm_buf.h"
-#include "cm_callback.h"
+#include "cm_access.h"
+#include "cm_utils.h"
 #include "cm_vnodeops.h"
 #include "cm_dir.h"
-#include "cm_utils.h"
 #include "cm_daemon.h"
 #include "cm_ioctl.h"
 #include "cm_dnlc.h"
+#include "cm_buf.h"
+#include "cm_memmap.h"
+#include "cm_freelance.h"
+#include "smb_ioctl.h"
+#include "afsd_init.h"
+#ifdef DJGPP
+#include "afs/afsmsg95.h"
+#endif
 
 #include <afs/vldbint.h>
 #include <afs/afsint.h>
@@ -52,6 +74,8 @@ BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
 #define AFS_DAEMON_SERVICE_NAME "TransarcAFSDaemon"
 #define AFS_DAEMON_EVENT_NAME "AFS Client"
 
+void afs_exit();
+
 /* globals from the base afsd */
 
 extern int cm_logChunkSize;
@@ -76,4 +100,55 @@ extern BOOL isGateway;
 
 extern BOOL reportSessionStartups;
 
+#ifdef AFS_FREELANCE_CLIENT
+extern char *cm_FakeRootDir;                           // the fake root.afs directory
+
+extern int cm_noLocalMountPoints;                      // no. of fake mountpoints
+
+extern cm_localMountPoint_t* cm_localMountPoints;      // array of fake mountpoints
+
+extern int cm_fakeDirSize;                             // size (in bytes) of fake root.afs directory
+
+extern int cm_fakeDirCallback;                         // state of the fake root.afs directory. indicates
+                                                                                                       // if it needs to be refreshed
+
+extern int cm_fakeGettingCallback;                     // 1 if currently updating the fake root.afs directory,
+                                                                                                       // 0 otherwise
+
+extern int cm_fakeDirVersion;                          // the version number of the root.afs directory. used 
+#endif /* AFS_FREELANCE_CLIENT */
+
+extern int cm_dnsEnabled;
+extern int cm_freelanceEnabled;
+
+extern long rx_mtu;
+
+extern HANDLE WaitToTerminate;
+
+#define CAPABILITY_ERRORTRANS (1<<0)
+#define CAPABILITY_BITS 1
+
+#undef  DFS_SUPPORT 1
+#define LOG_PACKET 1
+#undef  NOTSERVICE
+
+#define WORKER_THREADS 10
+
+#define AFSD_HOOK_DLL  "afsdhook.dll"
+#define AFSD_INIT_HOOK "AfsdInitHook"
+typedef BOOL ( APIENTRY * AfsdInitHook )(void);
+#define AFSD_RX_STARTED_HOOK "AfsdRxStartedHook"
+typedef BOOL ( APIENTRY * AfsdRxStartedHook )(void);
+#define AFSD_SMB_STARTED_HOOK "AfsdSmbStartedHook"
+typedef BOOL ( APIENTRY * AfsdSmbStartedHook )(void);
+#define AFSD_STARTED_HOOK "AfsdStartedHook"
+typedef BOOL ( APIENTRY * AfsdStartedHook )(void);
+#define AFSD_DAEMON_HOOK "AfsdDaemonHook"
+typedef BOOL ( APIENTRY * AfsdDaemonHook )(void);
+#define AFSD_STOPPING_HOOK "AfsdStoppingHook"
+typedef BOOL ( APIENTRY * AfsdStoppingHook )(void);
+#define AFSD_STOPPED_HOOK "AfsdStoppedHook"
+typedef BOOL ( APIENTRY * AfsdStoppedHook )(void);
+
+#define SERVICE_CONTROL_CUSTOM_DUMP 128
 #endif /* AFSD_H_ENV */