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.

119 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. irtdicl.h
  5. Abstract:
  6. public definitions for the irda tdi client library.
  7. Author:
  8. mbert 9-97
  9. --*/
  10. #define DBG_INIT 0x00000002
  11. #define DBG_CONFIG 0x00000004
  12. #define DBG_CONNECT 0x00000008
  13. #define DBG_SEND 0x00000010
  14. #define DBG_RECV 0x00000020
  15. #define DBG_LIB_OBJ 0x00000100
  16. #define DBG_LIB_CONNECT 0x00000200
  17. #define DBG_LIB_SEND 0x00000400
  18. #define DBG_LIB_RECV 0x00080000
  19. #define DBG_ERROR 0x80000000
  20. #define IRTDI_RECV_BUF_CNT 6
  21. typedef struct
  22. {
  23. LIST_ENTRY Linkage;
  24. CHAR Buf[IRDA_MAX_DATA_SIZE];
  25. ULONG BufLen;
  26. } IRDA_RECVBUF, *PIRDA_RECVBUF;
  27. // external routines called by library
  28. NTSTATUS
  29. IrdaIncomingConnection(
  30. PVOID ClEndpContext,
  31. PVOID ConnectionContext,
  32. PVOID *ClConnContext);
  33. VOID
  34. IrdaConnectionClosed(
  35. PVOID ConnectionContext);
  36. VOID
  37. IrdaSendComplete(
  38. PVOID ClConnContext,
  39. PVOID SendContext,
  40. NTSTATUS Status);
  41. VOID
  42. IrdaReceiveIndication(
  43. PVOID ConnectionContext,
  44. PIRDA_RECVBUF pRecvBuf,
  45. BOOLEAN LastBuf);
  46. VOID
  47. IrdaCloseConnectionComplete(
  48. IN PVOID ClConnContext);
  49. VOID
  50. IrdaCloseEndpointComplete(
  51. IN PVOID ClEndpContext);
  52. VOID
  53. IrdaCloseAddresses();
  54. // IrDA TDI Client library public functions
  55. NTSTATUS
  56. IrdaClientInitialize();
  57. VOID
  58. IrdaClientShutdown();
  59. NTSTATUS
  60. IrdaOpenEndpoint(
  61. IN PVOID ClEndpContext,
  62. IN PTDI_ADDRESS_IRDA pRequestedIrdaAddr,
  63. OUT PVOID *pEndpContext);
  64. NTSTATUS
  65. IrdaCloseEndpoint(
  66. OUT PVOID pEndpContext);
  67. NTSTATUS
  68. IrdaDiscoverDevices(
  69. PDEVICELIST pDevList,
  70. PULONG pDevListLen);
  71. NTSTATUS
  72. IrdaOpenConnection(
  73. PTDI_ADDRESS_IRDA pIrdaAddr,
  74. PVOID ClConnContext,
  75. PVOID *pConnectContext,
  76. BOOLEAN IrCommMode);
  77. VOID
  78. IrdaCloseConnection(
  79. IN PVOID ConnectContext);
  80. VOID
  81. IrdaSend(
  82. PVOID ConnectionContext,
  83. PMDL pMdl,
  84. PVOID SendContext);
  85. VOID
  86. IrdaReceiveComplete(
  87. PVOID ConnectionContext,
  88. PIRDA_RECVBUF pRcvBuf);
  89. ULONG
  90. IrdaGetConnectionSpeed(
  91. PVOID ConnectionContext);