|
|
1.1 ! root 1: -- VTPM: encode/decode BKQ/BKR PDU ! 2: ! 3: -- $Header: /f/osi/vt/RCS/bk_content.py,v 7.0 89/11/23 22:31:28 mrose Rel $ ! 4: -- ! 5: -- ! 6: -- $Log: bk_content.py,v $ ! 7: -- Revision 7.0 89/11/23 22:31:28 mrose ! 8: -- Release 6.0 ! 9: -- ! 10: ! 11: -- ! 12: -- NOTICE ! 13: -- ! 14: -- Acquisition, use, and distribution of this module and related ! 15: -- materials are subject to the restrictions of a license agreement. ! 16: -- Consult the Preface in the User's Manual for the full terms of ! 17: -- this agreement. ! 18: -- ! 19: -- ! 20: ! 21: ! 22: VT DEFINITIONS ::= ! 23: %{ ! 24: ! 25: #include "vtpm.h" ! 26: #include "sector5.h" ! 27: #include <stdio.h> ! 28: ! 29: #undef PEPYPARM ! 30: #define PEPYPARM int * ! 31: %} ! 32: ! 33: BEGIN ! 34: ! 35: SECTIONS build unbuild none ! 36: ! 37: ---------------------------------------------------------------------------- ! 38: ! 39: BKQ-pdu ::= CHOICE <<1>> ! 40: ! 41: { ! 42: bkqpdu[8] IMPLICIT BKQcontent [[p (PEPYPARM)parm]] ! 43: } ! 44: ! 45: BKR-pdu ! 46: ::= CHOICE <<1>> ! 47: { ! 48: bkrpdu[9] IMPLICIT BKRcontent [[p (PEPYPARM)parm]] ! 49: } ! 50: ! 51: ExplicitPointer ! 52: %{ ! 53: EXPL_PTR *arg = (EXPL_PTR *)parm; ! 54: %} ! 55: ::= SEQUENCE ! 56: { ! 57: x [0] IMPLICIT INTEGER ! 58: [[i arg->xval ]] ! 59: OPTIONAL <<arg->xval != NULLCOORD>>, ! 60: y [1] IMPLICIT INTEGER ! 61: [[i arg->yval ]] ! 62: OPTIONAL <<arg->yval != NULLCOORD>>, ! 63: z [2] IMPLICIT INTEGER ! 64: [[i arg->zval ]] ! 65: OPTIONAL <<arg->zval != NULLCOORD>> ! 66: } ! 67: ! 68: -------------------------------------------------------------------------------- ! 69: ! 70: BKQcontent ! 71: %{ ! 72: BRcnt *arg = (BRcnt *)parm; ! 73: %} ! 74: ::= SEQUENCE ! 75: { ! 76: token INTEGER [[i arg->BKQcont.token_val]] ! 77: { ! 78: initiator(0), ! 79: acceptor (1), ! 80: accChoice(2) ! 81: } ! 82: OPTIONAL <<arg->BKQcont.token_val != NOBKTOK >>, ! 83: ExplicitPointer [[p (PEPYPARM)&(arg->BKQcont.ExplPtr)]] ! 84: } ! 85: ! 86: ! 87: -------------------------------------------------------------------------------- ! 88: ! 89: BKRcontent ! 90: %{ ! 91: BRcnt *arg = (BRcnt *)parm; ! 92: %} ! 93: ::= SEQUENCE ! 94: { ! 95: token INTEGER [[i arg->BKRcont.token_val]] ! 96: { ! 97: initiator(0), ! 98: acceptor (1) ! 99: } ! 100: OPTIONAL <<arg->BKRcont.token_val != NOBKTOK >>, ! 101: ! 102: ExplicitPointer [[p (PEPYPARM)&(arg->BKRcont.ExplPtr)]] ! 103: } ! 104: ! 105: ! 106: -------------------------------------------------------------------------------- ! 107: -------------------------------------------------------------------------------- ! 108: ! 109: END ! 110:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.