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.

101 lines
2.7 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/Q931/VCS/protocol.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1996 Intel Corporation.
  12. *
  13. * $Revision: 1.3 $
  14. * $Date: Apr 25 1996 21:21:48 $
  15. * $Author: plantz $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. * Line Protocol Definitions.
  22. *
  23. * Notes:
  24. *
  25. ***************************************************************************/
  26. #ifndef PROTOCOL_H
  27. #define PROTOCOL_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #define TYPE_Q931_SETUP 1
  32. #define TYPE_Q931_CONNECT 2
  33. #define TYPE_Q931_RELEASE_COMPLETE 3
  34. #define TYPE_Q931_ALERTING 4
  35. // and more later....
  36. #define Q931_PROTOCOL ((WORD)0x1)
  37. typedef struct
  38. {
  39. WORD wProtocol; // identifies Q931 protocol.
  40. WORD wType; // defined above.
  41. } MSG_Q931, *PMSG_Q931;
  42. typedef struct
  43. {
  44. WORD wProtocol; // identifies Q931 protocol.
  45. WORD wType; // defined above.
  46. HQ931CALL hCallID;
  47. ADDR CallerAddr; // needed because call may be made from gatekeeper.
  48. ADDR CalleeAddr; // needed because call may be made to gatekeeper.
  49. WORD wConferenceID;
  50. WORD wGoal;
  51. H323USERINFO H323UserInfo;
  52. char H323UserData[0];
  53. } MSG_Q931_SETUP, *PMSG_Q931_SETUP;
  54. typedef struct
  55. {
  56. WORD wProtocol; // identifies Q931 protocol.
  57. WORD wType; // defined above.
  58. HQ931CALL hCallID;
  59. WORD wConferenceID;
  60. ADDR H245Addr; // address returned by callee.
  61. H323USERINFO H323UserInfo;
  62. char H323UserData[0];
  63. } MSG_Q931_CONNECT, *PMSG_Q931_CONNECT;
  64. typedef struct
  65. {
  66. WORD wProtocol; // identifies Q931 protocol.
  67. WORD wType; // defined above.
  68. HQ931CALL hCallID;
  69. WORD wConferenceID; // I think this should be passed from the user...
  70. BYTE bReason; // defined above.
  71. ADDR AlternateAddr; // alternative address to use.
  72. H323USERINFO H323UserInfo;
  73. char H323UserData[0];
  74. } MSG_Q931_RELEASE_COMPLETE, *PMSG_Q931_RELEASE_COMPLETE;
  75. typedef struct
  76. {
  77. WORD wProtocol; // identifies Q931 protocol.
  78. WORD wType; // defined above.
  79. HQ931CALL hCallID;
  80. } MSG_Q931_ALERTING, *PMSG_Q931_ALERTING;
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84. #endif PROTOCOL_H