YAZ  5.23.1
z-diag1.h
Go to the documentation of this file.
1 
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 
17 YAZ_EXPORT int z_DiagnosticFormat_s(ODR o, Z_DiagnosticFormat_s **p, int opt, const char *name);
18 
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 
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 
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 
59 YAZ_EXPORT int z_Segmentation(ODR o, Z_Segmentation **p, int opt, const char *name);
60 
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 
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
85  int which;
86  union {
89 #define Z_DiagnosticFormat_s_defaultDiagRec 1
90 #define Z_DiagnosticFormat_s_explicitDiagnostic 2
91  } u; /* OPT */
93 };
94 
96  int num;
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
111  Odr_int *max; /* OPT */
112 };
113 
114 struct Z_BadSpec {
116  Z_DatabaseName *db; /* OPT */
119 };
120 
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  Odr_int *reasonCode; /* OPT */
128 };
129 
130 struct Z_DbUnavail {
133 };
134 
135 struct Z_Attribute {
137  Odr_int *type; /* OPT */
138  Odr_int *value; /* OPT */
139  Z_Term *term; /* OPT */
140 };
141 
142 struct Z_AttCombo {
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  Odr_int *problem; /* OPT */
155 };
156 
157 struct Z_Proximity {
158  int which;
159  union {
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 
180  int num;
182 };
183 
184 struct Z_Scan {
185  int which;
186  union {
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
205  } u;
206 };
207 
208 struct Z_StringList {
209  int num;
211 };
212 
213 struct Z_Sort {
214  int which;
215  union {
220  Odr_null *generic;
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
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 
250  int which;
251  union {
254 #define Z_Segmentation_segmentCount 1
255 #define Z_Segmentation_segmentSize 2
256  } u;
257 };
258 
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
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
277  } u;
278 };
279 
280 struct Z_OidList {
281  int num;
283 };
284 
285 struct Z_AltOidList {
286  int num;
288 };
289 
290 struct Z_AccessCtrl {
291  int which;
292  union {
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 
314 };
315 
316 struct Z_DiagFormat {
317  int which;
318  union {
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
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
int z_BadSpec(ODR o, Z_BadSpec **p, int opt, const char *name)
Definition: z-diag1.c:56
Z_AccessCtrl * accessCtrl
Definition: z-diag1.h:335
Z_AttrListList * termList2
Definition: z-diag1.h:190
Header for ODR (Open Data Representation)
char Z_InternationalString
Definition: z-core.h:301
Odr_int * relation
Definition: z-diag1.h:162
Odr_null * incompatible
Definition: z-diag1.h:219
Z_InternationalString * badSet
Definition: z-diag1.h:161
union Z_DiagnosticFormat_s::@81 u
ASN.1 Module Z39-50-APDU-1995.
int z_StringList(ODR o, Z_StringList **p, int opt, const char *name)
Definition: z-diag1.c:206
int z_TooMany(ODR o, Z_TooMany **p, int opt, const char *name)
Definition: z-diag1.c:44
Z_AttCombo * attCombo
Definition: z-diag1.h:328
int z_AttrListList(ODR o, Z_AttrListList **p, int opt, const char *name)
Definition: z-diag1.c:166
Odr_int * unSupOp
Definition: z-diag1.h:326
Z_StringList * inputTooLarge
Definition: z-diag1.h:232
int z_DiagnosticFormat_s(ODR o, Z_DiagnosticFormat_s **p, int opt, const char *name)
Definition: z-diag1.c:12
Z_AttributeList ** recommendedAlternatives
Definition: z-diag1.h:145
int z_DiagnosticFormat(ODR o, Z_DiagnosticFormat **p, int opt, const char *name)
Definition: z-diag1.c:32
Odr_null * resultSets
Definition: z-diag1.h:160
Z_Term * term
Definition: z-diag1.h:139
Z_Sort * sort
Definition: z-diag1.h:332
int z_ExtServices(ODR o, Z_ExtServices **p, int opt, const char *name)
Definition: z-diag1.c:274
Z_BadSpec * badSpec
Definition: z-diag1.h:320
Odr_int * immediate
Definition: z-diag1.h:273
int which
Definition: z-diag1.h:214
char * name
Definition: initopt.c:18
int z_DbUnavail(ODR o, Z_DbUnavail **p, int opt, const char *name)
Definition: z-diag1.c:83
int z_Scan(ODR o, Z_Scan **p, int opt, const char *name)
Definition: z-diag1.c:178
Z_Segmentation * segmentation
Definition: z-diag1.h:333
short Odr_oid
Definition: oid_util.h:42
nmem_int_t Odr_int
Definition: odr.h:47
Odr_int * type
Definition: z-diag1.h:137
Odr_int * segmentSize
Definition: z-diag1.h:253
int z_AltOidList(ODR o, Z_AltOidList **p, int opt, const char *name)
Definition: z-diag1.c:306
int z_DiagFormat(ODR o, Z_DiagFormat **p, int opt, const char *name)
Definition: z-diag1.c:359
Odr_oid ** suggestedAlternatives
Definition: z-diag1.h:313
int num_suggestedAlternatives
Definition: z-diag1.h:312
Z_ExtServices * extServices
Definition: z-diag1.h:334
Odr_oid * unsupportedSyntax
Definition: z-diag1.h:311
Odr_null * termList1
Definition: z-diag1.h:189
int z_RecordSyntax(ODR o, Z_RecordSyntax **p, int opt, const char *name)
Definition: z-diag1.c:346
Z_InternationalString ** elements
Definition: z-diag1.h:210
Odr_int * permission
Definition: z-diag1.h:269
Odr_null * specifiedStepSize
Definition: z-diag1.h:188
Z_Term * term
Definition: z-diag1.h:154
Z_OidList * oid
Definition: z-diag1.h:296
Odr_null * aggregateTooLarge
Definition: z-diag1.h:233
Odr_int * max
Definition: z-diag1.h:111
Odr_null * pwdExp
Definition: z-diag1.h:299
Odr_null * resources
Definition: z-diag1.h:196
Definition: z-core.h:536
int z_DiagTerm(ODR o, Z_DiagTerm **p, int opt, const char *name)
Definition: z-diag1.c:124
Odr_null * endOfList
Definition: z-diag1.h:197
Odr_null * ordered
Definition: z-diag1.h:166
Odr_oid ** elements
Definition: z-diag1.h:282
Z_AltOidList * alternative
Definition: z-diag1.h:297
Odr_oid ** elements
Definition: z-diag1.h:287
Odr_null * exclusion
Definition: z-diag1.h:167
int num
Definition: z-diag1.h:281
Odr_int * unit
Definition: z-diag1.h:163
int z_AttCombo(ODR o, Z_AttCombo **p, int opt, const char *name)
Definition: z-diag1.c:111
Z_Scan * scan
Definition: z-diag1.h:331
Odr_null * segmentCount
Definition: z-diag1.h:252
Odr_int * distance
Definition: z-diag1.h:164
Z_InternationalString Z_DatabaseName
Definition: z-core.h:310
int z_Segmentation(ODR o, Z_Segmentation **p, int opt, const char *name)
Definition: z-diag1.c:256
int z_DbUnavail_0(ODR o, Z_DbUnavail_0 **p, int opt, const char *name)
Definition: z-diag1.c:71
Odr_int * tooMany
Definition: z-diag1.h:218
Odr_null * action
Definition: z-diag1.h:226
Odr_null * noUser
Definition: z-diag1.h:293
Z_Specification ** goodOnes
Definition: z-diag1.h:118
int z_Sort(ODR o, Z_Sort **p, int opt, const char *name)
Definition: z-diag1.c:218
Odr_null * dbSpecific
Definition: z-diag1.h:221
Odr_int * problem
Definition: z-diag1.h:153
Z_DefaultDiagFormat * defaultDiagRec
Definition: z-diag1.h:87
int z_AccessCtrl(ODR o, Z_AccessCtrl **p, int opt, const char *name)
Definition: z-diag1.c:318
Definition: odr.h:124
Z_DatabaseName * db
Definition: z-diag1.h:131
Z_SortElement * sortElement
Definition: z-diag1.h:222
int z_Attribute(ODR o, Z_Attribute **p, int opt, const char *name)
Definition: z-diag1.c:95
Z_Proximity * proximity
Definition: z-diag1.h:330
Z_DbUnavail * dbUnavail
Definition: z-diag1.h:321
Z_AttributeList ** elements
Definition: z-diag1.h:181
Odr_int * posInResponse
Definition: z-diag1.h:195
Z_RecordSyntax * recordSyntax
Definition: z-diag1.h:336
int num_goodOnes
Definition: z-diag1.h:117
Z_DiagTerm * term
Definition: z-diag1.h:329
int num_recommendedAlternatives
Definition: z-diag1.h:144
int opt
Definition: initopt.c:19
Z_DbUnavail_0 * why
Definition: z-diag1.h:132
Z_InternationalString * message
Definition: z-diag1.h:92
int z_Proximity(ODR o, Z_Proximity **p, int opt, const char *name)
Definition: z-diag1.c:136
int which
Definition: z-diag1.h:158
Odr_int * illegal
Definition: z-diag1.h:231
Z_DiagnosticFormat_s ** elements
Definition: z-diag1.h:97
Odr_int * key
Definition: z-diag1.h:225
Odr_null * simple
Definition: z-diag1.h:295
Z_TooMany * tooMany
Definition: z-diag1.h:319
int z_OidList(ODR o, Z_OidList **p, int opt, const char *name)
Definition: z-diag1.c:294
int which
Definition: z-diag1.h:185
Z_DiagFormat * explicitDiagnostic
Definition: z-diag1.h:88
Odr_null * refused
Definition: z-diag1.h:294
Odr_null * pwdInv
Definition: z-diag1.h:298
Z_Attribute * attribute
Definition: z-diag1.h:327
Z_Specification * spec
Definition: z-diag1.h:115
Odr_int * value
Definition: z-diag1.h:138
Odr_int * req
Definition: z-diag1.h:266
Odr_oid * id
Definition: z-diag1.h:136
Odr_int * reasonCode
Definition: z-diag1.h:126
Odr_null * sequence
Definition: z-diag1.h:216
Z_AttributeList * attributes
Definition: z-diag1.h:165
Z_InternationalString * message
Definition: z-diag1.h:127
Odr_int * tooManyWhat
Definition: z-diag1.h:110
Odr_null * noRsName
Definition: z-diag1.h:217
Z_AttributeList * unsupportedCombination
Definition: z-diag1.h:143
Odr_null * nonZeroStepSize
Definition: z-diag1.h:187
void Odr_null
Definition: odr.h:105
Z_DatabaseName * db
Definition: z-diag1.h:116