z-core.h File Reference

ASN.1 Module Z39-50-APDU-1995. More...

#include <yaz/odr.h>

Go to the source code of this file.

Data Structures

struct  Z_APDU
struct  Z_InitRequest
struct  Z_IdPass
struct  Z_IdAuthentication
struct  Z_InitResponse
struct  Z_SearchRequest
struct  Z_Query
struct  Z_RPNQuery
struct  Z_Complex
struct  Z_RPNStructure
struct  Z_Operand
struct  Z_AttributesPlusTerm
struct  Z_ResultSetPlusAttributes
struct  Z_AttributeList
struct  Z_Term
struct  Z_Operator
struct  Z_ComplexAttribute
struct  Z_AttributeElement
struct  Z_ProximityOperator
struct  Z_SearchResponse
struct  Z_RecordComposition
struct  Z_PresentRequest
struct  Z_Segment
struct  Z_PresentResponse
struct  Z_NamePlusRecordList
struct  Z_DiagRecs
struct  Z_Records
struct  Z_NamePlusRecord
struct  Z_FragmentSyntax
struct  Z_DiagRec
struct  Z_DefaultDiagFormat
struct  Z_Range
struct  Z_DatabaseSpecificUnit
struct  Z_DatabaseSpecific
struct  Z_ElementSetNames
struct  Z_DbSpecific
struct  Z_CompSpec
struct  Z_ElementSpec
struct  Z_Specification
struct  Z_DeleteResultSetRequest
struct  Z_DeleteResultSetResponse
struct  Z_ListStatus
struct  Z_ListStatuses
struct  Z_AccessControlRequest
struct  Z_AccessControlResponse
struct  Z_ResourceControlRequest
struct  Z_ResourceControlResponse
struct  Z_TriggerResourceControlRequest
struct  Z_ResourceReportRequest
struct  Z_ResourceReportResponse
struct  Z_ScanRequest
struct  Z_ScanResponse
struct  Z_ListEntries
struct  Z_Entry
struct  Z_TermInfo
struct  Z_byDatabaseList_s
struct  Z_byDatabaseList
struct  Z_OccurrenceByAttributesElem
struct  Z_OccurrenceByAttributes
struct  Z_SortKeySpecList
struct  Z_SortRequest
struct  Z_SortResponse
struct  Z_SortKeySpec
struct  Z_SortDbSpecificList_s
struct  Z_SortDbSpecificList
struct  Z_SortElement
struct  Z_SortAttributes
struct  Z_SortKey
struct  Z_ExtendedServicesRequest
struct  Z_ExtendedServicesResponse
struct  Z_Permissions_s
struct  Z_Permissions
struct  Z_Close
struct  Z_DuplicateDetectionRequest
struct  Z_DuplicateDetectionCriterion
struct  Z_RetentionCriterion
struct  Z_SortCriterionPreferredDatabases
struct  Z_SortCriterion
struct  Z_DuplicateDetectionResponse
struct  Z_OtherInformationUnit
struct  Z_OtherInformation
struct  Z_InfoCategory
struct  Z_IntUnit
struct  Z_Unit
struct  Z_StringOrNumeric

Defines

#define Z_APDU_initRequest   1
#define Z_APDU_initResponse   2
#define Z_APDU_searchRequest   3
#define Z_APDU_searchResponse   4
#define Z_APDU_presentRequest   5
#define Z_APDU_presentResponse   6
#define Z_APDU_deleteResultSetRequest   7
#define Z_APDU_deleteResultSetResponse   8
#define Z_APDU_accessControlRequest   9
#define Z_APDU_accessControlResponse   10
#define Z_APDU_resourceControlRequest   11
#define Z_APDU_resourceControlResponse   12
#define Z_APDU_triggerResourceControlRequest   13
#define Z_APDU_resourceReportRequest   14
#define Z_APDU_resourceReportResponse   15
#define Z_APDU_scanRequest   16
#define Z_APDU_scanResponse   17
#define Z_APDU_sortRequest   18
#define Z_APDU_sortResponse   19
#define Z_APDU_segmentRequest   20
#define Z_APDU_extendedServicesRequest   21
#define Z_APDU_extendedServicesResponse   22
#define Z_APDU_close   23
#define Z_APDU_duplicateDetectionRequest   24
#define Z_APDU_duplicateDetectionResponse   25
#define Z_IdAuthentication_open   1
#define Z_IdAuthentication_idPass   2
#define Z_IdAuthentication_anonymous   3
#define Z_IdAuthentication_other   4
#define Z_ProtocolVersion_1   0
#define Z_ProtocolVersion_2   1
#define Z_ProtocolVersion_3   2
#define Z_Options_search   0
#define Z_Options_present   1
#define Z_Options_delSet   2
#define Z_Options_resourceReport   3
#define Z_Options_triggerResourceCtrl   4
#define Z_Options_resourceCtrl   5
#define Z_Options_accessCtrl   6
#define Z_Options_scan   7
#define Z_Options_sort   8
#define Z_Options_extendedServices   10
#define Z_Options_level_1Segmentation   11
#define Z_Options_level_2Segmentation   12
#define Z_Options_concurrentOperations   13
#define Z_Options_namedResultSets   14
#define Z_Options_encapsulation   15
#define Z_Options_resultCount   16
#define Z_Options_negotiationModel   17
#define Z_Options_duplicateDetection   18
#define Z_Options_queryType104   19
#define Z_Options_pQESCorrection   20
#define Z_Options_stringSchema   21
#define Z_Query_type_0   1
#define Z_Query_type_1   2
#define Z_Query_type_2   3
#define Z_Query_type_100   4
#define Z_Query_type_101   5
#define Z_Query_type_102   6
#define Z_Query_type_104   7
#define Z_RPNStructure_simple   1
#define Z_RPNStructure_complex   2
#define Z_Operand_APT   1
#define Z_Operand_resultSetId   2
#define Z_Operand_resultAttr   3
#define Z_Term_general   1
#define Z_Term_numeric   2
#define Z_Term_characterString   3
#define Z_Term_oid   4
#define Z_Term_dateTime   5
#define Z_Term_external   6
#define Z_Term_integerAndUnit   7
#define Z_Term_null   8
#define Z_Operator_and   1
#define Z_Operator_or   2
#define Z_Operator_and_not   3
#define Z_Operator_prox   4
#define Z_AttributeValue_numeric   1
#define Z_AttributeValue_complex   2
#define Z_ProximityOperator_Prox_lessThan   1
#define Z_ProximityOperator_Prox_lessThanOrEqual   2
#define Z_ProximityOperator_Prox_equal   3
#define Z_ProximityOperator_Prox_greaterThanOrEqual   4
#define Z_ProximityOperator_Prox_greaterThan   5
#define Z_ProximityOperator_Prox_notEqual   6
#define Z_ProximityOperator_known   1
#define Z_ProximityOperator_private   2
#define Z_ProxUnit_character   1
#define Z_ProxUnit_word   2
#define Z_ProxUnit_sentence   3
#define Z_ProxUnit_paragraph   4
#define Z_ProxUnit_section   5
#define Z_ProxUnit_chapter   6
#define Z_ProxUnit_document   7
#define Z_ProxUnit_element   8
#define Z_ProxUnit_subelement   9
#define Z_ProxUnit_elementType   10
#define Z_ProxUnit_byte   11
#define Z_SearchResponse_subset   1
#define Z_SearchResponse_interim   2
#define Z_SearchResponse_none   3
#define Z_SearchResponse_estimate   4
#define Z_RecordComp_simple   1
#define Z_RecordComp_complex   2
#define Z_Records_DBOSD   1
#define Z_Records_NSD   2
#define Z_Records_multipleNSD   3
#define Z_NamePlusRecord_databaseRecord   1
#define Z_NamePlusRecord_surrogateDiagnostic   2
#define Z_NamePlusRecord_startingFragment   3
#define Z_NamePlusRecord_intermediateFragment   4
#define Z_NamePlusRecord_finalFragment   5
#define Z_FragmentSyntax_externallyTagged   1
#define Z_FragmentSyntax_notExternallyTagged   2
#define Z_DiagRec_defaultFormat   1
#define Z_DiagRec_externallyDefined   2
#define Z_DefaultDiagFormat_v2Addinfo   1
#define Z_DefaultDiagFormat_v3Addinfo   2
#define Z_ElementSetNames_generic   1
#define Z_ElementSetNames_databaseSpecific   2
#define Z_PresentStatus_success   0
#define Z_PresentStatus_partial_1   1
#define Z_PresentStatus_partial_2   2
#define Z_PresentStatus_partial_3   3
#define Z_PresentStatus_partial_4   4
#define Z_PresentStatus_failure   5
#define Z_ElementSpec_elementSetName   1
#define Z_ElementSpec_externalSpec   2
#define Z_Schema_oid   1
#define Z_Schema_uri   2
#define Z_DeleteResultSetRequest_list   0
#define Z_DeleteResultSetRequest_all   1
#define Z_DeleteStatus_success   0
#define Z_DeleteStatus_resultSetDidNotExist   1
#define Z_DeleteStatus_previouslyDeletedByTarget   2
#define Z_DeleteStatus_systemProblemAtTarget   3
#define Z_DeleteStatus_accessNotAllowed   4
#define Z_DeleteStatus_resourceControlAtOrigin   5
#define Z_DeleteStatus_resourceControlAtTarget   6
#define Z_DeleteStatus_bulkDeleteNotSupported   7
#define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte   8
#define Z_DeleteStatus_notAllRequestedResultSetsDeleted   9
#define Z_DeleteStatus_resultSetInUse   10
#define Z_AccessControlRequest_simpleForm   1
#define Z_AccessControlRequest_externallyDefined   2
#define Z_AccessControlResponse_simpleForm   1
#define Z_AccessControlResponse_externallyDefined   2
#define Z_ResourceControlRequest_subset   1
#define Z_ResourceControlRequest_interim   2
#define Z_ResourceControlRequest_none   3
#define Z_TriggerResourceControlRequest_resourceReport   1
#define Z_TriggerResourceControlRequest_resourceControl   2
#define Z_TriggerResourceControlRequest_cancel   3
#define Z_ResourceReportResponse_success   0
#define Z_ResourceReportResponse_partial   1
#define Z_ResourceReportResponse_failure_1   2
#define Z_ResourceReportResponse_failure_2   3
#define Z_ResourceReportResponse_failure_3   4
#define Z_ResourceReportResponse_failure_4   5
#define Z_ResourceReportResponse_failure_5   6
#define Z_ResourceReportResponse_failure_6   7
#define Z_Scan_success   0
#define Z_Scan_partial_1   1
#define Z_Scan_partial_2   2
#define Z_Scan_partial_3   3
#define Z_Scan_partial_4   4
#define Z_Scan_partial_5   5
#define Z_Scan_failure   6
#define Z_Entry_termInfo   1
#define Z_Entry_surrogateDiagnostic   2
#define Z_OccurrenceByAttributesElem_global   1
#define Z_OccurrenceByAttributesElem_byDatabase   2
#define Z_SortResponse_success   0
#define Z_SortResponse_partial_1   1
#define Z_SortResponse_failure   2
#define Z_SortResponse_empty   1
#define Z_SortResponse_interim   2
#define Z_SortResponse_unchanged   3
#define Z_SortResponse_none   4
#define Z_SortKeySpec_ascending   0
#define Z_SortKeySpec_descending   1
#define Z_SortKeySpec_ascendingByFrequency   3
#define Z_SortKeySpec_descendingByfrequency   4
#define Z_SortKeySpec_caseSensitive   0
#define Z_SortKeySpec_caseInsensitive   1
#define Z_SortKeySpec_abort   1
#define Z_SortKeySpec_null   2
#define Z_SortKeySpec_missingValueData   3
#define Z_SortElement_generic   1
#define Z_SortElement_databaseSpecific   2
#define Z_SortKey_sortField   1
#define Z_SortKey_elementSpec   2
#define Z_SortKey_sortAttributes   3
#define Z_ExtendedServicesRequest_create   1
#define Z_ExtendedServicesRequest_delete   2
#define Z_ExtendedServicesRequest_modify   3
#define Z_ExtendedServicesRequest_wait   1
#define Z_ExtendedServicesRequest_waitIfPossible   2
#define Z_ExtendedServicesRequest_dontWait   3
#define Z_ExtendedServicesRequest_dontReturnPackage   4
#define Z_ExtendedServicesResponse_done   1
#define Z_ExtendedServicesResponse_accepted   2
#define Z_ExtendedServicesResponse_failure   3
#define Z_Permissions_s_delete   1
#define Z_Permissions_s_modifyContents   2
#define Z_Permissions_s_modifyPermissions   3
#define Z_Permissions_s_present   4
#define Z_Permissions_s_invoke   5
#define Z_Close_finished   0
#define Z_Close_shutdown   1
#define Z_Close_systemProblem   2
#define Z_Close_costLimit   3
#define Z_Close_resources   4
#define Z_Close_securityViolation   5
#define Z_Close_protocolError   6
#define Z_Close_lackOfActivity   7
#define Z_Close_peerAbort   8
#define Z_Close_unspecified   9
#define Z_DuplicateDetectionCriterion_levelOfMatch   1
#define Z_DuplicateDetectionCriterion_caseSensitive   2
#define Z_DuplicateDetectionCriterion_punctuationSensitive   3
#define Z_DuplicateDetectionCriterion_regularExpression   4
#define Z_DuplicateDetectionCriterion_rsDuplicates   5
#define Z_RetentionCriterion_numberOfEntries   1
#define Z_RetentionCriterion_percentOfEntries   2
#define Z_RetentionCriterion_duplicatesOnly   3
#define Z_RetentionCriterion_discardRsDuplicates   4
#define Z_SortCriterion_mostComprehensive   1
#define Z_SortCriterion_leastConmprehensive   2
#define Z_SortCriterion_mostRecent   3
#define Z_SortCriterion_oldest   4
#define Z_SortCriterion_leastCost   5
#define Z_SortCriterion_preferredDatabases   6
#define Z_DuplicateDetectionResponse_success   0
#define Z_DuplicateDetectionResponse_failure   1
#define Z_OtherInfo_characterInfo   1
#define Z_OtherInfo_binaryInfo   2
#define Z_OtherInfo_externallyDefinedInfo   3
#define Z_OtherInfo_oid   4
#define Z_StringOrNumeric_string   1
#define Z_StringOrNumeric_numeric   2

Typedefs

typedef struct Z_External Z_External
typedef struct Z_APDU Z_APDU
typedef struct Z_InitRequest Z_InitRequest
typedef struct Z_IdPass Z_IdPass
typedef struct Z_IdAuthentication Z_IdAuthentication
typedef struct Z_InitResponse Z_InitResponse
typedef Odr_bitmask Z_ProtocolVersion
typedef Odr_bitmask Z_Options
typedef struct Z_SearchRequest Z_SearchRequest
typedef struct Z_Query Z_Query
typedef struct Z_RPNQuery Z_RPNQuery
typedef struct Z_Complex Z_Complex
typedef struct Z_RPNStructure Z_RPNStructure
typedef struct Z_Operand Z_Operand
typedef struct Z_AttributesPlusTerm Z_AttributesPlusTerm
typedef struct
Z_ResultSetPlusAttributes 
Z_ResultSetPlusAttributes
typedef struct Z_AttributeList Z_AttributeList
typedef struct Z_Term Z_Term
typedef struct Z_Operator Z_Operator
typedef struct Z_ComplexAttribute Z_ComplexAttribute
typedef struct Z_AttributeElement Z_AttributeElement
typedef struct Z_ProximityOperator Z_ProximityOperator
typedef int Z_ProxUnit
typedef struct Z_SearchResponse Z_SearchResponse
typedef struct Z_RecordComposition Z_RecordComposition
typedef struct Z_PresentRequest Z_PresentRequest
typedef struct Z_Segment Z_Segment
typedef struct Z_PresentResponse Z_PresentResponse
typedef struct Z_NamePlusRecordList Z_NamePlusRecordList
typedef struct Z_DiagRecs Z_DiagRecs
typedef struct Z_Records Z_Records
typedef struct Z_NamePlusRecord Z_NamePlusRecord
typedef struct Z_FragmentSyntax Z_FragmentSyntax
typedef struct Z_DiagRec Z_DiagRec
typedef struct Z_DefaultDiagFormat Z_DefaultDiagFormat
typedef struct Z_Range Z_Range
typedef struct
Z_DatabaseSpecificUnit 
Z_DatabaseSpecificUnit
typedef struct Z_DatabaseSpecific Z_DatabaseSpecific
typedef struct Z_ElementSetNames Z_ElementSetNames
typedef int Z_PresentStatus
typedef struct Z_DbSpecific Z_DbSpecific
typedef struct Z_CompSpec Z_CompSpec
typedef struct Z_ElementSpec Z_ElementSpec
typedef struct Z_Specification Z_Specification
typedef struct
Z_DeleteResultSetRequest 
Z_DeleteResultSetRequest
typedef struct
Z_DeleteResultSetResponse 
Z_DeleteResultSetResponse
typedef struct Z_ListStatus Z_ListStatus
typedef struct Z_ListStatuses Z_ListStatuses
typedef int Z_DeleteStatus
typedef struct
Z_AccessControlRequest 
Z_AccessControlRequest
typedef struct
Z_AccessControlResponse 
Z_AccessControlResponse
typedef struct
Z_ResourceControlRequest 
Z_ResourceControlRequest
typedef struct
Z_ResourceControlResponse 
Z_ResourceControlResponse
typedef struct
Z_TriggerResourceControlRequest 
Z_TriggerResourceControlRequest
typedef struct
Z_ResourceReportRequest 
Z_ResourceReportRequest
typedef struct
Z_ResourceReportResponse 
Z_ResourceReportResponse
typedef Z_External Z_ResourceReport
typedef Odr_oid Z_ResourceReportId
typedef struct Z_ScanRequest Z_ScanRequest
typedef struct Z_ScanResponse Z_ScanResponse
typedef struct Z_ListEntries Z_ListEntries
typedef struct Z_Entry Z_Entry
typedef struct Z_TermInfo Z_TermInfo
typedef struct Z_byDatabaseList_s Z_byDatabaseList_s
typedef struct Z_byDatabaseList Z_byDatabaseList
typedef struct
Z_OccurrenceByAttributesElem 
Z_OccurrenceByAttributesElem
typedef struct
Z_OccurrenceByAttributes 
Z_OccurrenceByAttributes
typedef struct Z_SortKeySpecList Z_SortKeySpecList
typedef struct Z_SortRequest Z_SortRequest
typedef struct Z_SortResponse Z_SortResponse
typedef struct Z_SortKeySpec Z_SortKeySpec
typedef struct
Z_SortDbSpecificList_s 
Z_SortDbSpecificList_s
typedef struct Z_SortDbSpecificList Z_SortDbSpecificList
typedef struct Z_SortElement Z_SortElement
typedef struct Z_SortAttributes Z_SortAttributes
typedef struct Z_SortKey Z_SortKey
typedef struct
Z_ExtendedServicesRequest 
Z_ExtendedServicesRequest
typedef struct
Z_ExtendedServicesResponse 
Z_ExtendedServicesResponse
typedef struct Z_Permissions_s Z_Permissions_s
typedef struct Z_Permissions Z_Permissions
typedef struct Z_Close Z_Close
typedef int Z_CloseReason
typedef struct
Z_DuplicateDetectionRequest 
Z_DuplicateDetectionRequest
typedef struct
Z_DuplicateDetectionCriterion 
Z_DuplicateDetectionCriterion
typedef struct Z_RetentionCriterion Z_RetentionCriterion
typedef struct
Z_SortCriterionPreferredDatabases 
Z_SortCriterionPreferredDatabases
typedef struct Z_SortCriterion Z_SortCriterion
typedef struct
Z_DuplicateDetectionResponse 
Z_DuplicateDetectionResponse
typedef Odr_oct Z_ReferenceId
typedef Odr_oid Z_AttributeSetId
typedef struct
Z_OtherInformationUnit 
Z_OtherInformationUnit
typedef struct Z_OtherInformation Z_OtherInformation
typedef struct Z_InfoCategory Z_InfoCategory
typedef struct Z_IntUnit Z_IntUnit
typedef struct Z_Unit Z_Unit
typedef char Z_InternationalString
typedef Z_InternationalString Z_ResultSetId
typedef Z_InternationalString Z_ElementSetName
typedef Z_InternationalString Z_DatabaseName
typedef struct Z_StringOrNumeric Z_StringOrNumeric

Functions

int z_External (ODR o, Z_External **p, int opt, const char *name)
 codec for BER EXTERNAL
int z_APDU (ODR o, Z_APDU **p, int opt, const char *name)
int z_InitRequest (ODR o, Z_InitRequest **p, int opt, const char *name)
int z_IdPass (ODR o, Z_IdPass **p, int opt, const char *name)
int z_IdAuthentication (ODR o, Z_IdAuthentication **p, int opt, const char *name)
int z_InitResponse (ODR o, Z_InitResponse **p, int opt, const char *name)
int z_ProtocolVersion (ODR o, Z_ProtocolVersion **p, int opt, const char *name)
int z_Options (ODR o, Z_Options **p, int opt, const char *name)
int z_SearchRequest (ODR o, Z_SearchRequest **p, int opt, const char *name)
int z_Query (ODR o, Z_Query **p, int opt, const char *name)
int z_RPNQuery (ODR o, Z_RPNQuery **p, int opt, const char *name)
int z_Complex (ODR o, Z_Complex **p, int opt, const char *name)
int z_RPNStructure (ODR o, Z_RPNStructure **p, int opt, const char *name)
int z_Operand (ODR o, Z_Operand **p, int opt, const char *name)
int z_AttributesPlusTerm (ODR o, Z_AttributesPlusTerm **p, int opt, const char *name)
int z_ResultSetPlusAttributes (ODR o, Z_ResultSetPlusAttributes **p, int opt, const char *name)
int z_AttributeList (ODR o, Z_AttributeList **p, int opt, const char *name)
int z_Term (ODR o, Z_Term **p, int opt, const char *name)
int z_Operator (ODR o, Z_Operator **p, int opt, const char *name)
int z_ComplexAttribute (ODR o, Z_ComplexAttribute **p, int opt, const char *name)
int z_AttributeElement (ODR o, Z_AttributeElement **p, int opt, const char *name)
int z_ProximityOperator (ODR o, Z_ProximityOperator **p, int opt, const char *name)
int z_ProxUnit (ODR o, Z_ProxUnit **p, int opt, const char *name)
int z_SearchResponse (ODR o, Z_SearchResponse **p, int opt, const char *name)
int z_RecordComposition (ODR o, Z_RecordComposition **p, int opt, const char *name)
int z_PresentRequest (ODR o, Z_PresentRequest **p, int opt, const char *name)
int z_Segment (ODR o, Z_Segment **p, int opt, const char *name)
int z_PresentResponse (ODR o, Z_PresentResponse **p, int opt, const char *name)
int z_NamePlusRecordList (ODR o, Z_NamePlusRecordList **p, int opt, const char *name)
int z_DiagRecs (ODR o, Z_DiagRecs **p, int opt, const char *name)
int z_Records (ODR o, Z_Records **p, int opt, const char *name)
int z_NamePlusRecord (ODR o, Z_NamePlusRecord **p, int opt, const char *name)
int z_FragmentSyntax (ODR o, Z_FragmentSyntax **p, int opt, const char *name)
int z_DiagRec (ODR o, Z_DiagRec **p, int opt, const char *name)
int z_DefaultDiagFormat (ODR o, Z_DefaultDiagFormat **p, int opt, const char *name)
int z_Range (ODR o, Z_Range **p, int opt, const char *name)
int z_DatabaseSpecificUnit (ODR o, Z_DatabaseSpecificUnit **p, int opt, const char *name)
int z_DatabaseSpecific (ODR o, Z_DatabaseSpecific **p, int opt, const char *name)
int z_ElementSetNames (ODR o, Z_ElementSetNames **p, int opt, const char *name)
int z_PresentStatus (ODR o, Z_PresentStatus **p, int opt, const char *name)
int z_DbSpecific (ODR o, Z_DbSpecific **p, int opt, const char *name)
int z_CompSpec (ODR o, Z_CompSpec **p, int opt, const char *name)
int z_ElementSpec (ODR o, Z_ElementSpec **p, int opt, const char *