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.

165 lines
6.3 KiB

  1. /******************************************************************************
  2. *
  3. * INTEL Corporation Proprietary Information
  4. * Copyright (c) 1994, 1995, 1996 Intel Corporation.
  5. *
  6. * This listing is supplied under the terms of a license agreement
  7. * with INTEL Corporation and may not be used, copied, nor disclosed
  8. * except in accordance with the terms of that agreement.
  9. *
  10. *****************************************************************************/
  11. /******************************************************************************
  12. *
  13. * $Workfile: pdu.x $
  14. * $Revision: 1.7 $
  15. * $Modtime: 27 Aug 1996 16:53:58 $
  16. * $Log: S:/STURGEON/SRC/H245/INCLUDE/VCS/pdu.x_v $
  17. Rev 1.7 28 Aug 1996 11:41:12 EHOWARDX
  18. const changes.
  19. Rev 1.6 15 Aug 1996 14:32:08 EHOWARDX
  20. Added SetupCommModeEntry().
  21. Rev 1.5 08 Aug 1996 16:01:00 EHOWARDX
  22. Changed second argument to pdu_rsp_mstslv_ack from DWORD to WORD.
  23. Rev 1.4 19 Jul 1996 12:03:50 EHOWARDX
  24. Eliminated pdu_cmd_misc().
  25. Rev 1.3 01 Jul 1996 18:07:08 EHOWARDX
  26. Added SetupTransportAddress() prototype.
  27. Rev 1.2 30 May 1996 23:38:38 EHOWARDX
  28. Cleanup.
  29. Rev 1.1 29 May 1996 15:21:56 EHOWARDX
  30. Change to use HRESULT.
  31. Rev 1.0 09 May 1996 21:05:08 EHOWARDX
  32. Initial revision.
  33. *
  34. * Rev 1.12.1.5 09 May 1996 19:38:28 EHOWARDX
  35. * Redesigned locking logic and added new functionality.
  36. *
  37. * Rev 1.12.1.4 25 Apr 1996 17:52:34 EHOWARDX
  38. * Changed wTxPort to dwTxPort in pdu_req_open_logical_channel.
  39. *
  40. * Rev 1.12.1.3 24 Apr 1996 20:57:50 EHOWARDX
  41. * Added new OpenLogicalChannelAck/OpenLogicalChannelReject support.
  42. *
  43. * Rev 1.12.1.2 02 Apr 1996 19:07:04 EHOWARDX
  44. * Changed channels and sequence numbers to WORD.
  45. *
  46. * Rev 1.12.1.1 29 Mar 1996 21:02:36 EHOWARDX
  47. * Oops! Forgot to delete old pdu_req_open_channel definition!
  48. *
  49. * Rev 1.12.1.0 29 Mar 1996 20:57:26 EHOWARDX
  50. * Changed pdu_req_open_channel function prototype.
  51. *
  52. * Rev 1.12 29 Mar 1996 14:56:24 cjutzi
  53. *
  54. * - added pdu_ind_usrinpt
  55. *
  56. * Rev 1.11 12 Mar 1996 15:50:06 cjutzi
  57. *
  58. * - added end session
  59. *
  60. * Rev 1.10 11 Mar 1996 14:04:56 cjutzi
  61. *
  62. * added ind_multiplex_...
  63. *
  64. * Rev 1.9 08 Mar 1996 14:07:16 cjutzi
  65. *
  66. * - added/removed pdu entries for mux table stuff...
  67. *
  68. * Rev 1.8 05 Mar 1996 16:36:12 cjutzi
  69. * - fixed mux stuf
  70. *
  71. * Rev 1.7 05 Mar 1996 09:58:44 cjutzi
  72. *
  73. * - added mux table stufff
  74. *
  75. * Rev 1.6 01 Mar 1996 16:01:44 cjutzi
  76. *
  77. * - misc command
  78. *
  79. * Rev 1.5 23 Feb 1996 12:33:28 EHOWARDX
  80. * Eliminated extra argument from pdu_rsp_mstslv_rej().
  81. *
  82. * Rev 1.4 21 Feb 1996 13:35:30 unknown
  83. * typo correction
  84. *
  85. * Rev 1.3 21 Feb 1996 13:29:44 unknown
  86. * added declaration for pdu_rsp_mstslv_ack
  87. *
  88. * Rev 1.2 15 Feb 1996 10:49:26 cjutzi
  89. *
  90. * - added mux_t and fixed open pdu's bit_mask problem..
  91. *
  92. * Rev 1.1 09 Feb 1996 16:54:32 cjutzi
  93. *
  94. * - added header stuff
  95. *
  96. *****************************************************************************/
  97. HRESULT
  98. SetupTransportAddress ( H245TransportAddress *pOut,
  99. const H245_TRANSPORT_ADDRESS_T *pIn);
  100. HRESULT
  101. SetupCommModeEntry ( CommunicationModeTableEntry *pOut,
  102. const H245_COMM_MODE_ENTRY_T *pIn);
  103. HRESULT
  104. pdu_req_open_channel ( PDU_T * pPdu,
  105. WORD wTxChannel,
  106. DWORD dwTxPort,
  107. const H245_TOTCAP_T * pTxMode,
  108. const H245_MUX_T * pTxMux,
  109. const H245_TOTCAP_T * pRxMode,
  110. const H245_MUX_T * pRxMux,
  111. const H245_ACCESS_T * pSeparateStack);
  112. void free_pdu_req_open_channel ( PDU_T * pPdu, const H245_TOTCAP_T * pTxMode, const H245_TOTCAP_T * pRxMode);
  113. HRESULT
  114. pdu_rsp_open_logical_channel_ack ( PDU_T * pPdu,
  115. WORD wRxChannel,
  116. const H245_MUX_T * pRxMux,
  117. WORD wTxChannel,
  118. const H245_MUX_T * pTxMux, // for H.222/H.225.0 only
  119. DWORD dwTxPort,
  120. const H245_ACCESS_T * pSeparateStack);
  121. HRESULT
  122. pdu_rsp_open_logical_channel_rej ( PDU_T * pPdu,
  123. WORD wRxChannel,
  124. WORD wReason);
  125. HRESULT pdu_cmd_end_session (PDU_T *pPdu, H245_ENDSESSION_T, const H245_NONSTANDARD_PARAMETER_T *);
  126. HRESULT pdu_req_request_close_logical_channel (PDU_T *pPdu, DWORD);
  127. HRESULT pdu_req_close_channel (PDU_T *pPdu, DWORD, DWORD);
  128. HRESULT pdu_req_mstslv (PDU_T *pPdu, BYTE, unsigned);
  129. HRESULT pdu_req_termcap_set (PDU_T *pPdu, WORD);
  130. HRESULT pdu_req_close_logical_channel (PDU_T *pPdu, WORD, DWORD);
  131. HRESULT pdu_req_request_close_channel (PDU_T *pPdu, WORD);
  132. HRESULT pdu_req_send_mux_table(struct InstanceStruct *pInstance, PDU_T *pPdu, H245_MUX_TABLE_T *, WORD, DWORD *);
  133. HRESULT pdu_rsp_termcap_set_ack (PDU_T *pPdu, WORD);
  134. HRESULT pdu_rsp_termcap_set_rej (PDU_T *pPdu, WORD, H245_ACC_REJ_T, WORD);
  135. HRESULT pdu_rsp_close_logical_channel_ack (PDU_T *pPdu, WORD);
  136. HRESULT pdu_rsp_request_channel_close_ack (PDU_T *pPdu, WORD);
  137. HRESULT pdu_rsp_request_channel_close_rej (PDU_T *pPdu, WORD, H245_ACC_REJ_T);
  138. HRESULT pdu_rsp_mstslv_rej (PDU_T *pPdu);
  139. HRESULT pdu_rsp_mstslv_ack (PDU_T *pPdu, WORD);
  140. HRESULT pdu_rsp_mux_table_ack (PDU_T *pPdu, WORD, H245_ACC_REJ_MUX_T, DWORD);
  141. HRESULT pdu_rsp_mux_table_rej (PDU_T *pPdu, WORD, H245_ACC_REJ_MUX_T, DWORD);
  142. HRESULT pdu_ind_open_logical_channel_conf (PDU_T *pPdu, WORD);
  143. HRESULT pdu_ind_misc (PDU_T *pPdu);
  144. HRESULT pdu_ind_usrinpt (PDU_T *pPdu, const H245_NONSTANDARD_PARAMETER_T *, const char *);