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.

113 lines
4.6 KiB

  1. /***********************************************************************
  2. * *
  3. * Filename: FSMEXPOR.H *
  4. * Module: H245 SubSystem *
  5. * *
  6. ***********************************************************************
  7. * INTEL Corporation Proprietary Information *
  8. * *
  9. * This listing is supplied under the terms of a license agreement *
  10. * with INTEL Corporation and may not be copied nor disclosed except *
  11. * in accordance with the terms of that agreement. *
  12. * *
  13. * Copyright (c) 1996 Intel Corporation. All rights reserved. *
  14. ***********************************************************************
  15. * *
  16. * $Workfile: FSMEXPOR.H $
  17. * $Revision: 1.6 $
  18. * $Modtime: 09 Dec 1996 13:40:40 $
  19. * $Log: S:/STURGEON/SRC/H245/INCLUDE/VCS/FSMEXPOR.H_v $
  20. *
  21. * Rev 1.6 09 Dec 1996 13:40:44 EHOWARDX
  22. * Updated copyright notice.
  23. *
  24. * Rev 1.5 19 Jul 1996 12:02:54 EHOWARDX
  25. * Eliminated event definitions. FSM functions now use same events as API,
  26. * which are defined in H245API.H.
  27. *
  28. * Rev 1.4 30 May 1996 23:38:14 EHOWARDX
  29. * Cleanup.
  30. *
  31. * Rev 1.3 29 May 1996 15:21:26 EHOWARDX
  32. * Change to use HRESULT.
  33. *
  34. * Rev 1.2 28 May 1996 14:09:52 EHOWARDX
  35. * Tel Aviv update.
  36. *
  37. ***********************************************************************/
  38. #include "h245asn1.h"
  39. typedef MltmdSystmCntrlMssg PDU_t;
  40. /* FSM initialization */
  41. HRESULT
  42. Fsm_init (struct InstanceStruct *pInstance);
  43. /* FSM shutdown */
  44. HRESULT
  45. Fsm_shutdown(struct InstanceStruct *pInstance);
  46. /* Process PDU received from remote peer */
  47. HRESULT
  48. FsmIncoming (struct InstanceStruct *pInstance, PDU_t *pPdu);
  49. /* Process PDU from H.245 client */
  50. HRESULT
  51. FsmOutgoing (struct InstanceStruct *pInstance, PDU_t *pPdu, DWORD_PTR dwTransId);
  52. /* send a confirm to API */
  53. HRESULT
  54. H245FsmConfirm (PDU_t *pPdu,
  55. DWORD dwEvent,
  56. struct InstanceStruct *pInstance,
  57. DWORD_PTR dwTransId,
  58. HRESULT lError);
  59. /* send an indication to API */
  60. HRESULT
  61. H245FsmIndication (PDU_t *pPdu,
  62. DWORD dwEvent,
  63. struct InstanceStruct *pInstance,
  64. DWORD_PTR dwTransId,
  65. HRESULT lError);
  66. /*********************************/
  67. /* Errors passed up to the API */
  68. /*********************************/
  69. /* Session initialization indications */
  70. #define SESSION_INIT 2101 /* after first term cap exchange */
  71. #define SESSION_FAILED 2102 /* 1st Term caps failed */
  72. /* finite state machine is successful */
  73. #define FSM_OK 0
  74. /* define one reject for all requests */
  75. #define REJECT 2100
  76. /* define one timer expiry error for all signallling entities */
  77. #define TIMER_EXPIRY 2200
  78. /* master slave failed */
  79. #define MS_FAILED 2105
  80. /* open unidirectional/bidirectional errors */
  81. #define ERROR_A_INAPPROPRIATE 2106 /* inappropriate message */
  82. #define ERROR_B_INAPPROPRIATE 2107 /* inappropriate message */
  83. #define ERROR_C_INAPPROPRIATE 2108 /* inappropriate message */
  84. #define ERROR_D_TIMEOUT 2109 /* timeout */
  85. #define ERROR_E_INAPPROPRIATE 2110 /* inappropriate message */
  86. #define ERROR_F_TIMEOUT 2111 /* Timer expiry at incoming BLCSE */
  87. extern unsigned int uN100; // Master Slave Determination
  88. extern unsigned int uT101; // Capability Exchange
  89. extern unsigned int uT102; // Maintenance Loop
  90. extern unsigned int uT103; // Logical Channel Signalling
  91. extern unsigned int uT104; // H.223 Multiplex Table
  92. extern unsigned int uT105; // Round Trip Delay
  93. extern unsigned int uT106; // Master Slave Determination
  94. extern unsigned int uT107; // Request Multiplex Entry
  95. extern unsigned int uT108; // Send Logical Channel
  96. extern unsigned int uT109; // Mode Request
  97.