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.

30 lines
865 B

  1. /***************************************************************************
  2. Name : DECODER.H
  3. Comment : HDLC decoding structs
  4. Copyright (c) Microsoft Corp. 1991 1992 1993
  5. ***************************************************************************/
  6. #ifdef WIN32
  7. # define CODEBASED
  8. #else
  9. # define CODEBASED __based(__segname("_CODE"))
  10. #endif
  11. #ifdef SWECM
  12. # define SWECMEXP _export FAR PASCAL
  13. #else
  14. # define SWECMEXP
  15. #endif
  16. USHORT SWECMEXP HDLC_Decode(PThrdGlbl pTG, LPBYTE lpbSrc, USHORT cbSrc, LPBYTE lpbDst, USHORT far* lpcbDst, LPDECODESTATE lpState);
  17. #define InitDecoder(pTG, State) { State.carry=State.dec_width=State.len=0; State.flagabort=NORMAL; }
  18. /***------------------ also prototype from crc.c --------------------***/
  19. WORD SWECMEXP CalcCRC(PThrdGlbl pTG, LPBYTE lpbSrc, USHORT cbSrc);