#include <string.h> and/or #include <stdio.h> not needed.
[obnox/wireshark/wip.git] / asn1 / h450-ros / Remote-Operations-Apdus.asn
1 -- Remote-Operations-Apdus.asn
2 --
3 -- Taken from ITU ASN.1 database
4 -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/Remote-Operations-Apdus.asn
5 --
6 -- $Id$
7 --
8
9 -- Module Remote-Operations-Apdus (H.450.1:02/1998)
10 Remote-Operations-Apdus {itu-t recommendation h 450 1 version1(0)
11   remote-operations-apdus(11)} DEFINITIONS AUTOMATIC TAGS ::=
12 BEGIN
13
14 -- exports everything
15 IMPORTS
16   OPERATION, ERROR
17     FROM Remote-Operations-Information-Objects {joint-iso-itu-t
18       remote-operations(4) informationObjects(5) version1(0)};
19
20 ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::=
21   CHOICE {
22   invoke        [1]  Invoke{{InvokeIdSet}, {Invokable}},
23   returnResult  [2]  ReturnResult{{Returnable}},
24   returnError   [3]  ReturnError{{Errors  {{Returnable}}}},
25   reject        [4]  Reject
26 }
27 (CONSTRAINED BY { -- must conform to the above definition --} !
28  RejectProblem:general-unrecognizedPDU)
29
30 Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE {
31   invokeId
32     InvokeId(InvokeIdSet)
33       (CONSTRAINED BY {-- must be unambiguous -- } !
34        RejectProblem:invoke-duplicateInvocation),
35   linkedId
36     InvokeId
37       (CONSTRAINED BY {-- must identify an outstanding operation -- } !
38        RejectProblem:invoke-unrecognizedLinkedId)
39       (CONSTRAINED BY {-- which has one or more linked operations-- } !
40        RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL,
41   opcode
42     OPERATION.&operationCode
43       ({Operations} !RejectProblem:invoke-unrecognizedOperation),
44   argument
45     OPERATION.&ArgumentType
46       ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL
47 }
48 (CONSTRAINED BY { -- must conform to the above definition --} !
49  RejectProblem:general-mistypedPDU)
50
51 --(
52 --      WITH COMPONENTS
53 --      { 
54 --              ..., 
55 --              linkedId        ABSENT
56 --      }
57 --      WITH COMPONENTS {
58 --              ..., 
59 --              linkedId        PRESENT, 
60 --              opcode  (CONSTRAINED BY { 
61 -- must be in the &Linked field of the associated operation 
62 -- } ! RejectProblem : invoke-unexpectedLinkedOperation) 
63 --      }
64 --)
65 ReturnResult{OPERATION:Operations} ::= SEQUENCE {
66   invokeId
67     InvokeId
68       (CONSTRAINED BY {-- must be that for an outstanding operation -- } !
69        RejectProblem:returnResult-unrecognizedInvocation)
70       (CONSTRAINED BY {-- which returns a result -- } !
71        RejectProblem:returnResult-resultResponseUnexpected),
72   result
73     SEQUENCE {opcode
74                 OPERATION.&operationCode({Operations})
75                   (CONSTRAINED BY {-- identified by invokeId -- } !
76                    RejectProblem:returnResult-unrecognizedInvocation),
77               result
78                 OPERATION.&ResultType
79                   ({Operations}{@.opcode} !
80                    RejectProblem:returnResult-mistypedResult)} OPTIONAL
81 }
82 (CONSTRAINED BY { -- must conform to the above definition --} !
83  RejectProblem:general-mistypedPDU)
84
85 ReturnError{ERROR:Errors} ::= SEQUENCE {
86   invokeId
87     InvokeId
88       (CONSTRAINED BY {-- must be that for an outstanding operation -- } !
89        RejectProblem:returnError-unrecognizedInvocation)
90       (CONSTRAINED BY {-- which returns an error -- } !
91        RejectProblem:returnError-errorResponseUnexpected),
92   errcode
93     ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError)
94       (CONSTRAINED BY {--must be in the &Errors field of the associated operation -- 
95          } !RejectProblem:returnError-unexpectedError),
96   parameter
97     ERROR.&ParameterType
98       ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter)
99       OPTIONAL
100 }
101 (CONSTRAINED BY { -- must conform to the above definition --} !
102  RejectProblem:general-mistypedPDU)
103
104 Reject ::= SEQUENCE {
105   invokeId  InvokeId,
106   problem
107     CHOICE {general       GeneralProblem,
108             invoke        InvokeProblem,
109             returnResult  ReturnResultProblem,
110             returnError   ReturnErrorProblem}
111 }
112 (CONSTRAINED BY { -- must conform to the above definition --} !
113  RejectProblem:general-mistypedPDU)
114
115 GeneralProblem ::= INTEGER {
116   unrecognizedComponent(0), mistypedComponent(1), badlyStructuredComponent(2)
117 }
118
119 InvokeProblem ::= INTEGER {
120   duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2),
121   resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5),
122   linkedResponseUnexpected(6), unexpectedLinkedOperation(7)}
123
124 ReturnResultProblem ::= INTEGER {
125   unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2)
126 }
127
128 ReturnErrorProblem ::= INTEGER {
129   unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2),
130   unexpectedError(3), mistypedParameter(4)}
131
132 RejectProblem ::= INTEGER {
133   general-unrecognizedPDU(0), general-mistypedPDU(1),
134   general-badlyStructuredPDU(2), invoke-duplicateInvocation(10),
135   invoke-unrecognizedOperation(11), invoke-mistypedArgument(12),
136   invoke-resourceLimitation(13), invoke-releaseInProgress(14),
137   invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16),
138   invoke-unexpectedLinkedOperation(17),
139   returnResult-unrecognizedInvocation(20),
140   returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22),
141   returnError-unrecognizedInvocation(30),
142   returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32),
143   returnError-unexpectedError(33), returnError-mistypedParameter(34)}
144
145 InvokeId ::= INTEGER
146
147 Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors}
148
149 END -- end of Remote-Operations-Apdus definitions
150
151 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
152