DEVEL15-windows-freelance-improved-dfs-handling-20080127
[openafs.git] / src / WINNT / afsd / cm_freelance.h
1 #ifndef _CM_FREELANCE_H
2 #define _CM_FREELANCE_H 1
3
4
5 typedef struct cm_localMountPoint {
6     char*                       namep;
7     char*                       mountPointStringp;
8     unsigned int                fileType;
9 } cm_localMountPoint_t;
10
11 extern int cm_getNoLocalMountPoints();
12 extern long cm_InitLocalMountPoints();
13 extern int cm_getLocalMountPointChange();
14 extern int cm_reInitLocalMountPoints();
15 extern void cm_InitFreelance();
16 extern void cm_FreelanceShutdown(void);
17 extern int cm_noteLocalMountPointChange(void);
18 extern long cm_FreelanceRemoveMount(char *toremove);
19 extern long cm_FreelanceAddMount(char *filename, char *cellname, char *volume, int rw, cm_fid_t *fidp);
20 extern long cm_FreelanceRemoveSymlink(char *toremove);
21 extern long cm_FreelanceAddSymlink(char *filename, char *destination, cm_fid_t *fidp);
22 extern long cm_FreelanceMountPointExists(char * filename, int prefix_ok);
23 extern long cm_FreelanceSymlinkExists(char * filename, int prefix_ok);
24 extern int cm_clearLocalMountPointChange();
25 extern int cm_FakeRootFid(cm_fid_t *fidp);
26
27 #define AFS_FREELANCE_INI "afs_freelance.ini"
28 #define AFS_FAKE_ROOT_CELL_ID 0xFFFFFFFF
29 #define AFS_FAKE_ROOT_VOL_ID  0xFFFFFFFF
30
31 extern time_t FakeFreelanceModTime;
32 #endif // _CM_FREELANCE_H