Leaked source code of windows server 2003
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.

86 lines
1.9 KiB

  1. /*
  2. * server.h
  3. *
  4. * inter-module declarations for sumserver
  5. *
  6. * Geraint, July 92
  7. */
  8. /*
  9. * debug macros
  10. *
  11. */
  12. #if DBG
  13. void dbgPrintf(char * szFormat, ...);
  14. extern int ssDebugLevel;
  15. #define dprintf(_x_) dbgPrintf _x_
  16. #define dprintf1(_x_) if (ssDebugLevel >= 1) dbgPrintf _x_
  17. #define dprintf2(_x_) if (ssDebugLevel >= 2) dbgPrintf _x_
  18. #define dprintf3(_x_) if (ssDebugLevel >= 3) dbgPrintf _x_
  19. #define dprintf4(_x_) if (ssDebugLevel >= 4) dbgPrintf _x_
  20. #else
  21. #define dprintf(_x_)
  22. #define dprintf1(_x_)
  23. #define dprintf2(_x_)
  24. #define dprintf3(_x_)
  25. #define dprintf4(_x_)
  26. #endif
  27. #if DBG
  28. BOOL FAR PASCAL _Assert(BOOL fExpr, LPSTR szFile, int iLine);
  29. #define ASSERT(expr) _Assert((expr), __FILE__, __LINE__)
  30. #else
  31. #define ASSERT(expr)
  32. #endif
  33. /*
  34. * a list of file names, defined in scan.c
  35. */
  36. typedef struct fnamelist * PFNAMELIST;
  37. /*
  38. * logs defined and initialised in sumserve.c
  39. */
  40. HLOG hlogErrors, hlogEvents;
  41. /* function declarations --------------------------*/
  42. /* in scan.c */
  43. PFNAMELIST ss_addtolist(PFNAMELIST head, PSTR filename);
  44. BOOL ss_scan(HANDLE hpipe, LPSTR pRoot, LONG lVersion, BOOL bChecksum, BOOL fDeep);
  45. void ss_cleanconnections(PFNAMELIST connections);
  46. PFNAMELIST ss_handleUNC(HANDLE hpipe, long lVersion, LPSTR password, LPSTR server, PFNAMELIST);
  47. /* in file.c */
  48. void ss_sendfile(HANDLE hpipe, LPSTR file, LONG lVersion);
  49. BOOL ss_compress(PSTR original, PSTR compressed);
  50. /* in sumserve.c */
  51. BOOL ss_sendresponse(HANDLE hpipe, long lCode, ULONG ulSize,
  52. ULONG ulSum, PSTR szFile);
  53. BOOL ss_sendnewresp(HANDLE hPipe, long lVersion, long lCode, ULONG ulSize,
  54. ULONG ulSum, DWORD TimeLo, DWORD TimeHi, PSTR szFile);
  55. BOOL ss_sendblock(HANDLE hpipe, PSTR buffer, int length);
  56. /* in files.c */
  57. BOOL ss_sendfiles(HANDLE hPipe, long lVersion);