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.

42 lines
1.0 KiB

  1. /*****************************************************************************
  2. *
  3. * Copyright (c) 1995 Microsoft Corporation
  4. *
  5. * File: irlaplog.h
  6. *
  7. * Description: IRLAP state machine logging and errors
  8. *
  9. * Author: mbert
  10. *
  11. * Date: 4/15/95
  12. *
  13. */
  14. #if 1 //DBG
  15. extern TCHAR *IRDA_PrimStr[];
  16. extern TCHAR *IRLAP_StateStr[];
  17. extern TCHAR *MAC_OpStr[];
  18. extern TCHAR *IRDA_TimerStr[];
  19. extern TCHAR *IRDA_StatStr[];
  20. #define SPRINT_BUF_LEN 1000
  21. #define EXPAND_ADDR(Addr) Addr[0],Addr[1],Addr[2],Addr[3]
  22. void IRLAP_EventLogStart(PIRLAP_CB, TCHAR *pFormat, ...);
  23. void __cdecl IRLAP_LogAction(PIRLAP_CB, TCHAR *pFormat, ...);
  24. void IRLAP_EventLogComplete(PIRLAP_CB);
  25. TCHAR *FrameToStr(IRDA_MSG *);
  26. #define IRLAP_LOG_START(X) IRLAP_EventLogStart X
  27. #define IRLAP_LOG_ACTION(X) IRLAP_LogAction X
  28. #define IRLAP_LOG_COMPLETE(X) IRLAP_EventLogComplete(X)
  29. #else
  30. #define IRLAP_LOG_START(X) (0)
  31. #define IRLAP_LOG_ACTION(X) (0)
  32. #define IRLAP_LOG_COMPLETE(X) (0)
  33. #endif