Renamed ASN.1 compiler to yaz-comp (used to be yc.tcl).
[yaz-moved-to-github.git] / include / yaz / z-diag1.h
1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H DiagnosticFormatDiag1 */
3
4 #ifndef z_diag1_H
5 #define z_diag1_H
6
7 #include <yaz/odr.h>
8 #include <yaz/z-core.h>
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 typedef struct Z_DiagnosticFormat_s Z_DiagnosticFormat_s;
14 YAZ_EXPORT int z_DiagnosticFormat_s (ODR o, Z_DiagnosticFormat_s **p, int opt, const char *name);
15
16 typedef struct Z_DiagnosticFormat Z_DiagnosticFormat;
17 YAZ_EXPORT int z_DiagnosticFormat (ODR o, Z_DiagnosticFormat **p, int opt, const char *name);
18
19 typedef struct Z_TooMany Z_TooMany;
20 YAZ_EXPORT int z_TooMany (ODR o, Z_TooMany **p, int opt, const char *name);
21
22 typedef struct Z_BadSpec Z_BadSpec;
23 YAZ_EXPORT int z_BadSpec (ODR o, Z_BadSpec **p, int opt, const char *name);
24
25 typedef struct Z_DbUnavail_0 Z_DbUnavail_0;
26 YAZ_EXPORT int z_DbUnavail_0 (ODR o, Z_DbUnavail_0 **p, int opt, const char *name);
27
28 typedef struct Z_DbUnavail Z_DbUnavail;
29 YAZ_EXPORT int z_DbUnavail (ODR o, Z_DbUnavail **p, int opt, const char *name);
30
31 typedef struct Z_Attribute Z_Attribute;
32 YAZ_EXPORT int z_Attribute (ODR o, Z_Attribute **p, int opt, const char *name);
33
34 typedef struct Z_AttCombo Z_AttCombo;
35 YAZ_EXPORT int z_AttCombo (ODR o, Z_AttCombo **p, int opt, const char *name);
36
37 typedef struct Z_DiagTerm Z_DiagTerm;
38 YAZ_EXPORT int z_DiagTerm (ODR o, Z_DiagTerm **p, int opt, const char *name);
39
40 typedef struct Z_Proximity Z_Proximity;
41 YAZ_EXPORT int z_Proximity (ODR o, Z_Proximity **p, int opt, const char *name);
42
43 typedef struct Z_AttrListList Z_AttrListList;
44 YAZ_EXPORT int z_AttrListList (ODR o, Z_AttrListList **p, int opt, const char *name);
45
46 typedef struct Z_Scan Z_Scan;
47 YAZ_EXPORT int z_Scan (ODR o, Z_Scan **p, int opt, const char *name);
48
49 typedef struct Z_StringList Z_StringList;
50 YAZ_EXPORT int z_StringList (ODR o, Z_StringList **p, int opt, const char *name);
51
52 typedef struct Z_Sort Z_Sort;
53 YAZ_EXPORT int z_Sort (ODR o, Z_Sort **p, int opt, const char *name);
54
55 typedef struct Z_Segmentation Z_Segmentation;
56 YAZ_EXPORT int z_Segmentation (ODR o, Z_Segmentation **p, int opt, const char *name);
57
58 typedef struct Z_ExtServices Z_ExtServices;
59 YAZ_EXPORT int z_ExtServices (ODR o, Z_ExtServices **p, int opt, const char *name);
60
61 typedef struct Z_OidList Z_OidList;
62 YAZ_EXPORT int z_OidList (ODR o, Z_OidList **p, int opt, const char *name);
63
64 typedef struct Z_AltOidList Z_AltOidList;
65 YAZ_EXPORT int z_AltOidList (ODR o, Z_AltOidList **p, int opt, const char *name);
66
67 typedef struct Z_AccessCtrl Z_AccessCtrl;
68 YAZ_EXPORT int z_AccessCtrl (ODR o, Z_AccessCtrl **p, int opt, const char *name);
69
70 typedef struct Z_RecordSyntax Z_RecordSyntax;
71 YAZ_EXPORT int z_RecordSyntax (ODR o, Z_RecordSyntax **p, int opt, const char *name);
72
73 typedef struct Z_DiagFormat Z_DiagFormat;
74 YAZ_EXPORT int z_DiagFormat (ODR o, Z_DiagFormat **p, int opt, const char *name);
75 #ifdef __cplusplus
76 }
77 #endif
78 #ifdef __cplusplus
79 extern "C" {
80 #endif
81 struct Z_DiagnosticFormat_s {
82         int which;
83         union {
84                 Z_DefaultDiagFormat *defaultDiagRec;
85                 Z_DiagFormat *explicitDiagnostic;
86 #define Z_DiagnosticFormat_s_defaultDiagRec 1
87 #define Z_DiagnosticFormat_s_explicitDiagnostic 2
88         } u; /* OPT */
89         Z_InternationalString *message; /* OPT */
90 };
91
92 struct Z_DiagnosticFormat {
93         int num;
94         Z_DiagnosticFormat_s **elements;
95 };
96
97 struct Z_TooMany {
98 #define Z_TooMany_argumentWords 1
99 #define Z_TooMany_truncatedWords 2
100 #define Z_TooMany_booleanOperators 3
101 #define Z_TooMany_incompleteSubfields 4
102 #define Z_TooMany_characters 5
103 #define Z_TooMany_recordsRetrieved 6
104 #define Z_TooMany_dataBasesSpecified 7
105 #define Z_TooMany_resultSetsCreated 8
106 #define Z_TooMany_indexTermsProcessed 9
107         int *tooManyWhat;
108         int *max; /* OPT */
109 };
110
111 struct Z_BadSpec {
112         Z_Specification *spec;
113         Z_DatabaseName *db; /* OPT */
114         int num_goodOnes;
115         Z_Specification **goodOnes; /* OPT */
116 };
117
118 struct Z_DbUnavail_0 {
119 #define Z_DbUnavail_0_doesNotExist 0
120 #define Z_DbUnavail_0_existsButUnavail 1
121 #define Z_DbUnavail_0_locked 2
122 #define Z_DbUnavail_0_accessDenied 3
123         int *reasonCode; /* OPT */
124         Z_InternationalString *message; /* OPT */
125 };
126
127 struct Z_DbUnavail {
128         Z_DatabaseName *db;
129         Z_DbUnavail_0 *why;
130 };
131
132 struct Z_Attribute {
133         Odr_oid *id;
134         int *type; /* OPT */
135         int *value; /* OPT */
136         Z_Term *term; /* OPT */
137 };
138
139 struct Z_AttCombo {
140         Z_AttributeList *unsupportedCombination;
141         int num_recommendedAlternatives;
142         Z_AttributeList **recommendedAlternatives; /* OPT */
143 };
144
145 struct Z_DiagTerm {
146 #define Z_DiagTerm_codedValue 1
147 #define Z_DiagTerm_unparsable 2
148 #define Z_DiagTerm_tooShort 3
149 #define Z_DiagTerm_type 4
150         int *problem; /* OPT */
151         Z_Term *term;
152 };
153
154 struct Z_Proximity {
155         int which;
156         union {
157                 Odr_null *resultSets;
158                 Z_InternationalString *badSet;
159                 int *relation;
160                 int *unit;
161                 int *distance;
162                 Z_AttributeList *attributes;
163                 Odr_null *ordered;
164                 Odr_null *exclusion;
165 #define Z_Proximity_resultSets 1
166 #define Z_Proximity_badSet 2
167 #define Z_Proximity_relation 3
168 #define Z_Proximity_unit 4
169 #define Z_Proximity_distance 5
170 #define Z_Proximity_attributes 6
171 #define Z_Proximity_ordered 7
172 #define Z_Proximity_exclusion 8
173         } u;
174 };
175
176 struct Z_AttrListList {
177         int num;
178         Z_AttributeList **elements;
179 };
180
181 struct Z_Scan {
182         int which;
183         union {
184                 Odr_null *nonZeroStepSize;
185                 Odr_null *specifiedStepSize;
186                 Odr_null *termList1;
187                 Z_AttrListList *termList2;
188 #define Z_Scan_mustBeOne 1
189 #define Z_Scan_mustBePositive 2
190 #define Z_Scan_mustBeNonNegative 3
191 #define Z_Scan_other 4
192                 int *posInResponse;
193                 Odr_null *resources;
194                 Odr_null *endOfList;
195 #define Z_Scan_nonZeroStepSize 1
196 #define Z_Scan_specifiedStepSize 2
197 #define Z_Scan_termList1 3
198 #define Z_Scan_termList2 4
199 #define Z_Scan_posInResponse 5
200 #define Z_Scan_resources 6
201 #define Z_Scan_endOfList 7
202         } u;
203 };
204
205 struct Z_StringList {
206         int num;
207         Z_InternationalString **elements;
208 };
209
210 struct Z_Sort {
211         int which;
212         union {
213                 Odr_null *sequence;
214                 Odr_null *noRsName;
215                 int *tooMany;
216                 Odr_null *incompatible;
217                 Odr_null *generic;
218                 Odr_null *dbSpecific;
219                 Z_SortElement *sortElement;
220 #define Z_Sort_tooMany 1
221 #define Z_Sort_duplicate 2
222                 int *key;
223                 Odr_null *action;
224 #define Z_Sort_relation 1
225 #define Z_Sort_case 2
226 #define Z_Sort_action 3
227 #define Z_Sort_sort 4
228                 int *illegal;
229                 Z_StringList *inputTooLarge;
230                 Odr_null *aggregateTooLarge;
231 #define Z_SortD_sequence 1
232 #define Z_SortD_noRsName 2
233 #define Z_SortD_tooMany 3
234 #define Z_SortD_incompatible 4
235 #define Z_SortD_generic 5
236 #define Z_SortD_dbSpecific 6
237 #define Z_SortD_sortElement 7
238 #define Z_SortD_key 8
239 #define Z_SortD_action 9
240 #define Z_SortD_illegal 10
241 #define Z_SortD_inputTooLarge 11
242 #define Z_SortD_aggregateTooLarge 12
243         } u;
244 };
245
246 struct Z_Segmentation {
247         int which;
248         union {
249                 Odr_null *segmentCount;
250                 int *segmentSize;
251 #define Z_Segmentation_segmentCount 1
252 #define Z_Segmentation_segmentSize 2
253         } u;
254 };
255
256 struct Z_ExtServices {
257         int which;
258         union {
259 #define Z_ExtServices_nameInUse 1
260 #define Z_ExtServices_noSuchName 2
261 #define Z_ExtServices_quota 3
262 #define Z_ExtServices_type 4
263                 int *req;
264 #define Z_ExtServices_id 1
265 #define Z_ExtServices_modifyDelete 2
266                 int *permission;
267 #define Z_ExtServices_failed 1
268 #define Z_ExtServices_service 2
269 #define Z_ExtServices_parameters 3
270                 int *immediate;
271 #define Z_ExtServices_req 1
272 #define Z_ExtServices_permission 2
273 #define Z_ExtServices_immediate 3
274         } u;
275 };
276
277 struct Z_OidList {
278         int num;
279         Odr_oid **elements;
280 };
281
282 struct Z_AltOidList {
283         int num;
284         Odr_oid **elements;
285 };
286
287 struct Z_AccessCtrl {
288         int which;
289         union {
290                 Odr_null *noUser;
291                 Odr_null *refused;
292                 Odr_null *simple;
293                 Z_OidList *oid;
294                 Z_AltOidList *alternative;
295                 Odr_null *pwdInv;
296                 Odr_null *pwdExp;
297 #define Z_AccessCtrl_noUser 1
298 #define Z_AccessCtrl_refused 2
299 #define Z_AccessCtrl_simple 3
300 #define Z_AccessCtrl_oid 4
301 #define Z_AccessCtrl_alternative 5
302 #define Z_AccessCtrl_pwdInv 6
303 #define Z_AccessCtrl_pwdExp 7
304         } u;
305 };
306
307 struct Z_RecordSyntax {
308         Odr_oid *unsupportedSyntax;
309         int num_suggestedAlternatives;
310         Odr_oid **suggestedAlternatives; /* OPT */
311 };
312
313 struct Z_DiagFormat {
314         int which;
315         union {
316                 Z_TooMany *tooMany;
317                 Z_BadSpec *badSpec;
318                 Z_DbUnavail *dbUnavail;
319 #define Z_DiagFormat_and 0
320 #define Z_DiagFormat_or 1
321 #define Z_DiagFormat_and_not 2
322 #define Z_DiagFormat_prox 3
323                 int *unSupOp;
324                 Z_Attribute *attribute;
325                 Z_AttCombo *attCombo;
326                 Z_DiagTerm *term;
327                 Z_Proximity *proximity;
328                 Z_Scan *scan;
329                 Z_Sort *sort;
330                 Z_Segmentation *segmentation;
331                 Z_ExtServices *extServices;
332                 Z_AccessCtrl *accessCtrl;
333                 Z_RecordSyntax *recordSyntax;
334 #define Z_DiagFormat_tooMany 1
335 #define Z_DiagFormat_badSpec 2
336 #define Z_DiagFormat_dbUnavail 3
337 #define Z_DiagFormat_unSupOp 4
338 #define Z_DiagFormat_attribute 5
339 #define Z_DiagFormat_attCombo 6
340 #define Z_DiagFormat_term 7
341 #define Z_DiagFormat_proximity 8
342 #define Z_DiagFormat_scan 9
343 #define Z_DiagFormat_sort 10
344 #define Z_DiagFormat_segmentation 11
345 #define Z_DiagFormat_extServices 12
346 #define Z_DiagFormat_accessCtrl 13
347 #define Z_DiagFormat_recordSyntax 14
348         } u;
349 };
350
351 #ifdef __cplusplus
352 }
353 #endif
354 #endif