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.

125 lines
2.0 KiB

  1. #ifndef __IRCOMM_TDI__
  2. #define __IRCOMM_TDI__
  3. #include <af_irda.h>
  4. #include <irdatdi.h>
  5. typedef PVOID IRDA_HANDLE;
  6. typedef NTSTATUS (*RECEIVE_CALLBACK)(
  7. PVOID Context,
  8. PUCHAR Buffer,
  9. ULONG BytesAvailible,
  10. PULONG BytesUsed
  11. );
  12. typedef VOID (*EVENT_CALLBACK)(
  13. PVOID Context,
  14. ULONG Event
  15. );
  16. //
  17. // irda connection functions
  18. //
  19. NTSTATUS
  20. IrdaConnect(
  21. ULONG DeviceAddress,
  22. CHAR *ServiceName,
  23. BOOLEAN OutGoingConnection,
  24. IRDA_HANDLE *ConnectionHandle,
  25. RECEIVE_CALLBACK ReceiveCallBack,
  26. EVENT_CALLBACK EventCallBack,
  27. PVOID CallbackContext
  28. );
  29. VOID
  30. FreeConnection(
  31. IRDA_HANDLE Handle
  32. );
  33. typedef VOID (*CONNECTION_CALLBACK)(
  34. PVOID Context,
  35. PIRP Irp
  36. );
  37. VOID
  38. SendOnConnection(
  39. IRDA_HANDLE Handle,
  40. PIRP Irp,
  41. CONNECTION_CALLBACK Callback,
  42. PVOID Context,
  43. ULONG Timeout
  44. );
  45. VOID
  46. AbortSend(
  47. IRDA_HANDLE Handle
  48. );
  49. VOID
  50. AccessUartState(
  51. IRDA_HANDLE Handle,
  52. PIRP Irp,
  53. CONNECTION_CALLBACK Callback,
  54. PVOID Context
  55. );
  56. NTSTATUS
  57. QueueControlInfo(
  58. IRDA_HANDLE Handle,
  59. UCHAR PI,
  60. UCHAR PL,
  61. PUCHAR PV
  62. );
  63. #if 0
  64. NTSTATUS
  65. IrdaDiscoverDevices(
  66. PDEVICELIST pDevList,
  67. PULONG pDevListLen
  68. );
  69. NTSTATUS
  70. IrdaIASStringQuery(
  71. ULONG DeviceID,
  72. PSTR ClassName,
  73. PSTR AttributeName,
  74. PWSTR *ReturnString
  75. );
  76. NTSTATUS
  77. IrdaIASIntegerQuery(
  78. ULONG DeviceID,
  79. PSTR ClassName,
  80. PSTR AttributeName,
  81. LONG *ReturnValue
  82. );
  83. NTSTATUS
  84. IrdaIASStringSet(
  85. HANDLE AddressHandle,
  86. PSTR ClassName,
  87. PSTR AttributeName,
  88. PSTR StringToSet
  89. );
  90. #endif
  91. NTSTATUS
  92. IndicateReceiveBufferSpaceAvailible(
  93. IRDA_HANDLE Handle
  94. );
  95. #endif