Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. fsapi.h
  5. Abstract:
  6. External APIs to replication file system
  7. Author:
  8. Ahmed Mohamed (ahmedm) 1-Feb-2000
  9. Revision History:
  10. --*/
  11. #ifndef _FS_API_H
  12. #define _FS_API_H
  13. // upto 16 nodes for now, node id start from 1
  14. #define FsMaxNodes 17
  15. // initial crs log is 16 sectors, which is 8k
  16. #define FsCrsNumSectors 16
  17. DWORD FsInit(PVOID, PVOID *);
  18. void FsExit(PVOID);
  19. void FsEnd(PVOID);
  20. DWORD FsRegister(PVOID, LPWSTR name, LPWSTR ipcshare, LPWSTR disks[], DWORD disksz, HANDLE *fsid);
  21. DWORD FsUpdateReplicaSet(HANDLE fsid, LPWSTR disks[], DWORD disksz);
  22. DWORD FsArbitrate(PVOID vid, HANDLE event, HANDLE *wait_event);
  23. DWORD FsCancelArbitration(PVOID vid);
  24. DWORD FsIsQuorum(PVOID vid);
  25. DWORD FsIsOnline(PVOID vid);
  26. DWORD FsRelease(PVOID vid);
  27. DWORD FsReserve(PVOID vid);
  28. DWORD SrvInit(PVOID, PVOID, PVOID *);
  29. DWORD SrvOnline(PVOID, LPWSTR name, DWORD nic);
  30. DWORD SrvOffline(PVOID);
  31. void SrvExit(PVOID);
  32. extern void WINAPI error_log(char *, ...);
  33. extern void WINAPI debug_log(char *, ...);
  34. #endif