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.

96 lines
3.3 KiB

  1. /* File: C:\WACKER\xfer\hpr_sd.hh (Created: 24-Jan-1994)
  2. * created from HAWIN source file:
  3. * hpr_sd.hh -- Header file containing system dependent declarations for
  4. * Hyperprotocol
  5. *
  6. * Copyright 1989,1994 by Hilgraeve Inc. -- Monroe, MI
  7. * All rights reserved
  8. *
  9. * $Revision: 1 $
  10. * $Date: 10/05/98 1:16p $
  11. */
  12. /* progress display codes */
  13. #define FILE_DONE 1
  14. #define TRANSFER_DONE 2
  15. /* for HyperACCESS, convert references to file routines to bfile routines */
  16. // #define FILETYPE BFILE
  17. // #define FileClose nb_close
  18. // #define FileError nb_error
  19. // #define FileSeek nb_seek
  20. // #define FilePutc nb_putc
  21. // #define FileGetc nb_getc
  22. // #define RemoteQueryBitRate() cnfg.bit_rate
  23. // #define RemoteSendChar(c) ComSendChar(c)
  24. // #define RemoteSendDone() ComSendWait()
  25. extern int hr_setup(struct s_hc *hc);
  26. extern int hr_wrapup(struct s_hc *hc, int attended, int status);
  27. extern void hpr_id_get(struct s_hc *hc, BYTE *dst);
  28. extern int hpr_id_check(struct s_hc *hc, int rev, BYTE *name);
  29. /* These routines are used to display the ongoing status of a transfer.
  30. * They may be implemented as macros or functions as needed. If no
  31. * display of a particular item is desired, a macro can be defined to
  32. * disable it.
  33. * i.e. #define hrdsp_errorcnt(cnt)
  34. */
  35. /* During receiving:
  36. *
  37. * hrdsp_filecnt(cnt) if sender transmits number of files coming
  38. * hrdsp_totalsize(bytes) if sender transmits total bytes being sent
  39. * hrdsp_newfile(theirname, ourname, filen) upon start of new file
  40. * hrdsp_filesize(size) if size of current file is transmitted
  41. * hrdsp_progress(filebytes) at intervals during transfer
  42. * hrdsp_errorcnt(cnt) whenever an error is encountered
  43. * hrdsp_event(event_code) when significant events occur
  44. * hrdsp_status(status_code) when status of transfer changes
  45. */
  46. extern void hrdsp_compress(struct s_hc *hc, int cnt);
  47. extern void hrdsp_errorcnt(struct s_hc *hc, int cnt);
  48. extern void hrdsp_filecnt(struct s_hc *hc, int cnt);
  49. extern void hrdsp_totalsize(struct s_hc *hc, long bytes);
  50. extern void hrdsp_progress(struct s_hc *hc, int status);
  51. extern void hrdsp_status(struct s_hc *hc, int status);
  52. extern void hrdsp_event(struct s_hc *hc, int event);
  53. extern void hrdsp_newfile(struct s_hc *hc,
  54. int filen,
  55. char FAR *theirname,
  56. char FAR *ourname);
  57. extern void hrdsp_filesize(struct s_hc *hc, long fsize);
  58. // extern void hpr_idle(struct s_hc *hc);
  59. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  60. * SENDING *
  61. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  62. extern void hsdsp_compress(struct s_hc *hc, int tf);
  63. extern void hsdsp_retries(struct s_hc *hc, int t);
  64. extern void hsdsp_status(struct s_hc *hc, int s);
  65. extern void hsdsp_event(struct s_hc *hc, int e);
  66. extern int hs_setup(struct s_hc *hc, int nfiles, long nbytes);
  67. extern void hs_wrapup(struct s_hc *hc, int attended, int bailout_status);
  68. extern void hs_fxmit(struct s_hc *, BYTE);
  69. extern BYTE hs_xmit_switch(struct s_hc *, BYTE);
  70. extern void hs_xbswitch(struct s_hc *);
  71. extern void hs_xbclear(struct s_hc *);
  72. extern void hsdsp_progress(struct s_hc *hc, int status);
  73. extern void hsdsp_newfile(struct s_hc *hc,
  74. int filen,
  75. TCHAR *fname,
  76. long flength);