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.

185 lines
5.4 KiB

  1. /*
  2. (C) Copyright 1998
  3. All rights reserved.
  4. Portions of this software are:
  5. (C) Copyright 1995 TriplePoint, Inc. -- http://www.TriplePoint.com
  6. License to use this software is granted under the terms outlined in
  7. the TriplePoint Software Services Agreement.
  8. (C) Copyright 1992 Microsoft Corp. -- http://www.Microsoft.com
  9. License to use this software is granted under the terms outlined in
  10. the Microsoft Windows Device Driver Development Kit.
  11. @doc INTERNAL CallMgr CallMgr_h
  12. @module CallMgr.h |
  13. This module defines the interface to the <t CALL_MANAGER_OBJECT>.
  14. @head3 Contents |
  15. @index class,mfunc,func,msg,mdata,struct,enum | CallMgr_h
  16. @end
  17. */
  18. #ifndef _CALLMGR_H
  19. #define _CALLMGR_H
  20. #define CALL_MANAGER_OBJECT_TYPE ((ULONG)'C')+\
  21. ((ULONG)'M'<<8)+\
  22. ((ULONG)'G'<<16)+\
  23. ((ULONG)'R'<<24)
  24. VOID CompleteCmOpenAf(
  25. IN PMINIPORT_ADAPTER_OBJECT pAdapter,
  26. IN NDIS_STATUS Status
  27. );
  28. NDIS_STATUS ProtocolCmOpenAf(
  29. IN NDIS_HANDLE CallMgrBindingContext,
  30. IN PCO_ADDRESS_FAMILY AddressFamily,
  31. IN NDIS_HANDLE NdisAfHandle,
  32. OUT PNDIS_HANDLE CallMgrAfContext
  33. );
  34. VOID CompleteCmCloseAf(
  35. IN PMINIPORT_ADAPTER_OBJECT pAdapter,
  36. IN NDIS_STATUS Status
  37. );
  38. NDIS_STATUS ProtocolCmCloseAf(
  39. IN NDIS_HANDLE CallMgrAfContext
  40. );
  41. VOID CompleteCmRegisterSap(
  42. IN PBCHANNEL_OBJECT pBChannel,
  43. IN NDIS_STATUS Status
  44. );
  45. NDIS_STATUS ProtocolCmRegisterSap(
  46. IN NDIS_HANDLE CallMgrAfContext ,
  47. IN PCO_SAP Sap,
  48. IN NDIS_HANDLE NdisSapHandle,
  49. OUT PNDIS_HANDLE CallMgrSapContext
  50. );
  51. VOID CompleteCmDeregisterSap(
  52. IN PBCHANNEL_OBJECT pBChannel,
  53. IN NDIS_STATUS Status
  54. );
  55. NDIS_STATUS ProtocolCmDeregisterSap(
  56. IN NDIS_HANDLE CallMgrSapContext
  57. );
  58. NDIS_STATUS ProtocolCoCreateVc(
  59. IN PMINIPORT_ADAPTER_OBJECT pAdapter,
  60. IN NDIS_HANDLE NdisVcHandle,
  61. OUT PNDIS_HANDLE ppBChannel
  62. );
  63. NDIS_STATUS ProtocolCoDeleteVc(
  64. OUT PBCHANNEL_OBJECT pBChannel
  65. );
  66. VOID CompleteCmMakeCall(
  67. IN PBCHANNEL_OBJECT pBChannel,
  68. IN NDIS_STATUS Status
  69. );
  70. NDIS_STATUS ProtocolCmMakeCall(
  71. IN NDIS_HANDLE CallMgrVcContext,
  72. IN OUT PCO_CALL_PARAMETERS CallParameters,
  73. IN NDIS_HANDLE NdisPartyHandle,
  74. OUT PNDIS_HANDLE CallMgrPartyContext
  75. );
  76. VOID CompleteCmCloseCall(
  77. IN PBCHANNEL_OBJECT pBChannel,
  78. IN NDIS_STATUS Status
  79. );
  80. NDIS_STATUS ProtocolCmCloseCall(
  81. IN NDIS_HANDLE CallMgrVcContext,
  82. IN NDIS_HANDLE CallMgrPartyContext,
  83. IN PVOID CloseData,
  84. IN UINT Size
  85. );
  86. VOID ProtocolCmIncomingCallComplete(
  87. IN NDIS_STATUS Status,
  88. IN NDIS_HANDLE CallMgrVcContext,
  89. IN PCO_CALL_PARAMETERS CallParameters
  90. );
  91. VOID ProtocolCmActivateVcComplete(
  92. IN NDIS_STATUS Status,
  93. IN NDIS_HANDLE CallMgrVcContext,
  94. IN PCO_CALL_PARAMETERS CallParameters
  95. );
  96. VOID ProtocolCmDeactivateVcComplete(
  97. IN NDIS_STATUS Status,
  98. IN NDIS_HANDLE CallMgrVcContext
  99. );
  100. NDIS_STATUS MiniportCoActivateVc(
  101. IN PBCHANNEL_OBJECT pBChannel,
  102. IN OUT PCO_CALL_PARAMETERS pCallParameters
  103. );
  104. NDIS_STATUS MiniportCoDeactivateVc(
  105. IN PBCHANNEL_OBJECT pBChannel
  106. );
  107. NDIS_STATUS ProtocolCmModifyCallQoS(
  108. IN NDIS_HANDLE CallMgrVcContext,
  109. IN PCO_CALL_PARAMETERS CallParameters
  110. );
  111. NDIS_STATUS ProtocolCoRequest(
  112. IN NDIS_HANDLE ProtocolAfContext,
  113. IN NDIS_HANDLE ProtocolVcContext OPTIONAL,
  114. IN NDIS_HANDLE ProtocolPartyContext OPTIONAL,
  115. IN OUT PNDIS_REQUEST NdisRequest
  116. );
  117. VOID ProtocolCoRequestComplete(
  118. IN NDIS_STATUS Status,
  119. IN NDIS_HANDLE ProtocolAfContext,
  120. IN NDIS_HANDLE ProtocolVcContext OPTIONAL,
  121. IN NDIS_HANDLE ProtocolPartyContext OPTIONAL,
  122. IN PNDIS_REQUEST NdisRequest
  123. );
  124. PCO_CALL_PARAMETERS AllocateIncomingCallParameters(
  125. IN PBCHANNEL_OBJECT pBChannel
  126. );
  127. NDIS_STATUS SetupIncomingCall(
  128. IN PMINIPORT_ADAPTER_OBJECT pAdapter,
  129. IN PBCHANNEL_OBJECT * ppBChannel
  130. );
  131. VOID InitiateCallTeardown(
  132. IN PMINIPORT_ADAPTER_OBJECT pAdapter,
  133. IN PBCHANNEL_OBJECT pBChannel
  134. );
  135. VOID CallMgrTimerHandler(
  136. IN PVOID SystemSpecific1,
  137. IN PBCHANNEL_OBJECT pBChannel,
  138. IN PVOID SystemSpecific2,
  139. IN PVOID SystemSpecific3
  140. );
  141. #endif // _CALLMGR_H