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