YAZ  5.23.1
Functions
odr_util.c File Reference

Implements various ODR utilities. More...

#include <stdlib.h>
#include <string.h>
#include "odr-priv.h"
#include <yaz/oid_util.h>

Go to the source code of this file.

Functions

void odr_prname (ODR o, const char *name)
 
int odp_more_chunks (ODR o, const char *base, int len)
 
Odr_oidodr_oiddup_nmem (NMEM nmem, const Odr_oid *o)
 
Odr_oidodr_oiddup (ODR odr, const Odr_oid *o)
 
Odr_oidodr_getoidbystr_nmem (NMEM nmem, const char *str)
 
Odr_oidodr_getoidbystr (ODR o, const char *str)
 
int odr_missing (ODR o, int opt, const char *name)
 
char * odr_prepend (ODR o, const char *prefix, const char *old)
 

Detailed Description

Implements various ODR utilities.

Definition in file odr_util.c.

Function Documentation

int odp_more_chunks ( ODR  o,
const char *  base,
int  len 
)

Definition at line 29 of file odr_util.c.

References Odr_private::bp, odr_constack::len, and odr::op.

Referenced by ber_bitstring(), and ber_octetstring().

Odr_oid* odr_getoidbystr ( ODR  o,
const char *  str 
)

Definition at line 77 of file odr_util.c.

References odr_getmem, and odr_getoidbystr_nmem().

Referenced by srw_bend_search(), z_get_OriginProposal_0(), and z_get_TargetResponse().

Odr_oid* odr_getoidbystr_nmem ( NMEM  nmem,
const char *  str 
)
int odr_missing ( ODR  o,
int  opt,
const char *  name 
)

Definition at line 82 of file odr_util.c.

References odr::error, odr_setelement(), odr_seterror(), opt, and OREQUIRED.

Referenced by ill_Already_Forwarded(), ill_Already_Tried_List_Type(), ill_Amount(), ill_Answer(), ill_APDU(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Client_Id(), ill_Conditional_Reply(), ill_Conditional_Results(), ill_Cost_Info_Type(), ill_Damaged(), ill_Damaged_Details(), ill_Damaged_DetailsSpecific_units(), ill_Date_Due(), ill_Delivery_Address(), ill_Delivery_Service(), ill_Delivery_ServiceElectronic_delivery(), ill_Electronic_Delivery_Service(), ill_Electronic_Delivery_Service_0(), ill_Electronic_Delivery_Service_1(), ill_Error_Report(), ill_Estimate_Results(), ill_Expired(), ill_Extension(), ill_Forward_Notification(), ill_History_Report(), ill_Hold_Placed_Results(), ill_Item_Id(), ill_ItemRequest(), ill_Location_Info(), ill_Locations_Results(), ill_Lost(), ill_Message(), ill_Name_Of_Person_Or_Institution(), ill_OCLCILLRequestExtension(), ill_Overdue(), ill_Overdue_ExtensionS(), ill_Person_Or_Institution_Symbol(), ill_Postal_Address(), ill_Provider_Error_Report(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Requester_Optional_Messages_Type(), ill_Responder_Optional_Messages_Type(), ill_Retry_Results(), ill_Returned(), ill_Search_Type(), ill_Send_To_List_Type(), ill_Send_To_List_Type_s(), ill_Service_Date_original(), ill_Service_Date_this(), ill_Service_Date_Time(), ill_Shipped(), ill_State_Transition_Prohibited(), ill_Status_Or_Error_Report(), ill_Status_Query(), ill_Status_Report(), ill_String(), ill_Supplemental_Item_Description(), ill_Supply_Details(), ill_Supply_Medium_Info_Type(), ill_System_Address(), ill_System_Id(), ill_SystemNo(), ill_SystemNo_s(), ill_Third_Party_Info_Type(), ill_Transaction_Id(), ill_Unfilled_Results(), ill_Units_Per_Medium_Type(), ill_User_Error_Report(), ill_Will_Supply_Results(), odr_any(), odr_bitstring(), odr_bool(), odr_cstring(), odr_enum(), odr_external(), odr_iconv_string(), odr_integer(), odr_null(), odr_octetstring(), odr_oid(), z_AccessControlRequest(), z_AccessControlResponse(), z_AccessCtrl(), z_AccessInfo(), z_AccessRestrictions(), z_AccessRestrictionsUnit(), z_Admin(), z_AdminEsRequest(), z_AdminTaskPackage(), z_AltOidList(), z_APDU(), z_AttCombo(), z_Attribute(), z_AttributeCombination(), z_AttributeCombinations(), z_AttributeDescription(), z_AttributeDetails(), z_AttributeElement(), z_AttributeList(), z_AttributeOccurrence(), z_AttributeSetDetails(), z_AttributeSetInfo(), z_AttributesPlusTerm(), z_AttributeType(), z_AttributeTypeDetails(), z_AttributeValue(), z_AttributeValueList(), z_AttrListList(), z_BadSpec(), z_BriefBib(), z_byDatabaseList(), z_byDatabaseList_s(), z_CategoryInfo(), z_CategoryList(), z_Challenge1(), z_ChallengeUnit1(), z_Charge(), z_CharSetandLanguageNegotiation(), z_CircRecord(), z_Close(), z_CommonInfo(), z_Complex(), z_ComplexAttribute(), z_CompSpec(), z_ContactInfo(), z_Costs(), z_CostsOtherCharge(), z_DatabaseInfo(), z_DatabaseList(), z_DatabaseSpecific(), z_DatabaseSpecificUnit(), z_Date(), z_DateFlags(), z_DateMonthAndDay(), z_DateQuarter(), z_DateSeason(), z_DateTime(), z_DbSpecific(), z_DbUnavail(), z_DbUnavail_0(), z_DefaultDiagFormat(), z_DeleteResultSetRequest(), z_DeleteResultSetResponse(), z_DES_RN_Object(), z_DiagFormat(), z_DiagnosticFormat(), z_DiagnosticFormat_s(), z_DiagRec(), z_DiagRecs(), z_DiagTerm(), z_DRNType(), z_DuplicateDetectionCriterion(), z_DuplicateDetectionRequest(), z_DuplicateDetectionResponse(), z_EIExportInvocation(), z_EIExportInvocationEsRequest(), z_EIExportInvocationTaskPackage(), z_EIOriginPartNotToKeep(), z_EIOriginPartNotToKeepRanges(), z_EIOriginPartNotToKeepRanges_s(), z_EIOriginPartToKeep(), z_EITargetPart(), z_ElementData(), z_ElementDataType(), z_ElementInfo(), z_ElementInfoList(), z_ElementMetaData(), z_ElementRequest(), z_ElementRequestCompositeElement(), z_ElementRequestCompositeElementPrimitives(), z_ElementRequestCompositeElementSpecs(), z_ElementSetDetails(), z_ElementSetNames(), z_ElementSpec(), z_Encryption(), z_Entry(), z_Environment(), z_Era(), z_ESAdminOriginPartNotToKeep(), z_ESAdminOriginPartToKeep(), z_ESAdminTargetPart(), z_EScanInfo(), z_ESDestination(), z_ESDestinationOther(), z_ESExportSpecification(), z_ESExportSpecificationEsRequest(), z_ESExportSpecificationTaskPackage(), z_ESOriginPartToKeep(), z_Espec1(), z_Estimate1(), z_Estimate2(), z_ETagPath(), z_ETagUnit(), z_ExplainRecord(), z_ExtendedServicesInfo(), z_ExtendedServicesRequest(), z_ExtendedServicesResponse(), z_ExtServices(), z_FacetField(), z_FacetList(), z_FacetTerm(), z_FormatSpec(), z_FragmentSyntax(), z_GenericRecord(), z_HitVector(), z_HoldingsAndCircData(), z_HoldingsRecord(), z_HumanString(), z_HumanStringUnit(), z_IconObject(), z_IconObjectUnit(), z_IdAuthentication(), z_IdPass(), z_ImportParameters(), z_InfoCategory(), z_InitialSet(), z_InitRequest(), z_InitResponse(), z_IntUnit(), z_IOBilling(), z_IOContact(), z_IOCreditCardInfo(), z_IOItemOrder(), z_IOOriginPartNotToKeep(), z_IOOriginPartToKeep(), z_IORequest(), z_IOResultSetItem(), z_IOTargetPart(), z_IOTaskPackage(), z_Iso10646(), z_Iso2022(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_Iso8777Capabilities(), z_IU0CorrelationInfo(), z_IU0OriginPartToKeep(), z_IU0SuppliedRecords(), z_IU0SuppliedRecords_elem(), z_IU0SuppliedRecordsId(), z_IU0TargetPart(), z_IU0TaskPackageRecordStructure(), z_IU0Update(), z_IU0UpdateEsRequest(), z_IU0UpdateTaskPackage(), z_IUCorrelationInfo(), z_IUOriginPartToKeep(), z_IUSuppliedRecords(), z_IUSuppliedRecords_elem(), z_IUSuppliedRecordsId(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_IUTaskPackageRecordStructureSurrogateDiagnostics(), z_IUUpdate(), z_IUUpdateEsRequest(), z_IUUpdateTaskPackage(), z_KRBObject(), z_KRBRequest(), z_KRBResponse(), z_LeftAndRight(), z_ListEntries(), z_ListStatus(), z_ListStatuses(), z_MultipleSearchTerms_2(), z_MultipleSearchTerms_2_s(), z_NamePlusRecord(), z_NamePlusRecordList(), z_NetworkAddress(), z_NetworkAddressIA(), z_NetworkAddressOPA(), z_NetworkAddressOther(), z_OccurrenceByAttributes(), z_OccurrenceByAttributesElem(), z_Occurrences(), z_OccurValues(), z_OCLC_UserInformation(), z_OidList(), z_OmittedAttributeInterpretation(), z_OPACRecord(), z_Operand(), z_Operator(), z_Order(), z_OriginProposal(), z_OriginProposal_0(), z_OtherInformation(), z_OtherInformationUnit(), z_Path(), z_PathUnit(), z_PerElementDetails(), z_Permissions(), z_Permissions_s(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_PQSPeriod(), z_PQSPeriodicQuerySchedule(), z_PQSPeriodicQueryScheduleEsRequest(), z_PQSPeriodicQueryScheduleTaskPackage(), z_PQSTargetPart(), z_PQueryOriginPartNotToKeep(), z_PQueryOriginPartToKeep(), z_PQueryPersistentQuery(), z_PQueryPersistentQueryEsRequest(), z_PQueryPersistentQueryTaskPackage(), z_PresentRequest(), z_PresentResponse(), z_PrivateCapabilities(), z_PrivateCapOperator(), z_PrivateCharacterSet(), z_PrivateCharacterSetViaOid(), z_ProcessingInformation(), z_PromptId(), z_PromptIdEnumeratedPrompt(), z_PromptObject1(), z_PROriginPartNotToKeep(), z_Proximity(), z_ProximityOperator(), z_ProximitySupport(), z_ProxSupportPrivate(), z_ProxSupportUnit(), z_PRPersistentResultSet(), z_PRPersistentResultSetEsRequest(), z_PRPersistentResultSetTaskPackage(), z_PRTargetPart(), z_Query(), z_QueryExpression(), z_QueryExpressionTerm(), z_QueryTypeDetails(), z_Range(), z_RecordComposition(), z_Records(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_RecordTag(), z_ResourceControlRequest(), z_ResourceControlResponse(), z_ResourceReport1(), z_ResourceReport2(), z_ResourceReportRequest(), z_ResourceReportResponse(), z_Response1(), z_ResponseUnit1(), z_ResultsByDB(), z_ResultsByDB_s(), z_ResultsByDB_sList(), z_ResultSetPlusAttributes(), z_RetentionCriterion(), z_RetrievalRecordDetails(), z_RpnCapabilities(), z_RPNQuery(), z_RPNStructure(), z_Scan(), z_ScanRequest(), z_ScanResponse(), z_SchemaInfo(), z_SearchInfoReport(), z_SearchInfoReport_s(), z_SearchKey(), z_SearchRequest(), z_SearchResponse(), z_Segment(), z_Segmentation(), z_SimpleElement(), z_Sort(), z_SortAttributes(), z_SortCriterion(), z_SortCriterionPreferredDatabases(), z_SortDbSpecificList(), z_SortDbSpecificList_s(), z_SortDetails(), z_SortElement(), z_SortKey(), z_SortKeyDetails(), z_SortKeySpec(), z_SortKeySpecList(), z_SortRequest(), z_SortResponse(), z_Specification(), z_SpecificTag(), z_StringList(), z_StringOrNumeric(), z_TaggedElement(), z_TagPath(), z_TagPath_s(), z_TagSetElements(), z_TagSetInfo(), z_TagTypeMapping(), z_TargetInfo(), z_TargetResponse(), z_TaskPackage(), z_Term(), z_TermInfo(), z_TermListDetails(), z_TermListElement(), z_TermListInfo(), z_Time(), z_TooMany(), z_TriggerResourceControlRequest(), z_Triple(), z_Unit(), z_UnitInfo(), z_Units(), z_UnitType(), z_UniverseReport(), z_UniverseReportDuplicate(), z_UniverseReportHits(), z_Usage(), z_ValueDescription(), z_ValueRange(), z_ValueSet(), z_ValueSetEnumerated(), z_Variant(), z_VariantClass(), z_VariantSetInfo(), z_VariantType(), z_VariantValue(), and z_Volume().

Odr_oid* odr_oiddup ( ODR  odr,
const Odr_oid o 
)
Odr_oid* odr_oiddup_nmem ( NMEM  nmem,
const Odr_oid o 
)

Definition at line 47 of file odr_util.c.

References nmem_malloc(), oid_oidcpy(), and oid_oidlen().

Referenced by odr_oiddup(), yaz_string_to_oid_nmem(), and z_ext_record_oid_nmem().

char* odr_prepend ( ODR  o,
const char *  prefix,
const char *  old 
)

Definition at line 103 of file odr_util.c.

References odr_malloc().

Referenced by process_initRequest(), and ZOOM_connection_Z3950_send_init().

void odr_prname ( ODR  o,
const char *  name 
)