2 * Copyright (c) 1995-1998, Index Data.
4 * Permission to use, copy, modify, distribute, and sell this software and
5 * its documentation, in whole or in part, for any purpose, is hereby granted,
8 * 1. This copyright and permission notice appear in all copies of the
9 * software and its documentation. Notices of copyright or attribution
10 * which appear at the beginning of any file must remain unchanged.
12 * 2. The names of Index Data or the individual authors may not be used to
13 * endorse or promote products derived from this software without specific
14 * prior written permission.
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19 * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
21 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
22 * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
37 typedef struct Z_CommonInfo
39 char *dateAdded; /* OPTIONAL */
40 char *dateChanged; /* OPTIONAL */
41 char *expiry; /* OPTIONAL */
42 char *humanStringLanguage; /* OPTIONAL */
43 Z_OtherInformation *otherInfo; /* OPTIONAL */
46 typedef struct Z_HumanStringUnit
48 char *language; /* OPTIONAL */
52 typedef struct Z_HumanString
55 Z_HumanStringUnit **strings;
58 typedef struct Z_IconObjectUnit
61 #define Z_IconObject_ianaType 0
62 #define Z_IconObject_z3950type 1
63 #define Z_IconObject_otherType 2
68 typedef struct Z_IconObject
71 Z_IconObjectUnit **iconUnits;
74 typedef struct Z_ContactInfo
76 char *name; /* OPTIONAL */
77 Z_HumanString *description; /* OPTIONAL */
78 Z_HumanString *address; /* OPTIONAL */
79 char *email; /* OPTIONAL */
80 char *phone; /* OPTIONAL */
83 typedef struct Z_NetworkAddressIA
89 typedef struct Z_NetworkAddressOPA
92 char *sSel; /* OPTIONAL */
93 char *tSel; /* OPTIONAL */
95 } Z_NetworkAddressOPA;
97 typedef struct Z_NetworkAddressOther
101 } Z_NetworkAddressOther;
103 typedef struct Z_NetworkAddress
106 #define Z_NetworkAddress_iA 0
107 #define Z_NetworkAddress_oPA 1
108 #define Z_NetworkAddress_other 2
111 Z_NetworkAddressIA *internetAddress;
112 Z_NetworkAddressOPA *osiPresentationAddress;
113 Z_NetworkAddressOther *other;
117 typedef struct Z_PrivateCapOperator
120 Z_HumanString *description; /* OPTIONAL */
121 } Z_PrivateCapOperator;
123 typedef struct Z_SearchKey
126 Z_HumanString *description; /* OPTIONAL */
129 typedef struct Z_PrivateCapabilities
132 Z_PrivateCapOperator **operators; /* OPTIONAL */
134 Z_SearchKey **searchKeys; /* OPTIONAL */
136 Z_HumanString **description; /* OPTIONAL */
137 } Z_PrivateCapabilities;
139 typedef struct Z_ProxSupportPrivate
142 Z_HumanString *description; /* OPTIONAL */
143 } Z_ProxSupportPrivate;
145 typedef struct Z_ProxSupportUnit
148 #define Z_ProxSupportUnit_known 0
149 #define Z_ProxSupportUnit_private 1
153 Z_ProxSupportPrivate *zprivate;
157 typedef struct Z_ProximitySupport
160 int num_unitsSupported;
161 Z_ProxSupportUnit **unitsSupported; /* OPTIONAL */
162 } Z_ProximitySupport;
164 typedef struct Z_RpnCapabilities
167 int **operators; /* OPTIONAL */
168 bool_t *resultSetAsOperandSupported;
169 bool_t *restrictionOperandSupported;
170 Z_ProximitySupport *proximity; /* OPTIONAL */
173 typedef struct Z_Iso8777Capabilities
176 Z_SearchKey **searchKeys;
177 Z_HumanString *restrictions; /* OPTIONAL */
178 } Z_Iso8777Capabilities;
180 typedef struct Z_QueryTypeDetails
183 #define Z_QueryTypeDetails_private 0
184 #define Z_QueryTypeDetails_rpn 1
185 #define Z_QueryTypeDetails_iso8777 2
186 #define Z_QueryTypeDetails_z3958 3
187 #define Z_QueryTypeDetails_erpn 4
188 #define Z_QueryTypeDetails_rankedList 5
191 Z_PrivateCapabilities *zprivate;
192 Z_RpnCapabilities *rpn;
193 Z_Iso8777Capabilities *iso8777;
194 Z_HumanString *z3958;
195 Z_RpnCapabilities *erpn;
196 Z_HumanString *rankedList;
198 } Z_QueryTypeDetails;
200 typedef struct Z_AccessRestrictionsUnit
203 #define Z_AccessRestrictions_any 0
204 #define Z_AccessRestrictions_search 1
205 #define Z_AccessRestrictions_present 2
206 #define Z_AccessRestrictions_specific_elements 3
207 #define Z_AccessRestrictions_extended_services 4
208 #define Z_AccessRestrictions_by_database 5
209 Z_HumanString *accessText; /* OPTIONAL */
210 int num_accessChallenges;
211 Odr_oid **accessChallenges; /* OPTIONAL */
212 } Z_AccessRestrictionsUnit;
214 typedef struct Z_AccessRestrictions
216 int num_restrictions;
217 Z_AccessRestrictionsUnit **restrictions;
218 } Z_AccessRestrictions;
220 typedef struct Z_Charge
223 Z_Unit *perWhat; /* OPTIONAL */
224 Z_HumanString *text; /* OPTIONAL */
227 typedef struct Z_CostsOtherCharge
229 Z_HumanString *forWhat;
231 } Z_CostsOtherCharge;
233 typedef struct Z_Costs
235 Z_Charge *connectCharge; /* OPTIONAL */
236 Z_Charge *connectTime; /* OPTIONAL */
237 Z_Charge *displayCharge; /* OPTIONAL */
238 Z_Charge *searchCharge; /* OPTIONAL */
239 Z_Charge *subscriptCharge; /* OPTIONAL */
240 int num_otherCharges;
241 Z_CostsOtherCharge **otherCharges; /* OPTIONAL */
244 typedef struct Z_AccessInfo
246 int num_queryTypesSupported;
247 Z_QueryTypeDetails **queryTypesSupported; /* OPTIONAL */
248 int num_diagnosticsSets;
249 Odr_oid **diagnosticsSets; /* OPTIONAL */
250 int num_attributeSetIds;
251 Odr_oid **attributeSetIds; /* OPTIONAL */
253 Odr_oid **schemas; /* OPTIONAL */
254 int num_recordSyntaxes;
255 Odr_oid **recordSyntaxes; /* OPTIONAL */
256 int num_resourceChallenges;
257 Odr_oid **resourceChallenges; /* OPTIONAL */
258 Z_AccessRestrictions *restrictedAccess; /* OPTIONAL */
259 Z_Costs *costInfo; /* OPTIONAL */
261 Odr_oid **variantSets; /* OPTIONAL */
262 int num_elementSetNames;
263 char **elementSetNames; /* OPTIONAL */
265 char **unitSystems; /* OPTIONAL */
268 typedef struct Z_DatabaseList
271 Z_DatabaseName **databases;
274 typedef struct Z_AttributeValueList
277 Z_StringOrNumeric **attributes;
278 } Z_AttributeValueList;
280 typedef struct Z_AttributeOccurrence
282 Odr_oid *attributeSet; /* OPTIONAL */
284 Odr_null *mustBeSupplied; /* OPTIONAL */
286 #define Z_AttributeOcc_anyOrNone 0
287 #define Z_AttributeOcc_specific 1
291 Z_AttributeValueList *specific;
293 } Z_AttributeOccurrence;
295 typedef struct Z_AttributeCombination
298 Z_AttributeOccurrence **occurrences;
299 } Z_AttributeCombination;
301 typedef struct Z_AttributeCombinations
303 Odr_oid *defaultAttributeSet;
304 int num_legalCombinations;
305 Z_AttributeCombination **legalCombinations;
306 } Z_AttributeCombinations;
308 typedef struct Z_AttributeValue
310 Z_StringOrNumeric *value;
311 Z_HumanString *description; /* OPTIONAL */
312 int num_subAttributes;
313 Z_StringOrNumeric **subAttributes; /* OPTIONAL */
314 int num_superAttributes;
315 Z_StringOrNumeric **superAttributes; /* OPTIONAL */
316 Odr_null *partialSupport; /* OPTIONAL */
319 typedef struct Z_TargetInfo
321 Z_CommonInfo *commonInfo; /* OPTIONAL */
327 * non-key brief elements
329 Z_HumanString *recentNews; /* OPTIONAL */
330 Z_IconObject *icon; /* OPTIONAL */
331 bool_t *namedResultSets;
332 bool_t *multipleDBsearch;
333 int *maxResultSets; /* OPTIONAL */
334 int *maxResultSize; /* OPTIONAL */
335 int *maxTerms; /* OPTIONAL */
336 Z_IntUnit *timeoutInterval; /* OPTIONAL */
337 Z_HumanString *welcomeMessage; /* OPTIONAL */
341 Z_ContactInfo *contactInfo; /* OPTIONAL */
342 Z_HumanString *description; /* OPTIONAL */
345 Z_HumanString *usageRest; /* OPTIONAL */
346 Z_HumanString *paymentAddr; /* OPTIONAL */
347 Z_HumanString *hours; /* OPTIONAL */
348 int num_dbCombinations;
349 Z_DatabaseList **dbCombinations; /* OPTIONAL */
351 Z_NetworkAddress **addresses; /* OPTIONAL */
352 Z_AccessInfo *commonAccessInfo; /* OPTIONAL */
355 typedef struct Z_DatabaseInfo
357 Z_CommonInfo *commonInfo; /* OPTIONAL */
361 Z_DatabaseName *name;
365 Odr_null *explainDatabase; /* OPTIONAL */
367 Z_DatabaseName **nicknames; /* OPTIONAL */
368 Z_IconObject *icon; /* OPTIONAL */
371 Z_HumanString *titleString; /* OPTIONAL */
373 * Non-brief elements.
376 Z_HumanString **keywords; /* OPTIONAL */
377 Z_HumanString *description; /* OPTIONAL */
378 Z_DatabaseList *associatedDbs; /* OPTIONAL */
379 Z_DatabaseList *subDbs; /* OPTIONAL */
380 Z_HumanString *disclaimers; /* OPTIONAL */
381 Z_HumanString *news; /* OPTIONAL */
382 int recordCount_which;
383 #define Z_Exp_RecordCount_actualNumber 0
384 #define Z_Exp_RecordCount_approxNumber 1
385 int *recordCount; /* OPTIONAL */
386 Z_HumanString *defaultOrder; /* OPTIONAL */
387 int *avRecordSize; /* OPTIONAL */
388 int *maxRecordSize; /* OPTIONAL */
389 Z_HumanString *hours; /* OPTIONAL */
390 Z_HumanString *bestTime; /* OPTIONAL */
391 char *lastUpdate; /* OPTIONAL */
392 Z_IntUnit *updateInterval; /* OPTIONAL */
393 Z_HumanString *coverage; /* OPTIONAL */
394 bool_t *proprietary; /* OPTIONAL */
395 Z_HumanString *copyrightText; /* OPTIONAL */
396 Z_HumanString *copyrightNotice; /* OPTIONAL */
397 Z_ContactInfo *producerContactInfo; /* OPTIONAL */
398 Z_ContactInfo *supplierContactInfo; /* OPTIONAL */
399 Z_ContactInfo *submissionContactInfo; /* OPTIONAL */
400 Z_AccessInfo *accessInfo; /* OPTIONAL */
403 typedef struct Z_TagTypeMapping
406 Odr_oid *tagSet; /* OPTIONAL */
407 Odr_null *defaultTagType; /* OPTIONAL */
410 typedef struct Z_PathUnit
413 Z_StringOrNumeric *tagValue;
416 typedef struct Z_Path
422 struct Z_ElementDataType;
423 typedef struct Z_ElementDataType Z_ElementDataType;
425 typedef struct Z_ElementInfo
428 Z_Path *elementTagPath;
429 Z_ElementDataType *dataType; /* OPTIONAL */
432 Z_HumanString *description; /* OPTIONAL */
435 typedef struct Z_ElementInfoList
438 Z_ElementInfo **list;
441 struct Z_ElementDataType
444 #define Z_ElementDataType_primitive 0
445 #define Z_ElementDataType_structured 1
449 #define Z_PrimitiveElement_octetString 0
450 #define Z_PrimitiveElement_numeric 1
451 #define Z_PrimitiveElement_date 2
452 #define Z_PrimitiveElement_external 3
453 #define Z_PrimitiveElement_string 4
454 #define Z_PrimitiveElement_trueOrFalse 5
455 #define Z_PrimitiveElement_oid 6
456 #define Z_PrimitiveElement_intUnit 7
457 #define Z_PrimitiveElement_empty 8
458 #define Z_PrimitiveElement_noneOfTheAbove 100
459 Z_ElementInfoList *structured;
463 typedef struct Z_TagSetInfoElements
467 char **nicknames; /* OPTIONAL */
468 Z_StringOrNumeric *elementTag;
469 Z_HumanString *description; /* OPTIONAL */
470 int *dataType; /* OPTIONAL */
471 /* (value as in Z_PrimitiveElement) */
472 Z_OtherInformation *otherTagInfo; /* OPTIONAL */
473 } Z_TagSetInfoElements;
475 typedef struct Z_SchemaInfo
477 Z_CommonInfo *commonInfo; /* OPTIONAL */
489 Z_HumanString *description; /* OPTIONAL */
490 int num_tagTypeMapping;
491 Z_TagTypeMapping **tagTypeMapping; /* OPTIONAL */
492 int num_recordStructure;
493 Z_ElementInfo **recordStructure; /* OPTIONAL */
497 typedef struct Z_TagSetInfo
499 Z_CommonInfo *commonInfo; /* OPTIONAL */
511 Z_HumanString *description; /* OPTIONAL */
513 Z_TagSetInfoElements **elements; /* OPTIONAL */
516 typedef struct Z_RecordSyntaxInfo
518 Z_CommonInfo *commonInfo; /* OPTIONAL */
522 Odr_oid *recordSyntax;
530 int num_transferSyntaxes;
531 Odr_oid **transferSyntaxes; /* OPTIONAL */
532 Z_HumanString *description; /* OPTIONAL */
533 char *asn1Module; /* OPTIONAL */
534 int num_abstractStructure;
535 Z_ElementInfo **abstractStructure; /* OPTIONAL */
536 } Z_RecordSyntaxInfo;
538 typedef struct Z_AttributeDescription
540 char *name; /* OPTIONAL */
541 Z_HumanString *description; /* OPTIONAL */
542 Z_StringOrNumeric *attributeValue;
543 int num_equivalentAttributes;
544 Z_StringOrNumeric **equivalentAttributes; /* OPTIONAL */
545 } Z_AttributeDescription;
547 typedef struct Z_AttributeType
549 char *name; /* OPTIONAL */
550 Z_HumanString *description; /* OPTIONAL */
552 int num_attributeValues;
553 Z_AttributeDescription **attributeValues;
556 typedef struct Z_AttributeSetInfo
558 Z_CommonInfo *commonInfo; /* OPTIONAL */
562 Odr_oid *attributeSet;
571 Z_AttributeType **attributes; /* OPTIONAL */
572 Z_HumanString *description; /* OPTIONAL */
573 } Z_AttributeSetInfo;
575 typedef struct Z_TermListElement
578 Z_HumanString *title; /* OPTIONAL */
579 int *searchCost; /* OPTIONAL */
580 #define Z_TermListInfo_optimized 0
581 #define Z_TermListInfo_normal 1
582 #define Z_TermListInfo_expensive 2
583 #define Z_TermListInfo_filter 3
586 char **broader; /* OPTIONAL */
588 char **narrower; /* OPTIONAL */
591 typedef struct Z_TermListInfo
593 Z_CommonInfo *commonInfo; /* OPTIONAL */
597 Z_DatabaseName *databaseName;
602 Z_TermListElement **termLists;
605 typedef struct Z_ExtendedServicesInfo
607 Z_CommonInfo *commonInfo; /* OPTIONAL */
615 char *name; /* OPTIONAL */
617 bool_t *restrictionsApply;
620 bool_t *retentionSupported;
622 #define Z_ExtendedServicesInfo_waitSupported 1
623 #define Z_ExtendedServicesInfo_waitAlways 2
624 #define Z_ExtendedServicesInfo_waitNotSupported 3
625 #define Z_ExtendedServicesInfo_depends 4
626 #define Z_ExtendedServicesInfo_notSaying 5
630 Z_HumanString *description; /* OPTIONAL */
631 Z_External *specificExplain; /* OPTIONAL */
632 char *esASN; /* OPTIONAL */
633 } Z_ExtendedServicesInfo;
635 typedef struct Z_OmittedAttributeInterpretation
637 Z_StringOrNumeric *defaultValue; /* OPTIONAL */
638 Z_HumanString *defaultDescription; /* OPTIONAL */
639 } Z_OmittedAttributeInterpretation;
641 typedef struct Z_AttributeTypeDetails
644 Z_OmittedAttributeInterpretation *optionalType; /* OPTIONAL */
645 int num_attributeValues;
646 Z_AttributeValue **attributeValues; /* OPTIONAL */
647 } Z_AttributeTypeDetails;
649 typedef struct Z_AttributeSetDetails
651 Odr_oid *attributeSet;
652 int num_attributesByType;
653 Z_AttributeTypeDetails **attributesByType;
654 } Z_AttributeSetDetails;
656 typedef struct Z_AttributeDetails
658 Z_CommonInfo *commonInfo; /* OPTIONAL */
662 Z_DatabaseName *databaseName;
666 int num_attributesBySet;
667 Z_AttributeSetDetails **attributesBySet; /* OPTIONAL */
668 Z_AttributeCombinations *attributeCombinations; /* OPTIONAL */
669 } Z_AttributeDetails;
671 typedef struct Z_EScanInfo
673 int *maxStepSize; /* OPTIONAL */
674 Z_HumanString *collatingSequence; /* OPTIONAL */
675 bool_t *increasing; /* OPTIONAL */
678 typedef struct Z_TermListDetails
680 Z_CommonInfo *commonInfo; /* OPTIONAL */
688 Z_HumanString *description; /* OPTIONAL */
689 Z_AttributeCombinations *attributes; /* OPTIONAL */
690 Z_EScanInfo *scanInfo; /* OPTIONAL */
691 int *estNumberTerms; /* OPTIONAL */
693 Z_Term **sampleTerms; /* OPTIONAL */
696 typedef struct Z_RecordTag
698 Z_StringOrNumeric *qualifier; /* OPTIONAL */
699 Z_StringOrNumeric *tagValue;
702 typedef struct Z_PerElementDetails
704 char *name; /* OPTIONAL */
705 Z_RecordTag *recordTag; /* OPTIONAL */
707 Z_Path **schemaTags; /* OPTIONAL */
708 int *maxSize; /* OPTIONAL */
709 int *minSize; /* OPTIONAL */
710 int *avgSize; /* OPTIONAL */
711 int *fixedSize; /* OPTIONAL */
714 Z_HumanString *description; /* OPTIONAL */
715 Z_HumanString *contents; /* OPTIONAL */
716 Z_HumanString *billingInfo; /* OPTIONAL */
717 Z_HumanString *restrictions; /* OPTIONAL */
718 int num_alternateNames;
719 char **alternateNames; /* OPTIONAL */
720 int num_genericNames;
721 char **genericNames; /* OPTIONAL */
722 Z_AttributeCombinations *searchAccess; /* OPTIONAL */
723 } Z_PerElementDetails;
725 typedef struct Z_ElementSetDetails
727 Z_CommonInfo *commonInfo; /* OPTIONAL */
731 Z_DatabaseName *databaseName;
732 char *elementSetName;
733 Odr_oid *recordSyntax;
741 Z_HumanString *description; /* OPTIONAL */
742 int num_detailsPerElement;
743 Z_PerElementDetails **detailsPerElement; /* OPTIONAL */
744 } Z_ElementSetDetails;
746 typedef struct Z_RetrievalRecordDetails
748 Z_CommonInfo *commonInfo; /* OPTIONAL */
752 Z_DatabaseName *databaseName;
754 Odr_oid *recordSyntax;
758 Z_HumanString *description; /* OPTIONAL */
759 int num_detailsPerElement;
760 Z_PerElementDetails **detailsPerElement; /* OPTIONAL */
761 } Z_RetrievalRecordDetails;
763 typedef struct Z_SortKeyDetailsSortType
766 #define Z_SortKeyDetailsSortType_character 0
767 #define Z_SortKeyDetailsSortType_numeric 1
768 #define Z_SortKeyDetailsSortType_structured 2
773 Z_HumanString *structured;
775 } Z_SortKeyDetailsSortType;
777 typedef struct Z_SortKeyDetails
779 Z_HumanString *description; /* OPTIONAL */
780 int num_elementSpecifications;
781 Z_Specification **elementSpecifications; /* OPTIONAL */
782 Z_AttributeCombinations *attributeSpecifications; /* OPTIONAL */
783 Z_SortKeyDetailsSortType *sortType; /* OPTIONAL */
784 int *caseSensitivity; /* OPTIONAL */
785 #define Z_SortKeyDetails_always 0
786 #define Z_SortKeyDetails_never 1
787 #define Z_SortKeyDetails_defaultYes 2
788 #define Z_SortKeyDetails_defaultNo 3
791 typedef struct Z_SortDetails
793 Z_CommonInfo *commonInfo; /* OPTIONAL */
797 Z_DatabaseName *databaseName;
802 Z_SortKeyDetails **sortKeys; /* OPTIONAL */
805 typedef struct Z_ProcessingInformation
807 Z_CommonInfo *commonInfo; /* OPTIONAL */
811 Z_DatabaseName *databaseName;
812 int *processingContext;
813 #define Z_ProcessingInformation_access 0
814 #define Z_ProcessingInformation_search 1
815 #define Z_ProcessingInformation_retrieval 2
816 #define Z_ProcessingInformation_recordPresentation 3
817 #define Z_ProcessingInformation_recordHandling 4
823 Z_HumanString *description; /* OPTIONAL */
824 Z_External *instructions; /* OPTIONAL */
825 } Z_ProcessingInformation;
827 typedef struct Z_ValueDescription
830 #define Z_ValueDescription_integer 0
831 #define Z_ValueDescription_string 1
832 #define Z_ValueDescription_octets 2
833 #define Z_ValueDescription_oid 3
834 #define Z_ValueDescription_unit 4
835 #define Z_ValueDescription_valueAndUnit 5
843 Z_IntUnit *valueAndUnit;
845 } Z_ValueDescription;
847 typedef struct Z_ValueRange
849 Z_ValueDescription *lower; /* OPTIONAL */
850 Z_ValueDescription *upper; /* OPTIONAL */
853 typedef struct Z_ValueSetEnumerated
856 Z_ValueDescription **enumerated;
857 } Z_ValueSetEnumerated;
859 typedef struct Z_ValueSet
862 #define Z_ValueSet_range 0
863 #define Z_ValueSet_enumerated 1
867 Z_ValueSetEnumerated *enumerated;
871 typedef struct Z_VariantValue
874 Z_ValueSet *values; /* OPTIONAL */
877 typedef struct Z_VariantType
879 char *name; /* OPTIONAL */
880 Z_HumanString *description; /* OPTIONAL */
882 Z_VariantValue *variantValue; /* OPTIONAL */
885 typedef struct Z_VariantClass
887 char *name; /* OPTIONAL */
888 Z_HumanString *description; /* OPTIONAL */
890 int num_variantTypes;
891 Z_VariantType **variantTypes;
894 typedef struct Z_VariantSetInfo
896 Z_CommonInfo *commonInfo; /* OPTIONAL */
909 Z_VariantClass **variants; /* OPTIONAL */
912 typedef struct Z_Units
914 char *name; /* OPTIONAL */
915 Z_HumanString *description; /* OPTIONAL */
916 Z_StringOrNumeric *unit;
919 typedef struct Z_UnitType
921 char *name; /* OPTIONAL */
922 Z_HumanString *description; /* OPTIONAL */
923 Z_StringOrNumeric *unitType;
928 typedef struct Z_UnitInfo
930 Z_CommonInfo *commonInfo; /* OPTIONAL */
938 Z_HumanString *description; /* OPTIONAL */
940 Z_UnitType **units; /* OPTIONAL */
943 typedef struct Z_CategoryInfo
946 char *originalCategory; /* OPTIONAL */
947 Z_HumanString *description; /* OPTIONAL */
948 char *asn1Module; /* OPTIONAL */
951 typedef struct Z_CategoryList
953 Z_CommonInfo *commonInfo; /* OPTIONAL */
955 Z_CategoryInfo **categories;
958 typedef struct Z_ExplainRecord
961 #define Z_Explain_targetInfo 0
962 #define Z_Explain_databaseInfo 1
963 #define Z_Explain_schemaInfo 2
964 #define Z_Explain_tagSetInfo 3
965 #define Z_Explain_recordSyntaxInfo 4
966 #define Z_Explain_attributeSetInfo 5
967 #define Z_Explain_termListInfo 6
968 #define Z_Explain_extendedServicesInfo 7
969 #define Z_Explain_attributeDetails 8
970 #define Z_Explain_termListDetails 9
971 #define Z_Explain_elementSetDetails 10
972 #define Z_Explain_retrievalRecordDetails 11
973 #define Z_Explain_sortDetails 12
974 #define Z_Explain_processing 13
975 #define Z_Explain_variants 14
976 #define Z_Explain_units 15
977 #define Z_Explain_categoryList 16
980 Z_TargetInfo *targetInfo;
981 Z_DatabaseInfo *databaseInfo;
982 Z_SchemaInfo *schemaInfo;
983 Z_TagSetInfo *tagSetInfo;
984 Z_RecordSyntaxInfo *recordSyntaxInfo;
985 Z_AttributeSetInfo *attributeSetInfo;
986 Z_TermListInfo *termListInfo;
987 Z_ExtendedServicesInfo *extendedServicesInfo;
988 Z_AttributeDetails *attributeDetails;
989 Z_TermListDetails *termListDetails;
990 Z_ElementSetDetails *elementSetDetails;
991 Z_RetrievalRecordDetails *retrievalRecordDetails;
992 Z_SortDetails *sortDetails;
993 Z_ProcessingInformation *processing;
994 Z_VariantSetInfo *variants;
996 Z_CategoryList *categoryList;
1000 YAZ_EXPORT int z_ExplainRecord(ODR o, Z_ExplainRecord **p, int opt);