2 \brief ASN.1 Module DiagnosticFormatDiag1
4 Generated automatically by YAZ ASN.1 Compiler 0.4
11 #include <yaz/z-core.h>
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);
19 typedef struct Z_DiagnosticFormat Z_DiagnosticFormat;
20 YAZ_EXPORT int z_DiagnosticFormat (ODR o, Z_DiagnosticFormat **p, int opt, const char *name);
22 typedef struct Z_TooMany Z_TooMany;
23 YAZ_EXPORT int z_TooMany (ODR o, Z_TooMany **p, int opt, const char *name);
25 typedef struct Z_BadSpec Z_BadSpec;
26 YAZ_EXPORT int z_BadSpec (ODR o, Z_BadSpec **p, int opt, const char *name);
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);
31 typedef struct Z_DbUnavail Z_DbUnavail;
32 YAZ_EXPORT int z_DbUnavail (ODR o, Z_DbUnavail **p, int opt, const char *name);
34 typedef struct Z_Attribute Z_Attribute;
35 YAZ_EXPORT int z_Attribute (ODR o, Z_Attribute **p, int opt, const char *name);
37 typedef struct Z_AttCombo Z_AttCombo;
38 YAZ_EXPORT int z_AttCombo (ODR o, Z_AttCombo **p, int opt, const char *name);
40 typedef struct Z_DiagTerm Z_DiagTerm;
41 YAZ_EXPORT int z_DiagTerm (ODR o, Z_DiagTerm **p, int opt, const char *name);
43 typedef struct Z_Proximity Z_Proximity;
44 YAZ_EXPORT int z_Proximity (ODR o, Z_Proximity **p, int opt, const char *name);
46 typedef struct Z_AttrListList Z_AttrListList;
47 YAZ_EXPORT int z_AttrListList (ODR o, Z_AttrListList **p, int opt, const char *name);
49 typedef struct Z_Scan Z_Scan;
50 YAZ_EXPORT int z_Scan (ODR o, Z_Scan **p, int opt, const char *name);
52 typedef struct Z_StringList Z_StringList;
53 YAZ_EXPORT int z_StringList (ODR o, Z_StringList **p, int opt, const char *name);
55 typedef struct Z_Sort Z_Sort;
56 YAZ_EXPORT int z_Sort (ODR o, Z_Sort **p, int opt, const char *name);
58 typedef struct Z_Segmentation Z_Segmentation;
59 YAZ_EXPORT int z_Segmentation (ODR o, Z_Segmentation **p, int opt, const char *name);
61 typedef struct Z_ExtServices Z_ExtServices;
62 YAZ_EXPORT int z_ExtServices (ODR o, Z_ExtServices **p, int opt, const char *name);
64 typedef struct Z_OidList Z_OidList;
65 YAZ_EXPORT int z_OidList (ODR o, Z_OidList **p, int opt, const char *name);
67 typedef struct Z_AltOidList Z_AltOidList;
68 YAZ_EXPORT int z_AltOidList (ODR o, Z_AltOidList **p, int opt, const char *name);
70 typedef struct Z_AccessCtrl Z_AccessCtrl;
71 YAZ_EXPORT int z_AccessCtrl (ODR o, Z_AccessCtrl **p, int opt, const char *name);
73 typedef struct Z_RecordSyntax Z_RecordSyntax;
74 YAZ_EXPORT int z_RecordSyntax (ODR o, Z_RecordSyntax **p, int opt, const char *name);
76 typedef struct Z_DiagFormat Z_DiagFormat;
77 YAZ_EXPORT int z_DiagFormat (ODR o, Z_DiagFormat **p, int opt, const char *name);
84 struct Z_DiagnosticFormat_s {
87 Z_DefaultDiagFormat *defaultDiagRec;
88 Z_DiagFormat *explicitDiagnostic;
89 #define Z_DiagnosticFormat_s_defaultDiagRec 1
90 #define Z_DiagnosticFormat_s_explicitDiagnostic 2
92 Z_InternationalString *message; /* OPT */
95 struct Z_DiagnosticFormat {
97 Z_DiagnosticFormat_s **elements;
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
115 Z_Specification *spec;
116 Z_DatabaseName *db; /* OPT */
118 Z_Specification **goodOnes; /* OPT */
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 */
138 int *value; /* OPT */
139 Z_Term *term; /* OPT */
143 Z_AttributeList *unsupportedCombination;
144 int num_recommendedAlternatives;
145 Z_AttributeList **recommendedAlternatives; /* OPT */
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 */
160 Odr_null *resultSets;
161 Z_InternationalString *badSet;
165 Z_AttributeList *attributes;
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
179 struct Z_AttrListList {
181 Z_AttributeList **elements;
187 Odr_null *nonZeroStepSize;
188 Odr_null *specifiedStepSize;
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
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
208 struct Z_StringList {
210 Z_InternationalString **elements;
219 Odr_null *incompatible;
221 Odr_null *dbSpecific;
222 Z_SortElement *sortElement;
223 #define Z_Sort_tooMany 1
224 #define Z_Sort_duplicate 2
227 #define Z_Sort_relation 1
228 #define Z_Sort_case 2
229 #define Z_Sort_action 3
230 #define Z_Sort_sort 4
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
249 struct Z_Segmentation {
252 Odr_null *segmentCount;
254 #define Z_Segmentation_segmentCount 1
255 #define Z_Segmentation_segmentSize 2
259 struct Z_ExtServices {
262 #define Z_ExtServices_nameInUse 1
263 #define Z_ExtServices_noSuchName 2
264 #define Z_ExtServices_quota 3
265 #define Z_ExtServices_type 4
267 #define Z_ExtServices_id 1
268 #define Z_ExtServices_modifyDelete 2
270 #define Z_ExtServices_failed 1
271 #define Z_ExtServices_service 2
272 #define Z_ExtServices_parameters 3
274 #define Z_ExtServices_req 1
275 #define Z_ExtServices_permission 2
276 #define Z_ExtServices_immediate 3
285 struct Z_AltOidList {
290 struct Z_AccessCtrl {
297 Z_AltOidList *alternative;
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
310 struct Z_RecordSyntax {
311 Odr_oid *unsupportedSyntax;
312 int num_suggestedAlternatives;
313 Odr_oid **suggestedAlternatives; /* OPT */
316 struct Z_DiagFormat {
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
327 Z_Attribute *attribute;
328 Z_AttCombo *attCombo;
330 Z_Proximity *proximity;
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