1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H DiagnosticFormatDiag1 */
8 #include <yaz/z-core.h>
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);
16 typedef struct Z_DiagnosticFormat Z_DiagnosticFormat;
17 YAZ_EXPORT int z_DiagnosticFormat (ODR o, Z_DiagnosticFormat **p, int opt, const char *name);
19 typedef struct Z_TooMany Z_TooMany;
20 YAZ_EXPORT int z_TooMany (ODR o, Z_TooMany **p, int opt, const char *name);
22 typedef struct Z_BadSpec Z_BadSpec;
23 YAZ_EXPORT int z_BadSpec (ODR o, Z_BadSpec **p, int opt, const char *name);
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);
28 typedef struct Z_DbUnavail Z_DbUnavail;
29 YAZ_EXPORT int z_DbUnavail (ODR o, Z_DbUnavail **p, int opt, const char *name);
31 typedef struct Z_Attribute Z_Attribute;
32 YAZ_EXPORT int z_Attribute (ODR o, Z_Attribute **p, int opt, const char *name);
34 typedef struct Z_AttCombo Z_AttCombo;
35 YAZ_EXPORT int z_AttCombo (ODR o, Z_AttCombo **p, int opt, const char *name);
37 typedef struct Z_DiagTerm Z_DiagTerm;
38 YAZ_EXPORT int z_DiagTerm (ODR o, Z_DiagTerm **p, int opt, const char *name);
40 typedef struct Z_Proximity Z_Proximity;
41 YAZ_EXPORT int z_Proximity (ODR o, Z_Proximity **p, int opt, const char *name);
43 typedef struct Z_AttrListList Z_AttrListList;
44 YAZ_EXPORT int z_AttrListList (ODR o, Z_AttrListList **p, int opt, const char *name);
46 typedef struct Z_Scan Z_Scan;
47 YAZ_EXPORT int z_Scan (ODR o, Z_Scan **p, int opt, const char *name);
49 typedef struct Z_StringList Z_StringList;
50 YAZ_EXPORT int z_StringList (ODR o, Z_StringList **p, int opt, const char *name);
52 typedef struct Z_Sort Z_Sort;
53 YAZ_EXPORT int z_Sort (ODR o, Z_Sort **p, int opt, const char *name);
55 typedef struct Z_Segmentation Z_Segmentation;
56 YAZ_EXPORT int z_Segmentation (ODR o, Z_Segmentation **p, int opt, const char *name);
58 typedef struct Z_ExtServices Z_ExtServices;
59 YAZ_EXPORT int z_ExtServices (ODR o, Z_ExtServices **p, int opt, const char *name);
61 typedef struct Z_OidList Z_OidList;
62 YAZ_EXPORT int z_OidList (ODR o, Z_OidList **p, int opt, const char *name);
64 typedef struct Z_AltOidList Z_AltOidList;
65 YAZ_EXPORT int z_AltOidList (ODR o, Z_AltOidList **p, int opt, const char *name);
67 typedef struct Z_AccessCtrl Z_AccessCtrl;
68 YAZ_EXPORT int z_AccessCtrl (ODR o, Z_AccessCtrl **p, int opt, const char *name);
70 typedef struct Z_RecordSyntax Z_RecordSyntax;
71 YAZ_EXPORT int z_RecordSyntax (ODR o, Z_RecordSyntax **p, int opt, const char *name);
73 typedef struct Z_DiagFormat Z_DiagFormat;
74 YAZ_EXPORT int z_DiagFormat (ODR o, Z_DiagFormat **p, int opt, const char *name);
81 struct Z_DiagnosticFormat_s {
84 Z_DefaultDiagFormat *defaultDiagRec;
85 Z_DiagFormat *explicitDiagnostic;
86 #define Z_DiagnosticFormat_s_defaultDiagRec 1
87 #define Z_DiagnosticFormat_s_explicitDiagnostic 2
89 Z_InternationalString *message; /* OPT */
92 struct Z_DiagnosticFormat {
94 Z_DiagnosticFormat_s **elements;
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
112 Z_Specification *spec;
113 Z_DatabaseName *db; /* OPT */
115 Z_Specification **goodOnes; /* OPT */
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 */
135 int *value; /* OPT */
136 Z_Term *term; /* OPT */
140 Z_AttributeList *unsupportedCombination;
141 int num_recommendedAlternatives;
142 Z_AttributeList **recommendedAlternatives; /* OPT */
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 */
157 Odr_null *resultSets;
158 Z_InternationalString *badSet;
162 Z_AttributeList *attributes;
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
176 struct Z_AttrListList {
178 Z_AttributeList **elements;
184 Odr_null *nonZeroStepSize;
185 Odr_null *specifiedStepSize;
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
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
205 struct Z_StringList {
207 Z_InternationalString **elements;
216 Odr_null *incompatible;
218 Odr_null *dbSpecific;
219 Z_SortElement *sortElement;
220 #define Z_Sort_tooMany 1
221 #define Z_Sort_duplicate 2
224 #define Z_Sort_relation 1
225 #define Z_Sort_case 2
226 #define Z_Sort_action 3
227 #define Z_Sort_sort 4
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
246 struct Z_Segmentation {
249 Odr_null *segmentCount;
251 #define Z_Segmentation_segmentCount 1
252 #define Z_Segmentation_segmentSize 2
256 struct Z_ExtServices {
259 #define Z_ExtServices_nameInUse 1
260 #define Z_ExtServices_noSuchName 2
261 #define Z_ExtServices_quota 3
262 #define Z_ExtServices_type 4
264 #define Z_ExtServices_id 1
265 #define Z_ExtServices_modifyDelete 2
267 #define Z_ExtServices_failed 1
268 #define Z_ExtServices_service 2
269 #define Z_ExtServices_parameters 3
271 #define Z_ExtServices_req 1
272 #define Z_ExtServices_permission 2
273 #define Z_ExtServices_immediate 3
282 struct Z_AltOidList {
287 struct Z_AccessCtrl {
294 Z_AltOidList *alternative;
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
307 struct Z_RecordSyntax {
308 Odr_oid *unsupportedSyntax;
309 int num_suggestedAlternatives;
310 Odr_oid **suggestedAlternatives; /* OPT */
313 struct Z_DiagFormat {
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
324 Z_Attribute *attribute;
325 Z_AttCombo *attCombo;
327 Z_Proximity *proximity;
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