YAZ
5.34.0
|
Header for ODR (Open Data Representation) More...
#include <stdio.h>
#include <string.h>
#include <yaz/yconfig.h>
#include <yaz/nmem.h>
#include <yaz/oid_util.h>
#include <yaz/xmalloc.h>
Go to the source code of this file.
Data Structures | |
struct | odr_oct |
struct | odr_bitmask |
struct | odr |
struct | odr_arm |
struct | Odr_external |
Macros | |
#define | ODR_INT_PRINTF NMEM_INT_PRINTF |
#define | bool_t int |
#define | ODR_NONE -1 |
#define | ODR_IMPLICIT 0 |
#define | ODR_EXPLICIT 1 |
#define | ODR_UNIVERSAL 0 |
#define | ODR_APPLICATION 1 |
#define | ODR_CONTEXT 2 |
#define | ODR_PRIVATE 3 |
#define | ODR_BOOLEAN 1 |
#define | ODR_INTEGER 2 |
#define | ODR_BITSTRING 3 |
#define | ODR_OCTETSTRING 4 |
#define | ODR_NULL 5 |
#define | ODR_OID 6 |
#define | ODR_ODESC 7 |
#define | ODR_EXTERNAL 8 |
#define | ODR_REAL 9 |
#define | ODR_ENUM 10 |
#define | ODR_SEQUENCE 16 |
#define | ODR_SET 17 |
#define | ODR_NUMERICSTRING 18 |
#define | ODR_PRINTABLESTRING 19 |
#define | ODR_GENERALIZEDTIME 24 |
#define | ODR_GRAPHICSTRING 25 |
#define | ODR_VISIBLESTRING 26 |
#define | ODR_GENERALSTRING 27 |
#define | ODR_DECODE 0 |
#define | ODR_ENCODE 1 |
#define | ODR_PRINT 2 |
#define | ODR_BITMASK_SIZE 256 |
#define | ODR_S_SET 0 |
#define | ODR_S_CUR 1 |
#define | ODR_S_END 2 |
#define | ONONE 0 |
#define | OMEMORY 1 |
#define | OSYSERR 2 |
#define | OSPACE 3 |
#define | OREQUIRED 4 |
#define | OUNEXPECTED 5 |
#define | OOTHER 6 |
#define | OPROTO 7 |
#define | ODATA 8 |
#define | OSTACK 9 |
#define | OCONLEN 10 |
#define | OLENOV 11 |
#define | OHTTP 12 |
#define | odr_release_mem(m) nmem_destroy(m) |
#define | ODR_MEM NMEM |
#define | odr_implicit_tag(o, t, p, cl, tg, opt, name) (odr_implicit_settag((o), cl, tg), t ((o), (p), (opt), name) ) |
#define | odr_explicit_tag(o, t, p, cl, tg, opt, name) |
#define | ODR_MASK_ZERO(mask) |
#define | ODR_MASK_SET(mask, num) |
#define | ODR_MASK_CLEAR(mask, num) ((mask)->bits[(num) >> 3] &= ~(0X80 >> ((num) & 0X07))) |
#define | ODR_MASK_GET(mask, num) |
#define | odr_ok(o) (!(o)->error) |
#define | odr_getmem(o) ((o)->mem) |
#define | ODR_MAXNAME 256 |
#define | ODR_EXTERNAL_single 0 |
#define | ODR_EXTERNAL_octet 1 |
#define | ODR_EXTERNAL_arbitrary 2 |
Typedefs | |
typedef nmem_int_t | Odr_int |
typedef nmem_bool_t | Odr_bool |
typedef struct odr_oct | Odr_oct |
typedef void | Odr_null |
typedef Odr_oct | Odr_any |
typedef struct odr_bitmask | Odr_bitmask |
typedef struct odr * | ODR |
typedef int(* | Odr_fun) (ODR, char **, int, const char *) |
typedef struct odr_arm | Odr_arm |
typedef struct Odr_external | Odr_external |
Functions | |
int | odr_offset (ODR o) |
int | odr_geterror (ODR o) |
int | odr_geterrorx (ODR o, int *x) |
void | odr_seterror (ODR o, int errorno, int errorid) |
void | odr_setelement (ODR o, const char *addinfo) |
const char * | odr_getelement (ODR o) |
void | odr_perror (ODR o, const char *message) |
void | odr_setprint (ODR o, FILE *file) |
void | odr_setprint_noclose (ODR o, FILE *file) |
ODR | odr_createmem (int direction) |
void | odr_reset (ODR o) |
void | odr_destroy (ODR o) |
void | odr_setbuf (ODR o, char *buf, int len, int can_grow) |
char * | odr_getbuf (ODR o, int *len, int *size) |
void * | odr_malloc (ODR o, size_t size) |
char * | odr_strdup (ODR o, const char *str) |
char * | odr_strdupn (ODR o, const char *str, size_t n) |
char * | odr_strdup_null (ODR o, const char *str) |
Odr_int * | odr_intdup (ODR o, Odr_int v) |
Odr_bool * | odr_booldup (ODR o, Odr_bool v) |
Odr_oct * | odr_create_Odr_oct (ODR o, const char *buf, int sz) |
NMEM | odr_extract_mem (ODR o) |
Odr_null * | odr_nullval (void) |
int | ber_boolean (ODR o, int *val) |
int | ber_tag (ODR o, void *p, int zclass, int tag, int *constructed, int opt, const char *name) |
Encode/decode BER tags. More... | |
int | ber_enctag (ODR o, int zclass, int tag, int constructed) |
BER-encode a zclass/tag/constructed package (identifier octets). More... | |
int | ber_dectag (const char *buf, int *zclass, int *tag, int *constructed, int max) |
Decodes BER identifier octets. More... | |
int | odr_bool (ODR o, Odr_bool **p, int opt, const char *name) |
int | odr_integer (ODR o, Odr_int **p, int opt, const char *name) |
int | odr_enum (ODR o, Odr_int **p, int opt, const char *name) |
int | odr_implicit_settag (ODR o, int zclass, int tag) |
int | ber_enclen (ODR o, int len, int lenlen, int exact) |
int | ber_declen (const char *buf, int *len, int max) |
void | odr_prname (ODR o, const char *name) |
int | ber_null (ODR o) |
int | odr_null (ODR o, Odr_null **p, int opt, const char *name) |
int | ber_integer (ODR o, Odr_int *val) |
int | odr_constructed_begin (ODR o, void *p, int zclass, int tag, const char *name) |
int | odr_constructed_end (ODR o) |
int | odr_sequence_begin (ODR o, void *p, int size, const char *name) |
int | odr_set_begin (ODR o, void *p, int size, const char *name) |
int | odr_sequence_end (ODR o) |
int | odr_set_end (ODR o) |
int | ber_octetstring (ODR o, Odr_oct *p, int cons) |
int | odr_octetstring (ODR o, Odr_oct **p, int opt, const char *name) |
int | odp_more_chunks (ODR o, const char *base, int len) |
int | odr_constructed_more (ODR o) |
int | odr_bitstring (ODR o, Odr_bitmask **p, int opt, const char *name) |
int | ber_bitstring (ODR o, Odr_bitmask *p, int cons) |
int | odr_generalstring (ODR o, char **p, int opt, const char *name) |
int | ber_oidc (ODR o, Odr_oid *p, int max_oid_size) |
int | odr_oid (ODR o, Odr_oid **p, int opt, const char *name) |
int | odr_choice (ODR o, Odr_arm arm[], void *p, void *whichp, const char *name) |
int | odr_cstring (ODR o, char **p, int opt, const char *name) |
int | odr_iconv_string (ODR o, char **p, int opt, const char *name) |
int | odr_sequence_of (ODR o, Odr_fun type, void *p, int *num, const char *name) |
int | odr_set_of (ODR o, Odr_fun type, void *p, int *num, const char *name) |
int | odr_any (ODR o, Odr_any **p, int opt, const char *name) |
int | ber_any (ODR o, Odr_any **p) |
int | completeBER (const char *buf, int len) |
determine whether a buffer is a complete BER buffer More... | |
void | odr_begin (ODR o) |
void | odr_end (ODR o) |
Odr_oid * | odr_oiddup (ODR odr, const Odr_oid *o) |
Odr_oid * | odr_oiddup_nmem (NMEM nmem, const Odr_oid *o) |
int | odr_grow_block (ODR b, int min_bytes) |
int | odr_write (ODR o, const char *buf, int bytes) |
int | odr_seek (ODR o, int whence, int offset) |
int | odr_dumpBER (FILE *f, const char *buf, int len) |
void | odr_choice_bias (ODR o, int what) |
void | odr_choice_enable_bias (ODR o, int mode) |
size_t | odr_total (ODR o) |
char * | odr_errmsg (int n) |
Odr_oid * | odr_getoidbystr (ODR o, const char *str) |
Odr_oid * | odr_getoidbystr_nmem (NMEM o, const char *str) |
int | odr_initmember (ODR o, void *p, int size) |
int | odr_peektag (ODR o, int *zclass, int *tag, int *cons) |
void | odr_setlenlen (ODR o, int len) |
int | odr_missing (ODR o, int opt, const char *name) |
char * | odr_prepend (ODR o, const char *prefix, const char *old) |
int | odr_external (ODR o, Odr_external **p, int opt, const char *name) |
int | odr_visiblestring (ODR o, char **p, int opt, const char *name) |
int | odr_graphicstring (ODR o, char **p, int opt, const char *name) |
int | odr_generalizedtime (ODR o, char **p, int opt, const char *name) |
int | odr_set_charset (ODR o, const char *to, const char *from) |
void | odr_set_stream (ODR o, void *handle, void(*stream_write)(ODR o, void *handle, int type, const char *buf, int len), void(*stream_close)(void *handle)) |
void | odr_printf (ODR o, const char *fmt,...) |
const char ** | odr_get_element_path (ODR o) |
Odr_int | odr_atoi (const char *s) |
Odr_int | odr_strtol (const char *nptr, char **endptr, int base) |
Variables | |
Odr_null * | ODR_NULLVAL |
char * | odr_errlist [] |
Header for ODR (Open Data Representation)
Definition in file odr.h.
#define odr_implicit_tag | ( | o, | |
t, | |||
p, | |||
cl, | |||
tg, | |||
opt, | |||
name | |||
) | (odr_implicit_settag((o), cl, tg), t ((o), (p), (opt), name) ) |
#define ODR_INT_PRINTF NMEM_INT_PRINTF |
#define ODR_MASK_GET | ( | mask, | |
num | |||
) |
#define ODR_MASK_SET | ( | mask, | |
num | |||
) |
#define ODR_MASK_ZERO | ( | mask | ) |
#define odr_release_mem | ( | m | ) | nmem_destroy(m) |
typedef struct odr_bitmask Odr_bitmask |
typedef nmem_bool_t Odr_bool |
typedef struct Odr_external Odr_external |
typedef nmem_int_t Odr_int |
Definition at line 21 of file ber_any.c.
References Odr_private::bp, completeBER(), odr::direction, ODR_DECODE, ODR_ENCODE, odr_malloc(), odr_max, odr_seterror(), odr_write(), OOTHER, odr::op, and OPROTO.
Referenced by odr_any().
int ber_bitstring | ( | ODR | o, |
Odr_bitmask * | p, | ||
int | cons | ||
) |
Definition at line 20 of file ber_bit.c.
References ber_declen(), ber_enclen(), odr_bitmask::bits, Odr_private::bp, odr::direction, odp_more_chunks(), ODR_BITMASK_SIZE, odr_bitstring(), ODR_DECODE, ODR_ENCODE, odr_max, ODR_PRINT, odr_putc, odr_seterror(), odr_write(), OOTHER, odr::op, OPROTO, and odr_bitmask::top.
Referenced by odr_bitstring().
int ber_boolean | ( | ODR | o, |
int * | val | ||
) |
Definition at line 21 of file ber_bool.c.
References ber_declen(), ber_enclen(), Odr_private::bp, odr::direction, ODR_DECODE, ODR_ENCODE, odr_max, ODR_PRINT, odr_putc, odr_seterror(), OOTHER, odr::op, and OPROTO.
Referenced by odr_bool().
int ber_declen | ( | const char * | buf, |
int * | len, | ||
int | max | ||
) |
ber_declen: Decode BER length octets. Returns
0 : number of bytes read
-1 : not enough room to read bytes within max bytes -2 : other error
After return: len = -1 indefinite length. len >= 0 definite length
Definition at line 93 of file ber_len.c.
Referenced by ber_bitstring(), ber_boolean(), ber_decinteger(), ber_octetstring(), ber_oidc(), completeBER_n(), do_dumpBER(), and odr_constructed_begin().
int ber_dectag | ( | const char * | cp, |
int * | zclass, | ||
int * | tag, | ||
int * | constructed, | ||
int | max | ||
) |
Decodes BER identifier octets.
Returns number of bytes read or -1 for error.
Definition at line 165 of file ber_tag.c.
Referenced by ber_tag(), completeBER_n(), do_dumpBER(), odr_choice(), and odr_peektag().
int ber_enclen | ( | ODR | o, |
int | len, | ||
int | lenlen, | ||
int | exact | ||
) |
ber_enclen: Encode BER length octets. If exact, lenlen is the exact desired encoding size, else, lenlen is the max available space. Len < 0 = Indefinite encoding. Returns: >0 success, number of bytes encoded. Returns: =0 success, indefinite start-marker set. 1 byte encoded. Returns: -1 failure, out of bounds.
Definition at line 30 of file ber_len.c.
References odr_putc, ODR_S_END, ODR_S_SET, odr_seek(), and odr_tell.
Referenced by ber_bitstring(), ber_boolean(), ber_encinteger(), ber_octetstring(), ber_oidc(), and odr_constructed_end().
int ber_enctag | ( | ODR | o, |
int | zclass, | ||
int | tag, | ||
int | constructed | ||
) |
Definition at line 33 of file ber_int.c.
References ber_decinteger(), ber_encinteger(), Odr_private::bp, odr::direction, ODR_DECODE, ODR_ENCODE, odr_max, ODR_PRINT, odr_seterror(), OOTHER, odr::op, and OPROTO.
Referenced by odr_enum(), and odr_integer().
int ber_null | ( | ODR | o | ) |
ber_null: BER-en/decoder for NULL type.
Definition at line 22 of file ber_null.c.
References Odr_private::bp, odr::direction, ODR_DECODE, ODR_ENCODE, odr_max, ODR_PRINT, odr_putc, odr_seterror(), OOTHER, odr::op, and OPROTO.
Referenced by odr_null().
Definition at line 22 of file ber_oct.c.
References ber_declen(), ber_enclen(), Odr_private::bp, odr_oct::buf, odr::direction, odr_oct::len, odp_more_chunks(), ODR_DECODE, ODR_ENCODE, odr_max, odr_octetstring(), ODR_PRINT, odr_seterror(), odr_strdupn(), odr_write(), OOTHER, odr::op, and OPROTO.
Referenced by odr_cstring(), odr_iconv_string(), and odr_octetstring().
Definition at line 19 of file ber_oid.c.
References ber_declen(), ber_enclen(), Odr_private::bp, odr::direction, ODATA, ODR_DECODE, ODR_ENCODE, odr_max, odr_putc, ODR_S_END, ODR_S_SET, odr_seek(), odr_seterror(), odr_tell, OOTHER, odr::op, and OPROTO.
Referenced by odr_oid().
int ber_tag | ( | ODR | o, |
void * | p, | ||
int | zclass, | ||
int | tag, | ||
int * | constructed, | ||
int | opt, | ||
const char * | name | ||
) |
Encode/decode BER tags.
On encoding:
* if p: write tag. return 1 (success) or -1 (error). * if !p: return 0. *
On decoding:
* if tag && zclass match up, advance pointer and return 1. set cons. * else leave pointer unchanged. Return 0. *
Definition at line 34 of file ber_tag.c.
References ber_dectag(), ber_enctag(), Odr_private::bp, Odr_ber_tag::br, Odr_private::buf, odr::direction, Odr_ber_tag::lclass, Odr_ber_tag::lcons, Odr_ber_tag::ltag, name, Odr_private::odr_ber_tag, odr_constructed_more(), ODR_DECODE, ODR_ENCODE, odr_max, ODR_PRINT, ODR_S_SET, odr_seek(), odr_setelement(), odr_seterror(), ODR_STACK_EMPTY, ODR_STACK_NOT_EMPTY, OOTHER, odr::op, OPROTO, opt, OREQUIRED, Odr_private::t_class, and Odr_private::top.
Referenced by odr_bitstring(), odr_bool(), odr_constructed_begin(), odr_cstring(), odr_enum(), odr_iconv_string(), odr_integer(), odr_null(), odr_octetstring(), and odr_oid().
int completeBER | ( | const char * | buf, |
int | len | ||
) |
determine whether a buffer is a complete BER buffer
buf | BER buffer |
len | length of buffer |
0 | package is incomplete |
>0 | package is complete and length is return value |
Definition at line 123 of file ber_any.c.
References completeBER_n(), yaz_log(), and YLOG_LOG.
Referenced by ber_any(), and cs_complete_auto_x().
int odp_more_chunks | ( | ODR | o, |
const char * | base, | ||
int | len | ||
) |
Definition at line 29 of file odr_util.c.
References Odr_private::bp, and odr::op.
Referenced by ber_bitstring(), and ber_octetstring().
This is a catch-all type. It stuffs a random ostring (assumed to be properly encoded) into the stream, or reads a full data element. Implicit tagging does not work, and neither does the optional flag, unless the element is the last in a sequence.
Definition at line 23 of file odr_any.c.
References ber_any(), odr::direction, odr::error, name, ODR_DECODE, odr_malloc(), odr_missing(), ODR_PRINT, odr_printf(), odr_prname(), and opt.
Referenced by ill_Electronic_Delivery_Service_0(), ill_Electronic_Delivery_Service_1(), ill_Extension(), odr_external(), and z_External().
Odr_int odr_atoi | ( | const char * | s | ) |
Definition at line 146 of file odr_mem.c.
References odr_strtol().
Referenced by get_facet_term_count(), get_term_hit(), p_query_parse_attr(), rpn_proximity(), yaz_match_xsd_integer(), yaz_solr_decode_result(), yaz_sort_spec(), yaz_sru_proxy_get_facet_term_count(), z_Term_create(), and ZOOM_memcached_search().
void odr_begin | ( | ODR | o | ) |
int odr_bitstring | ( | ODR | o, |
Odr_bitmask ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 22 of file odr_bit.c.
References ber_bitstring(), ber_tag(), odr::direction, odr::error, name, ODR_BITMASK_SIZE, ODR_BITSTRING, ODR_DECODE, odr_malloc(), ODR_MASK_GET, odr_missing(), ODR_PRINT, odr_printf(), odr_prname(), ODR_UNIVERSAL, odr::op, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ber_bitstring(), odr_external(), z_External(), z_Options(), and z_ProtocolVersion().
Definition at line 21 of file odr_bool.c.
References ber_boolean(), ber_tag(), odr::direction, odr::error, name, ODR_BOOLEAN, ODR_DECODE, odr_malloc(), odr_missing(), ODR_PRINT, odr_printf(), odr_prname(), ODR_UNIVERSAL, odr::op, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Cancel_Reply(), ill_Conditional_Reply(), ill_Cost_Info_Type(), ill_Date_Due(), ill_Extension(), ill_ItemRequest(), ill_Renew_Answer(), ill_Request(), ill_Requester_Optional_Messages_Type(), ill_Responder_Optional_Messages_Type(), ill_Third_Party_Info_Type(), z_CircRecord(), z_CompSpec(), z_DatabaseInfo(), z_DuplicateDetectionRequest(), z_ElementData(), z_ElementInfo(), z_EScanInfo(), z_ExtendedServicesInfo(), z_InitResponse(), z_MultipleSearchTerms_2_s(), z_OCLC_UserInformation(), z_Order(), z_OriginProposal(), z_PerElementDetails(), z_PQSOriginPartToKeep(), z_ProximityOperator(), z_ProximitySupport(), z_ResourceControlRequest(), z_ResourceControlResponse(), z_ResponseUnit1(), z_RpnCapabilities(), z_SearchInfoReport_s(), z_SearchRequest(), z_SearchResponse(), z_TargetInfo(), z_TargetResponse(), z_TermListElement(), z_TriggerResourceControlRequest(), and z_Triple().
Definition at line 56 of file odr_mem.c.
References odr::mem, and nmem_booldup().
Referenced by boolVal(), dummy_opac(), response_searchRequest(), rpn_proximity(), yaz_xml2query_operator(), zget_InitResponse(), zget_ResourceControlRequest(), zget_ResourceControlResponse(), zget_SearchRequest(), and zget_SearchResponse().
Definition at line 17 of file odr_choice.c.
References ber_dectag(), Odr_private::bp, Odr_private::choice_bias, odr::direction, odr::error, odr_arm::fun, name, odr_constructed_begin(), odr_constructed_end(), odr_constructed_more(), ODR_DECODE, ODR_IMPLICIT, odr_implicit_settag(), odr_max, ODR_NONE, ODR_PRINT, odr_printf(), odr_prname(), odr::op, Odr_private::stack_top, odr_arm::tag, odr_arm::which, and odr_arm::zclass.
Referenced by ill_Answer(), ill_APDU(), ill_Damaged_Details(), ill_Delivery_Service(), ill_Electronic_Delivery_Service(), ill_Name_Of_Person_Or_Institution(), ill_Person_Or_Institution_Symbol(), ill_Provider_Error_Report(), ill_String(), ill_Supply_Details(), ill_User_Error_Report(), odr_external(), z_AccessControlRequest(), z_AccessControlResponse(), z_AccessCtrl(), z_Admin(), z_APDU(), z_AttributeElement(), z_AttributeOccurrence(), z_ChallengeUnit1(), z_CharSetandLanguageNegotiation(), z_DatabaseInfo(), z_Date(), z_DateQuarter(), z_DateSeason(), z_DefaultDiagFormat(), z_DES_RN_Object(), z_DiagFormat(), z_DiagnosticFormat_s(), z_DiagRec(), z_DuplicateDetectionCriterion(), z_EIExportInvocation(), z_EIOriginPartNotToKeep(), z_EIOriginPartToKeep(), z_ElementData(), z_ElementDataType(), z_ElementRequest(), z_ElementRequestCompositeElement(), z_ElementSetNames(), z_ElementSpec(), z_Entry(), z_Environment(), z_Era(), z_ESAdminOriginPartNotToKeep(), z_ESAdminOriginPartToKeep(), z_ESDestination(), z_ESExportSpecification(), z_ETagUnit(), z_ExplainRecord(), z_External(), z_ExtServices(), z_FragmentSyntax(), z_HoldingsRecord(), z_IconObjectUnit(), z_IdAuthentication(), z_IOBilling(), z_IOItemOrder(), z_Iso2022(), z_IU0SuppliedRecords_elem(), z_IU0SuppliedRecordsId(), z_IU0TaskPackageRecordStructure(), z_IU0Update(), z_IUSuppliedRecords_elem(), z_IUSuppliedRecordsId(), z_IUTaskPackageRecordStructure(), z_IUUpdate(), z_KRBObject(), z_NamePlusRecord(), z_NetworkAddress(), z_OccurrenceByAttributesElem(), z_Occurrences(), z_Operand(), z_Operator(), z_OriginProposal_0(), z_OtherInformationUnit(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_PQSPeriod(), z_PQSPeriodicQuerySchedule(), z_PQueryOriginPartNotToKeep(), z_PQueryPersistentQuery(), z_PrivateCharacterSet(), z_PromptId(), z_PromptObject1(), z_Proximity(), z_ProximityOperator(), z_ProxSupportUnit(), z_PRPersistentResultSet(), z_Query(), z_QueryExpression(), z_QueryTypeDetails(), z_RecordComposition(), z_Records(), z_ResponseUnit1(), z_ResultsByDB_s(), z_RetentionCriterion(), z_RPNStructure(), z_Scan(), z_Segmentation(), z_Sort(), z_SortCriterion(), z_SortElement(), z_SortKey(), z_SortKeyDetails(), z_SortKeySpec(), z_Specification(), z_StringOrNumeric(), z_TargetResponse(), z_Term(), z_Time(), z_Triple(), z_UniverseReport(), z_ValueDescription(), and z_ValueSet().
void odr_choice_bias | ( | ODR | o, |
int | what | ||
) |
Definition at line 90 of file odr_choice.c.
References Odr_private::choice_bias, Odr_private::enable_bias, and odr::op.
Referenced by z_External().
void odr_choice_enable_bias | ( | ODR | o, |
int | mode | ||
) |
Definition at line 96 of file odr_choice.c.
References Odr_private::enable_bias, and odr::op.
int odr_constructed_begin | ( | ODR | o, |
void * | p, | ||
int | zclass, | ||
int | tag, | ||
const char * | name | ||
) |
Definition at line 24 of file odr_cons.c.
References odr_constack::base, odr_constack::base_offset, ber_declen(), ber_tag(), Odr_private::bp, odr::direction, odr::error, Odr_private::indent, odr_constack::len, odr_constack::len_offset, odr_constack::lenb, odr_constack::lenlen, Odr_private::lenlen, name, odr_constack::name, odr_constack::next, ODR_DECODE, ODR_ENCODE, odr_malloc(), odr_max, ODR_MAX_STACK, ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_STACK_POP, odr_tell, odr_write(), OOTHER, odr::op, OSTACK, odr_constack::prev, Odr_private::stack_first, Odr_private::stack_top, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Damaged(), ill_Electronic_Delivery_Service(), ill_Expired(), ill_Forward_Notification(), ill_Lost(), ill_Message(), ill_Overdue(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Returned(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), odr_choice(), odr_sequence_begin(), odr_set_begin(), z_ChallengeUnit1(), z_DatabaseInfo(), z_Date(), z_DiagnosticFormat_s(), z_EIOriginPartNotToKeep(), z_EIOriginPartToKeep(), z_ElementRequestCompositeElement(), z_ESAdminOriginPartToKeep(), z_IconObjectUnit(), z_IOBilling(), z_IU0SuppliedRecords_elem(), z_IU0TaskPackageRecordStructure(), z_IUSuppliedRecords_elem(), z_IUTaskPackageRecordStructure(), z_NamePlusRecord(), z_Operator(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_ProximityOperator(), z_ResponseUnit1(), z_ResultsByDB_s(), z_SortKeyDetails(), z_SortKeySpec(), z_TargetResponse(), z_Time(), and z_Triple().
int odr_constructed_end | ( | ODR | o | ) |
Definition at line 148 of file odr_cons.c.
References odr_constack::base, odr_constack::base_offset, ber_enclen(), Odr_private::bp, odr::direction, odr::error, Odr_private::indent, odr_constack::len, odr_constack::len_offset, odr_constack::lenlen, OCONLEN, ODR_DECODE, ODR_ENCODE, ODR_PRINT, odr_printf(), odr_prname(), odr_putc, ODR_S_END, ODR_S_SET, odr_seek(), odr_seterror(), ODR_STACK_EMPTY, ODR_STACK_POP, odr_tell, OLENOV, OOTHER, odr::op, and Odr_private::stack_top.
Referenced by ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Damaged(), ill_Electronic_Delivery_Service(), ill_Expired(), ill_Forward_Notification(), ill_Lost(), ill_Message(), ill_Overdue(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Returned(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), odr_choice(), odr_sequence_end(), odr_set_end(), z_ChallengeUnit1(), z_DatabaseInfo(), z_Date(), z_DiagnosticFormat_s(), z_EIOriginPartNotToKeep(), z_EIOriginPartToKeep(), z_ElementRequestCompositeElement(), z_ESAdminOriginPartToKeep(), z_IconObjectUnit(), z_IOBilling(), z_IU0SuppliedRecords_elem(), z_IU0TaskPackageRecordStructure(), z_IUSuppliedRecords_elem(), z_IUTaskPackageRecordStructure(), z_NamePlusRecord(), z_Operator(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_ProximityOperator(), z_ResponseUnit1(), z_ResultsByDB_s(), z_SortKeyDetails(), z_SortKeySpec(), z_TargetResponse(), z_Time(), and z_Triple().
int odr_constructed_more | ( | ODR | o | ) |
Definition at line 136 of file odr_cons.c.
References odr_constack::base, Odr_private::bp, odr::error, odr_constack::len, ODR_STACK_EMPTY, odr::op, and Odr_private::stack_top.
Referenced by ber_tag(), odr_choice(), odr_peektag(), and odr_sequence_more().
Definition at line 66 of file odr_mem.c.
References odr_oct::buf, odr_oct::len, odr_malloc(), and odr_strdupn().
Referenced by create_update_package(), create_xmlupdate_package(), encode_ill_request(), handle_srw_response(), process_scanRequest(), yaz_xml2query_term(), z_ext_record2(), z_Term_create(), zget_init_diagnostics_octet(), and ztest_esrequest().
ODR odr_createmem | ( | int | direction | ) |
Definition at line 200 of file odr.c.
References Odr_private::buf, Odr_private::can_grow, odr::direction, Odr_private::enable_bias, Odr_private::iconv_handle, Odr_ber_tag::lclass, log_level, log_level_initialized, odr::mem, nmem_create(), Odr_private::odr_ber_tag, odr_reset(), odr_setprint_noclose(), odr::op, Odr_private::pos, Odr_private::size, Odr_private::top, xmalloc, yaz_log(), and yaz_log_module_level().
Referenced by compare_attr(), cql_transform_parse_tok_line(), create_association(), create_update_package(), encode_APDU(), replace_node(), yaz_retrieval_create(), yaz_url_create(), zget_init_diagnostics_octet(), ZOOM_API(), ZOOM_connection_connect(), ZOOM_connection_create(), ZOOM_connection_package(), ZOOM_connection_scan1(), ZOOM_memcached_add(), ZOOM_memcached_hitcount(), ZOOM_query_create(), ZOOM_record_clone(), and ZOOM_resultset_create().
int odr_cstring | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 60 of file odr_oct.c.
References ber_octetstring(), ber_tag(), odr_oct::buf, odr::direction, odr::error, odr_oct::len, name, ODR_DECODE, ODR_ENCODE, odr_malloc(), odr_missing(), ODR_OCTETSTRING, ODR_PRINT, odr_printf(), odr_prname(), ODR_UNIVERSAL, odr::op, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by odr_generalizedtime(), odr_graphicstring(), and odr_visiblestring().
void odr_destroy | ( | ODR | o | ) |
Definition at line 253 of file odr.c.
References Odr_private::buf, Odr_private::can_grow, Odr_private::iconv_handle, log_level, odr::mem, nmem_destroy(), odr::op, Odr_private::print, Odr_private::stream_close, xfree, yaz_iconv_close(), and yaz_log().
Referenced by compare_attr(), cql_transform_parse_tok_line(), create_update_package(), destroy_association(), encode_APDU(), replace_node(), resultset_destroy(), yaz_retrieval_destroy(), yaz_url_destroy(), zget_init_diagnostics_octet(), ZOOM_API(), ZOOM_connection_connect(), ZOOM_connection_destroy(), ZOOM_memcached_add(), ZOOM_memcached_hitcount(), ZOOM_package_destroy(), ZOOM_query_destroy(), ZOOM_record_clone(), ZOOM_record_release(), and ZOOM_scanset_destroy().
int odr_dumpBER | ( | FILE * | f, |
const char * | buf, | ||
int | len | ||
) |
Definition at line 129 of file dumpber.c.
References do_dumpBER().
Referenced by do_read(), ir_read(), and ztest_esrequest().
void odr_end | ( | ODR | o | ) |
Definition at line 19 of file odr_enum.c.
References ber_integer(), ber_tag(), odr::direction, odr::error, name, ODR_DECODE, ODR_ENUM, odr_malloc(), odr_missing(), ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, odr::op, OPROTO, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_APDU_Type(), ill_Conditional_Results(), ill_Current_State(), ill_General_Problem(), ill_History_Report(), ill_Intermediary_Problem(), ill_Item_Id(), ill_Medium_Type(), ill_Place_On_Hold_Type(), ill_Reason_Locs_Provided(), ill_Reason_No_Report(), ill_Reason_Unfilled(), ill_Report_Source(), ill_Requester_Optional_Messages_Type(), ill_Responder_Optional_Messages_Type(), ill_Retry_Results(), ill_Search_Type(), ill_Service_Type(), ill_Supply_Details(), ill_Supply_Medium_Type(), ill_System(), ill_Third_Party_Info_Type(), ill_Transaction_Id_Problem(), ill_Transaction_Results(), ill_Transaction_Type(), ill_Unable_To_Perform(), and ill_Will_Supply_Results().
char* odr_errmsg | ( | int | n | ) |
Definition at line 52 of file odr.c.
References odr_errlist.
Referenced by ir_read(), process_gdu_response(), and ztest_esrequest().
int odr_external | ( | ODR | o, |
Odr_external ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 15 of file odr_use.c.
References Odr_external::descriptor, Odr_external::direct_reference, Odr_external::indirect_reference, name, odr_any(), odr_bitstring(), odr_choice(), ODR_CONTEXT, ODR_EXPLICIT, ODR_EXTERNAL, ODR_EXTERNAL_arbitrary, ODR_EXTERNAL_octet, ODR_EXTERNAL_single, odr_graphicstring(), ODR_IMPLICIT, odr_implicit_settag(), odr_integer(), odr_missing(), odr_octetstring(), odr_oid(), odr_sequence_begin(), odr_sequence_end(), ODR_UNIVERSAL, opt, Odr_external::u, and Odr_external::which.
Referenced by ill_Answer(), ill_Item_Id(), ill_ItemRequest(), ill_Request(), and ill_Supplemental_Item_Description().
Definition at line 23 of file odr_mem.c.
References odr::mem, and nmem_create().
Referenced by handle_srw_response(), handle_srw_scan_response(), handle_Z3950_records(), handle_Z3950_scan_response(), and ir_read().
int odr_generalizedtime | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 63 of file odr_use.c.
References name, odr_cstring(), ODR_GENERALIZEDTIME, odr_implicit_tag, ODR_UNIVERSAL, and opt.
Referenced by z_CommonInfo(), z_DatabaseInfo(), z_ElementData(), z_IU0SuppliedRecordsId(), z_IUSuppliedRecordsId(), z_PQSOriginPartNotToKeep(), z_PQSTargetPart(), z_TaskPackage(), and z_Term().
int odr_generalstring | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 51 of file odr_use.c.
References name, ODR_GENERALSTRING, odr_iconv_string(), odr_implicit_tag, ODR_UNIVERSAL, and opt.
Referenced by ill_String(), and z_InternationalString().
const char** odr_get_element_path | ( | ODR | o | ) |
Definition at line 95 of file odr.c.
References odr_constack::name, odr_malloc(), odr::op, odr_constack::prev, Odr_private::stack_top, Odr_private::tmp_names_buf, and Odr_private::tmp_names_sz.
Referenced by odr_perror().
char* odr_getbuf | ( | ODR | o, |
int * | len, | ||
int * | size | ||
) |
Definition at line 277 of file odr.c.
References Odr_private::buf, odr::op, Odr_private::size, and Odr_private::top.
Referenced by compare_attr(), encode_ill_request(), process_gdu_response(), send_APDU(), yaz_url_exec(), zget_init_diagnostics_octet(), ZOOM_memcached_add(), ZOOM_memcached_hitcount(), ZOOM_package_send(), ZOOM_record_clone(), and ZOOM_send_GDU().
const char* odr_getelement | ( | ODR | o | ) |
Definition at line 90 of file odr.c.
References Odr_private::element, and odr::op.
Referenced by do_read(), ir_read(), odr_perror(), and process_gdu_response().
int odr_geterror | ( | ODR | o | ) |
Definition at line 78 of file odr.c.
References odr::error.
Referenced by ir_read(), process_gdu_response(), and ztest_esrequest().
int odr_geterrorx | ( | ODR | o, |
int * | x | ||
) |
Definition at line 83 of file odr.c.
References odr::error, Odr_private::error_id, and odr::op.
Referenced by do_read(), and odr_perror().
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().
Definition at line 65 of file odr_util.c.
References nmem_malloc(), oid_dotstring_to_oid(), oid_oidcpy(), oid_oidlen(), and OID_SIZE.
Referenced by odr_getoidbystr(), and yaz_string_to_oid_nmem().
int odr_graphicstring | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 57 of file odr_use.c.
References name, odr_cstring(), ODR_GRAPHICSTRING, odr_implicit_tag, ODR_UNIVERSAL, and opt.
Referenced by odr_external(), and z_External().
int odr_grow_block | ( | ODR | b, |
int | min_bytes | ||
) |
Definition at line 77 of file odr_mem.c.
References Odr_private::buf, Odr_private::can_grow, odr::op, Odr_private::size, xmalloc, and xrealloc.
Referenced by odr_seek(), and odr_write().
int odr_iconv_string | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 107 of file odr_oct.c.
References ber_octetstring(), ber_tag(), odr_oct::buf, odr::direction, odr::error, Odr_private::iconv_handle, odr_oct::len, name, ODATA, ODR_DECODE, ODR_ENCODE, odr_malloc(), odr_missing(), ODR_OCTETSTRING, ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, odr::op, opt, Odr_private::t_class, Odr_private::t_tag, and yaz_iconv().
Referenced by odr_generalstring().
int odr_implicit_settag | ( | ODR | o, |
int | zclass, | ||
int | tag | ||
) |
Definition at line 32 of file odr_tag.c.
References odr::error, odr::op, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Conditional_Results(), ill_Damaged(), ill_Estimate_Results(), ill_Expired(), ill_Forward_Notification(), ill_Hold_Placed_Results(), ill_ItemRequest(), ill_Locations_Results(), ill_Lost(), ill_Message(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Retry_Results(), ill_Returned(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), ill_Supply_Details(), ill_Unfilled_Results(), ill_Will_Supply_Results(), odr_choice(), odr_external(), z_AccessInfo(), z_AccessRestrictionsUnit(), z_AttCombo(), z_AttributeCombinations(), z_AttributeDescription(), z_AttributeDetails(), z_AttributeList(), z_AttributeSetDetails(), z_AttributeSetInfo(), z_AttributesPlusTerm(), z_AttributeType(), z_AttributeTypeDetails(), z_AttributeValue(), z_BadSpec(), z_BriefBib(), z_CategoryList(), z_ChallengeUnit1(), z_ComplexAttribute(), z_CompSpec(), z_Costs(), z_DatabaseInfo(), z_DuplicateDetectionRequest(), z_DuplicateDetectionResponse(), z_ElementMetaData(), z_ElementSetDetails(), z_ESAdminTargetPart(), z_Espec1(), z_ExtendedServicesResponse(), z_External(), z_FacetField(), z_HoldingsAndCircData(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_Iso8777Capabilities(), z_IU0TargetPart(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_ListEntries(), z_OPACRecord(), z_OriginProposal(), z_OtherInformation(), z_PerElementDetails(), z_Permissions_s(), z_PQSOriginPartToKeep(), z_PQueryOriginPartToKeep(), z_PresentRequest(), z_PrivateCapabilities(), z_ProximitySupport(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_ResourceReport1(), z_ResourceReport2(), z_ResultSetPlusAttributes(), z_RetrievalRecordDetails(), z_RpnCapabilities(), z_ScanRequest(), z_SchemaInfo(), z_SearchRequest(), z_Segment(), z_SortDetails(), z_SortKeyDetails(), z_SortRequest(), z_SortResponse(), z_TagSetElements(), z_TagSetInfo(), z_TargetInfo(), z_TaskPackage(), z_TermInfo(), z_TermListDetails(), z_TermListElement(), z_TermListInfo(), z_UnitInfo(), z_UnitType(), z_Variant(), z_VariantClass(), and z_VariantSetInfo().
int odr_initmember | ( | ODR | o, |
void * | p, | ||
int | size | ||
) |
Definition at line 44 of file odr_tag.c.
References odr::direction, odr::error, ODR_DECODE, odr_malloc(), odr::op, and Odr_private::t_class.
Referenced by ill_Already_Tried_List_Type(), ill_APDU(), ill_Damaged_DetailsSpecific_units(), ill_Delivery_Service(), ill_Delivery_ServiceElectronic_delivery(), ill_Name_Of_Person_Or_Institution(), ill_Overdue_ExtensionS(), ill_Person_Or_Institution_Symbol(), ill_Provider_Error_Report(), ill_Send_To_List_Type(), ill_String(), ill_Supplemental_Item_Description(), ill_SystemNo(), ill_User_Error_Report(), z_AccessCtrl(), z_AccessRestrictions(), z_Admin(), z_AltOidList(), z_APDU(), z_AttributeCombination(), z_AttributeList(), z_AttributeValueList(), z_AttrListList(), z_byDatabaseList(), z_Challenge1(), z_CharSetandLanguageNegotiation(), z_DatabaseList(), z_DatabaseSpecific(), z_DateQuarter(), z_DateSeason(), z_DES_RN_Object(), z_DiagFormat(), z_DiagnosticFormat(), z_DiagRec(), z_DiagRecs(), z_DuplicateDetectionCriterion(), z_EIExportInvocation(), z_EIOriginPartNotToKeepRanges(), z_ElementData(), z_ElementDataType(), z_ElementInfoList(), z_ElementRequest(), z_ElementRequestCompositeElementPrimitives(), z_ElementRequestCompositeElementSpecs(), z_ElementSetNames(), z_ElementSpec(), z_Entry(), z_Environment(), z_Era(), z_ESAdminOriginPartNotToKeep(), z_ESDestination(), z_ESExportSpecification(), z_ETagPath(), z_ETagUnit(), z_ExplainRecord(), z_ExtServices(), z_FacetList(), z_FragmentSyntax(), z_GenericRecord(), z_HoldingsRecord(), z_HumanString(), z_IconObject(), z_IdAuthentication(), z_IOItemOrder(), z_Iso2022(), z_IU0SuppliedRecords(), z_IU0SuppliedRecordsId(), z_IU0Update(), z_IUSuppliedRecords(), z_IUSuppliedRecordsId(), z_IUTaskPackageRecordStructureSurrogateDiagnostics(), z_IUUpdate(), z_KRBObject(), z_ListStatuses(), z_MultipleSearchTerms_2(), z_NamePlusRecordList(), z_NetworkAddress(), z_OccurrenceByAttributes(), z_Occurrences(), z_OidList(), z_Operand(), z_Operator(), z_OriginProposal_0(), z_OtherInformation(), z_Path(), z_Permissions(), z_PQSPeriod(), z_PQSPeriodicQuerySchedule(), z_PQueryOriginPartNotToKeep(), z_PQueryPersistentQuery(), z_PrivateCharacterSet(), z_PrivateCharacterSetViaOid(), z_PromptId(), z_PromptObject1(), z_Proximity(), z_ProxSupportUnit(), z_PRPersistentResultSet(), z_Query(), z_QueryExpression(), z_QueryTypeDetails(), z_RecordComposition(), z_Records(), z_Response1(), z_ResultsByDB(), z_ResultsByDB_sList(), z_RetentionCriterion(), z_RPNStructure(), z_Scan(), z_SearchInfoReport(), z_Segmentation(), z_Sort(), z_SortCriterion(), z_SortCriterionPreferredDatabases(), z_SortDbSpecificList(), z_SortElement(), z_SortKey(), z_SortKeySpecList(), z_StringList(), z_StringOrNumeric(), z_TagPath(), z_Term(), z_ValueDescription(), z_ValueSet(), and z_ValueSetEnumerated().
Definition at line 51 of file odr_mem.c.
References odr::mem, and nmem_intdup().
Referenced by create_update_package(), encode_item_order(), facet_term_create_cstr(), ill_get_int(), intVal(), parse_facet(), process_deleteRequest(), process_initRequest(), process_presentRequest(), process_scanRequest(), process_sortRequest(), read_grs1(), response_searchRequest(), rpn_proximity(), srw_bend_fetch(), srw_bend_scan(), srw_bend_search(), yaz_match_xsd_integer(), yaz_mk_sru_surrogate(), yaz_oi_update(), yaz_solr_decode_result(), yaz_solr_decode_result_docs(), yaz_solr_decode_scan_result(), yaz_sort_spec(), yaz_sru_decode_integer(), yaz_xml2query_operator(), z_Term_create(), zget_Close(), zget_DefaultDiagFormat(), zget_DeleteResultSetRequest(), zget_DeleteResultSetResponse(), zget_DuplicateDetectionResponse(), zget_ExtendedServicesRequest(), zget_ExtendedServicesResponse(), zget_InitRequest(), zget_InitResponse(), zget_PresentRequest(), zget_PresentResponse(), zget_ResourceReportResponse(), zget_ScanRequest(), zget_ScanResponse(), zget_SearchRequest(), zget_SearchResponse(), zget_Segment(), zget_SortResponse(), zget_TriggerResourceControlRequest(), ZOOM_connection_srw_send_scan(), ZOOM_connection_srw_send_search(), ZOOM_connection_Z3950_send_scan(), and ztest_esrequest().
Definition at line 19 of file odr_int.c.
References ber_integer(), ber_tag(), odr::direction, odr::error, name, ODR_DECODE, ODR_INT_PRINTF, ODR_INTEGER, odr_malloc(), odr_missing(), ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, odr::op, OPROTO, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Damaged(), ill_Damaged_DetailsSpecific_units(), ill_Expired(), ill_Extension(), ill_Forward_Notification(), ill_ItemRequest(), ill_Lost(), ill_Message(), ill_Overdue(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Returned(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), ill_Supply_Details(), ill_Units_Per_Medium_Type(), odr_external(), z_AccessRestrictionsUnit(), z_Attribute(), z_AttributeElement(), z_AttributeOccurrence(), z_AttributeType(), z_AttributeTypeDetails(), z_BriefBib(), z_byDatabaseList_s(), z_ChallengeUnit1(), z_CloseReason(), z_ComplexAttribute(), z_DatabaseInfo(), z_Date(), z_DateMonthAndDay(), z_DbUnavail_0(), z_DefaultDiagFormat(), z_DeleteResultSetRequest(), z_DeleteResultSetResponse(), z_DeleteStatus(), z_DiagFormat(), z_DiagTerm(), z_DuplicateDetectionCriterion(), z_DuplicateDetectionResponse(), z_EIOriginPartNotToKeepRanges_s(), z_EIOriginPartToKeep(), z_ElementData(), z_ESAdminTargetPart(), z_EScanInfo(), z_Espec1(), z_Estimate1(), z_EstimateType(), z_ExtendedServicesInfo(), z_ExtendedServicesRequest(), z_ExtendedServicesResponse(), z_External(), z_ExtServices(), z_FacetTerm(), z_FormatSpec(), z_HitVector(), z_InfoCategory(), z_InitialSet(), z_InitRequest(), z_InitResponse(), z_IntUnit(), z_IOResultSetItem(), z_IOTargetPart(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_IU0CorrelationInfo(), z_IU0OriginPartToKeep(), z_IU0SuppliedRecords_elem(), z_IU0TargetPart(), z_IU0TaskPackageRecordStructure(), z_IUCorrelationInfo(), z_IUOriginPartToKeep(), z_IUSuppliedRecords_elem(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_LeftAndRight(), z_NetworkAddressIA(), z_OccurrenceByAttributesElem(), z_OccurValues(), z_OCLC_UserInformation(), z_Order(), z_PathUnit(), z_PerElementDetails(), z_Permissions_s(), z_PQSOriginPartToKeep(), z_PQSTargetPart(), z_PresentRequest(), z_PresentResponse(), z_PresentStatus(), z_PrimitiveDataType(), z_ProcessingInformation(), z_PromptIdEnumeratedPrompt(), z_PROriginPartNotToKeep(), z_Proximity(), z_ProximityOperator(), z_ProxSupportPrivate(), z_ProxSupportUnit(), z_ProxUnit(), z_PRTargetPart(), z_Range(), z_ResourceControlRequest(), z_ResourceReportResponse(), z_ResultsByDB_s(), z_RetentionCriterion(), z_RpnCapabilities(), z_Scan(), z_ScanRequest(), z_ScanResponse(), z_SearchInfoReport_s(), z_SearchRequest(), z_SearchResponse(), z_Segment(), z_Segmentation(), z_Sort(), z_SortKeyDetails(), z_SortKeySpec(), z_SortResponse(), z_SpecificTag(), z_StringOrNumeric(), z_TaggedElement(), z_TagPath_s(), z_TagTypeMapping(), z_TargetInfo(), z_TaskPackage(), z_Term(), z_TermInfo(), z_TermListDetails(), z_TermListElement(), z_Time(), z_TooMany(), z_TriggerResourceControlRequest(), z_Triple(), z_Unit(), z_UniverseReport(), z_Usage(), z_ValueDescription(), z_VariantClass(), and z_VariantType().
void* odr_malloc | ( | ODR | o, |
size_t | size | ||
) |
Definition at line 31 of file odr_mem.c.
References odr::mem, and nmem_malloc().
Referenced by addterms(), append_extra_arg(), assoc_init_reset(), bend_init(), ber_any(), build_facet_response(), create_admin_package(), create_update_package(), create_xmlupdate_package(), decode_headers_content(), diagrec(), dummy_opac(), dummy_xml_record(), encode_ill_request(), encode_item_order(), facet_field_create(), facet_list_create(), facet_term_create_cstr(), generate(), get_attributeList(), get_zoom_facet_field(), handle_srw_response(), ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Damaged(), ill_Expired(), ill_Forward_Notification(), ill_get_APDU(), ill_get_bool(), ill_get_Cancel(), ill_get_Client_Id(), ill_get_Delivery_Address(), ill_get_ILL_String_x(), ill_get_ILLRequest(), ill_get_Item_Id(), ill_get_ItemRequest(), ill_get_Name_Of_Person_Or_Institution(), ill_get_Person_Or_Insitution_Symbol(), ill_get_Postal_Address(), ill_get_Requester_Optional_Messages_Type(), ill_get_Search_Type(), ill_get_Service_Date_original(), ill_get_Service_Date_this(), ill_get_Service_Date_Time(), ill_get_System_Address(), ill_get_System_Id(), ill_get_Transaction_Id(), ill_Lost(), ill_Message(), ill_Overdue(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Returned(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), my_init(), odr_any(), odr_bitstring(), odr_bool(), odr_constructed_begin(), odr_create_Odr_oct(), odr_cstring(), odr_enum(), odr_get_element_path(), odr_iconv_string(), odr_initmember(), odr_integer(), odr_octetstring(), odr_oid(), odr_prepend(), odr_sequence_begin(), odr_sequence_x(), odr_set_begin(), p_query_parse_attr(), p_query_rpn_mk(), pack_records(), parse_facet(), process_deleteRequest(), process_initRequest(), process_presentRequest(), process_scanRequest(), process_sortRequest(), process_z_response(), read_file(), read_grs1(), record_cache_add(), replace_node(), response_searchRequest(), retrieve_fetch(), rpn_complex(), rpn_proximity(), rpn_simple(), rpn_structure(), rpn_term_attributes(), send_Z3950_sort(), srw_bend_explain_default(), srw_bend_fetch(), srw_bend_init(), srw_bend_scan(), srw_bend_search(), yaz_add_name_value_int(), yaz_add_srw_diagnostic_uri(), yaz_array_to_uri(), yaz_check_location(), yaz_cookies_request(), yaz_decode_http_request(), yaz_decode_http_response(), yaz_encode_sru_dbpath_odr(), yaz_mk_sru_surrogate(), yaz_oi_set_facetlist(), yaz_oi_update(), yaz_pqf_parse_facet_list(), yaz_query_charset_convert_buf(), yaz_set_proposal_charneg(), yaz_set_response_charneg(), yaz_solr_decode_result_docs(), yaz_solr_decode_scan_result(), yaz_solr_encode_request(), yaz_sort_spec(), yaz_sru_decode(), yaz_sru_facet_response(), yaz_sru_get_encode(), yaz_sru_soap_encode(), yaz_srw_codec(), yaz_srw_decode_diagnostics(), yaz_srw_get_core_ver(), yaz_srw_get_extra_record(), yaz_srw_get_pdu(), yaz_srw_get_record_versions(), yaz_srw_get_records(), yaz_srw_record(), yaz_srw_records(), yaz_srw_terms(), yaz_srw_versions(), yaz_ucp_codec(), yaz_uri_to_array(), yaz_xml2query_(), yaz_xml2query_apt(), yaz_xml2query_attribute_element(), yaz_xml2query_operator(), yaz_xml2query_rpn(), yaz_xml2query_rpnstructure(), yaz_xml2query_term(), Z3950_send_present(), Z3950_send_search(), z_ext_record2(), z_ext_record_oid_any(), z_GDU(), z_get_CharSetandLanguageNegotiation(), z_get_HTTP_Request(), z_get_HTTP_Request_uri(), z_get_HTTP_Response_server(), z_get_OriginProposal(), z_get_OriginProposal_0(), z_get_TargetResponse(), z_HTTP_header_add(), z_HTTP_header_add_basic_auth(), z_HTTP_header_add_content_type(), z_HTTP_header_set(), z_soap_codec_enc_xsl(), z_soap_error(), z_Term_create(), zget_AccessControlRequest(), zget_AccessControlResponse(), zget_APDU(), zget_Close(), zget_DefaultDiagFormat(), zget_DeleteResultSetRequest(), zget_DeleteResultSetResponse(), zget_DiagRec(), zget_DiagRecs(), zget_DuplicateDetectionRequest(), zget_DuplicateDetectionResponse(), zget_ExtendedServicesRequest(), zget_ExtendedServicesResponse(), zget_init_diagnostics(), zget_init_diagnostics_octet(), zget_InitRequest(), zget_InitResponse(), zget_PresentRequest(), zget_PresentResponse(), zget_ResourceControlRequest(), zget_ResourceControlResponse(), zget_ResourceReportRequest(), zget_ResourceReportResponse(), zget_ScanRequest(), zget_ScanResponse(), zget_SearchRequest(), zget_SearchResponse(), zget_Segment(), zget_SortRequest(), zget_SortResponse(), zget_surrogateDiagRec(), zget_TriggerResourceControlRequest(), ZOOM_connection_Z3950_send_init(), ZOOM_handle_facet_list(), ZOOM_handle_sru(), ZOOM_memcached_hitcount(), ZOOM_package_send(), ZOOM_srw_get_pdu(), ztest_esrequest(), and ztest_fetch().
int odr_missing | ( | ODR | o, |
int | opt, | ||
const char * | name | ||
) |
Definition at line 82 of file odr_util.c.
References odr::error, name, 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().
Definition at line 19 of file odr_null.c.
References ber_null(), ber_tag(), odr::direction, odr::error, name, ODR_DECODE, odr_missing(), ODR_NULL, odr_nullval(), ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, odr::op, OPROTO, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Damaged_Details(), z_AccessCtrl(), z_AttributeOccurrence(), z_AttributeValue(), z_ChallengeUnit1(), z_DatabaseInfo(), z_DateFlags(), z_DateQuarter(), z_DateSeason(), z_DuplicateDetectionCriterion(), z_EIOriginPartNotToKeep(), z_ElementData(), z_Environment(), z_Era(), z_ESAdminOriginPartNotToKeep(), z_ESAdminOriginPartToKeep(), z_ESExportSpecificationEsRequest(), z_ESExportSpecificationTaskPackage(), z_ETagUnit(), z_IdAuthentication(), z_IOBilling(), z_Occurrences(), z_Operator(), z_PQSPeriod(), z_PrivateCharacterSet(), z_Proximity(), z_PRPersistentResultSetEsRequest(), z_PRPersistentResultSetTaskPackage(), z_ResponseUnit1(), z_ResultsByDB_s(), z_RetentionCriterion(), z_Scan(), z_Segmentation(), z_Sort(), z_SortCriterion(), z_SortKeyDetails(), z_SortKeySpec(), z_TagTypeMapping(), z_TargetResponse(), z_Term(), z_Time(), and z_Triple().
Odr_null* odr_nullval | ( | void | ) |
Definition at line 30 of file odr.c.
References ODR_NULLVAL.
Referenced by create_admin_package(), get_attributeList(), odr_null(), odr_sequence_x(), pack_records(), rpn_complex(), yaz_sort_spec(), yaz_xml2query_operator(), yaz_xml2query_term(), z_Term_create(), zget_Segment(), and ztest_esrequest().
Definition at line 19 of file odr_oct.c.
References ber_octetstring(), ber_tag(), odr::direction, odr::error, name, ODR_DECODE, odr_malloc(), odr_missing(), ODR_OCTETSTRING, ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, OOTHER, odr::op, opt, Odr_private::print, Odr_private::stream_write, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ber_octetstring(), odr_external(), z_AccessControlRequest(), z_AccessControlResponse(), z_DRNType(), z_ElementData(), z_ElementMetaData(), z_Encryption(), z_External(), z_FragmentSyntax(), z_HitVector(), z_IconObjectUnit(), z_IU0SuppliedRecords_elem(), z_IUSuppliedRecords_elem(), z_KRBResponse(), z_OtherInformationUnit(), z_Query(), z_ReferenceId(), z_SortKeySpec(), z_SUTRS(), z_TaskPackage(), z_Term(), z_Triple(), and z_ValueDescription().
int odr_offset | ( | ODR | o | ) |
Definition at line 285 of file odr.c.
References Odr_private::bp, Odr_private::buf, and odr::op.
Referenced by do_read(), ir_read(), and ztest_esrequest().
Definition at line 20 of file odr_oid.c.
References ber_oidc(), ber_tag(), odr::direction, odr::error, name, ODR_DECODE, odr_malloc(), odr_missing(), ODR_OID, ODR_PRINT, odr_printf(), odr_prname(), odr_seterror(), ODR_UNIVERSAL, OID_SIZE, odr::op, OPROTO, opt, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Damaged_Details(), ill_Electronic_Delivery_Service_0(), ill_Electronic_Delivery_Service_1(), odr_external(), z_AccessInfo(), z_AccessRestrictionsUnit(), z_AltOidList(), z_Attribute(), z_AttributeSetId(), z_CompSpec(), z_DefaultDiagFormat(), z_ElementData(), z_ElementSetDetails(), z_Espec1(), z_ExtendedServicesInfo(), z_ExtendedServicesRequest(), z_External(), z_InfoCategory(), z_Iso10646(), z_IU0OriginPartToKeep(), z_IUOriginPartToKeep(), z_OidList(), z_OtherInformationUnit(), z_PresentRequest(), z_PrivateCharacterSetViaOid(), z_ProcessingInformation(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_ResourceReportId(), z_RetrievalRecordDetails(), z_SchemaInfo(), z_SearchRequest(), z_Specification(), z_TagSetInfo(), z_TagTypeMapping(), z_TaskPackage(), z_Term(), z_Triple(), z_ValueDescription(), z_Variant(), and z_VariantSetInfo().
Definition at line 60 of file odr_util.c.
References odr_getmem, and odr_oiddup_nmem().
Referenced by build_facet_response(), create_admin_package(), create_es_package(), create_update_package(), encode_ill_request(), generate(), handle_srw_response(), my_fetch(), p_query_rpn_mk(), p_query_scan_attributes_mk(), srw_bend_fetch(), yaz_oi_set_facetlist(), yaz_oi_update(), yaz_set_proposal_charneg(), yaz_set_response_charneg(), yaz_sort_spec(), z_ext_record2(), z_ext_record_oid_any(), zget_DefaultDiagFormat(), zget_init_diagnostics(), zget_init_diagnostics_octet(), ZOOM_connection_Z3950_send_scan(), ZOOM_package_send(), ztest_esrequest(), and ztest_fetch().
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().
int odr_peektag | ( | ODR | o, |
int * | zclass, | ||
int * | tag, | ||
int * | cons | ||
) |
Definition at line 15 of file odr_tag.c.
References ber_dectag(), Odr_private::bp, odr::direction, odr_constructed_more(), ODR_DECODE, odr_max, odr_seterror(), ODR_STACK_NOT_EMPTY, OOTHER, odr::op, and OREQUIRED.
Referenced by z_External().
void odr_perror | ( | ODR | o, |
const char * | message | ||
) |
Definition at line 57 of file odr.c.
References odr_errlist, odr_get_element_path(), odr_getelement(), and odr_geterrorx().
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_printf | ( | ODR | o, |
const char * | fmt, | ||
... | |||
) |
Definition at line 290 of file odr.c.
References Odr_private::buf, ODR_VISIBLESTRING, odr::op, Odr_private::print, Odr_private::stream_write, and yaz_vsnprintf().
Referenced by dump_http_package(), odr_any(), odr_bitstring(), odr_bool(), odr_choice(), odr_constructed_begin(), odr_constructed_end(), odr_cstring(), odr_enum(), odr_iconv_string(), odr_integer(), odr_null(), odr_octetstring(), odr_oid(), odr_prname(), yaz_encode_http_request(), and yaz_encode_http_response().
void odr_prname | ( | ODR | o, |
const char * | name | ||
) |
Definition at line 18 of file odr_util.c.
References Odr_private::indent, name, odr_printf(), and odr::op.
Referenced by odr_any(), odr_bitstring(), odr_bool(), odr_choice(), odr_constructed_begin(), odr_constructed_end(), odr_cstring(), odr_enum(), odr_iconv_string(), odr_integer(), odr_null(), odr_octetstring(), and odr_oid().
void odr_reset | ( | ODR | o | ) |
Definition at line 226 of file odr.c.
References Odr_private::bp, Odr_private::buf, Odr_private::choice_bias, Odr_private::iconv_handle, Odr_private::indent, Odr_private::lenlen, log_level, log_level_initialized, odr::mem, nmem_reset(), ODR_S_SET, odr_seek(), odr_seterror(), ONONE, odr::op, Odr_private::stack_first, Odr_private::stack_top, Odr_private::t_class, Odr_private::t_tag, Odr_private::tmp_names_buf, Odr_private::tmp_names_sz, Odr_private::top, yaz_iconv(), yaz_log(), and yaz_log_module_level().
Referenced by do_read(), encode_APDU(), generate(), ir_read(), odr_createmem(), process_gdu_response(), send_APDU(), yaz_retrieval_reset(), yaz_url_exec(), ZOOM_package_send(), ZOOM_query_sortby2(), ZOOM_send_GDU(), and ztest_esrequest().
int odr_seek | ( | ODR | o, |
int | whence, | ||
int | offset | ||
) |
Definition at line 117 of file odr_mem.c.
References odr_grow_block(), ODR_S_CUR, ODR_S_END, odr_seterror(), odr::op, OSPACE, Odr_private::pos, Odr_private::size, and Odr_private::top.
Referenced by ber_enclen(), ber_oidc(), ber_tag(), odr_constructed_end(), and odr_reset().
int odr_sequence_begin | ( | ODR | o, |
void * | p, | ||
int | size, | ||
const char * | name | ||
) |
Definition at line 15 of file odr_seq.c.
References odr::direction, odr::error, name, odr_constructed_begin(), ODR_DECODE, odr_malloc(), ODR_SEQUENCE, ODR_UNIVERSAL, odr::op, Odr_private::t_class, and Odr_private::t_tag.
Referenced by ill_Already_Forwarded(), ill_Amount(), ill_Answer(), 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_Date_Due(), ill_Delivery_Address(), 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_OCLCILLRequestExtension(), ill_Overdue(), ill_Postal_Address(), 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_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_Supply_Details(), ill_Supply_Medium_Info_Type(), ill_System_Address(), ill_System_Id(), ill_SystemNo_s(), ill_Third_Party_Info_Type(), ill_Transaction_Id(), ill_Unfilled_Results(), ill_Units_Per_Medium_Type(), ill_Will_Supply_Results(), odr_external(), odr_sequence_of(), z_AccessControlRequest(), z_AccessControlResponse(), z_AccessInfo(), z_AccessRestrictionsUnit(), z_AdminEsRequest(), z_AdminTaskPackage(), z_AttCombo(), z_Attribute(), z_AttributeCombinations(), z_AttributeDescription(), z_AttributeDetails(), z_AttributeElement(), z_AttributeOccurrence(), z_AttributeSetDetails(), z_AttributeSetInfo(), z_AttributesPlusTerm(), z_AttributeType(), z_AttributeTypeDetails(), z_AttributeValue(), z_BadSpec(), z_BriefBib(), z_byDatabaseList_s(), z_CategoryInfo(), z_CategoryList(), z_ChallengeUnit1(), z_Charge(), z_CircRecord(), z_Close(), z_CommonInfo(), z_Complex(), z_ComplexAttribute(), z_CompSpec(), z_ContactInfo(), z_Costs(), z_CostsOtherCharge(), z_DatabaseInfo(), z_DatabaseSpecificUnit(), z_Date(), z_DateFlags(), z_DateMonthAndDay(), z_DateTime(), z_DbSpecific(), z_DbUnavail(), z_DbUnavail_0(), z_DefaultDiagFormat(), z_DeleteResultSetRequest(), z_DeleteResultSetResponse(), z_DiagnosticFormat_s(), z_DiagTerm(), z_DRNType(), z_DuplicateDetectionRequest(), z_DuplicateDetectionResponse(), z_EIExportInvocationEsRequest(), z_EIExportInvocationTaskPackage(), z_EIOriginPartNotToKeep(), z_EIOriginPartNotToKeepRanges_s(), z_EIOriginPartToKeep(), z_EITargetPart(), z_ElementInfo(), z_ElementMetaData(), z_ElementRequestCompositeElement(), z_ElementSetDetails(), z_Encryption(), z_ESAdminOriginPartToKeep(), z_ESAdminTargetPart(), z_EScanInfo(), z_ESDestinationOther(), z_ESExportSpecificationEsRequest(), z_ESExportSpecificationTaskPackage(), z_ESOriginPartToKeep(), z_Espec1(), z_Estimate1(), z_Estimate2(), z_ExtendedServicesInfo(), z_ExtendedServicesRequest(), z_ExtendedServicesResponse(), z_External(), z_FacetField(), z_FacetTerm(), z_FormatSpec(), z_HitVector(), z_HoldingsAndCircData(), z_HumanStringUnit(), z_IconObjectUnit(), z_IdPass(), z_ImportParameters(), z_InfoCategory(), z_InitialSet(), z_InitRequest(), z_InitResponse(), z_IntUnit(), z_IOBilling(), z_IOContact(), z_IOCreditCardInfo(), z_IOOriginPartNotToKeep(), z_IOOriginPartToKeep(), z_IORequest(), z_IOResultSetItem(), z_IOTargetPart(), z_IOTaskPackage(), z_Iso10646(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_Iso8777Capabilities(), z_IU0CorrelationInfo(), z_IU0OriginPartToKeep(), z_IU0SuppliedRecords_elem(), z_IU0TargetPart(), z_IU0TaskPackageRecordStructure(), z_IU0UpdateEsRequest(), z_IU0UpdateTaskPackage(), z_IUCorrelationInfo(), z_IUOriginPartToKeep(), z_IUSuppliedRecords_elem(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_IUUpdateEsRequest(), z_IUUpdateTaskPackage(), z_KRBRequest(), z_KRBResponse(), z_LeftAndRight(), z_ListEntries(), z_ListStatus(), z_MultipleSearchTerms_2_s(), z_NamePlusRecord(), z_NetworkAddressIA(), z_NetworkAddressOPA(), z_NetworkAddressOther(), z_OccurrenceByAttributesElem(), z_OccurValues(), z_OCLC_UserInformation(), z_OmittedAttributeInterpretation(), z_OPACRecord(), z_Order(), z_OriginProposal(), z_OtherInformationUnit(), z_PathUnit(), z_PerElementDetails(), z_Permissions_s(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_PQSPeriodicQueryScheduleEsRequest(), z_PQSPeriodicQueryScheduleTaskPackage(), z_PQSTargetPart(), z_PQueryOriginPartToKeep(), z_PQueryPersistentQueryEsRequest(), z_PQueryPersistentQueryTaskPackage(), z_PresentRequest(), z_PresentResponse(), z_PrivateCapabilities(), z_PrivateCapOperator(), z_ProcessingInformation(), z_PromptIdEnumeratedPrompt(), z_PROriginPartNotToKeep(), z_ProximityOperator(), z_ProximitySupport(), z_ProxSupportPrivate(), z_PRPersistentResultSetEsRequest(), z_PRPersistentResultSetTaskPackage(), z_PRTargetPart(), z_QueryExpressionTerm(), z_Range(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_RecordTag(), z_ResourceControlRequest(), z_ResourceControlResponse(), z_ResourceReport1(), z_ResourceReport2(), z_ResourceReportRequest(), z_ResourceReportResponse(), z_ResponseUnit1(), z_ResultsByDB_s(), z_ResultSetPlusAttributes(), z_RetrievalRecordDetails(), z_RpnCapabilities(), z_RPNQuery(), z_ScanRequest(), z_ScanResponse(), z_SchemaInfo(), z_SearchInfoReport_s(), z_SearchKey(), z_SearchRequest(), z_SearchResponse(), z_Segment(), z_SimpleElement(), z_SortAttributes(), z_SortDbSpecificList_s(), z_SortDetails(), z_SortKeyDetails(), z_SortKeySpec(), z_SortRequest(), z_SortResponse(), z_Specification(), z_SpecificTag(), z_TaggedElement(), z_TagPath_s(), z_TagSetElements(), z_TagSetInfo(), z_TagTypeMapping(), z_TargetInfo(), z_TargetResponse(), z_TaskPackage(), 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_ValueRange(), z_Variant(), z_VariantClass(), z_VariantSetInfo(), z_VariantType(), z_VariantValue(), and z_Volume().
int odr_sequence_end | ( | ODR | o | ) |
Definition at line 61 of file odr_seq.c.
References odr_constructed_end().
Referenced by ill_Already_Forwarded(), ill_Amount(), ill_Answer(), 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_Date_Due(), ill_Delivery_Address(), 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_OCLCILLRequestExtension(), ill_Overdue(), ill_Postal_Address(), 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_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_Supply_Details(), ill_Supply_Medium_Info_Type(), ill_System_Address(), ill_System_Id(), ill_SystemNo_s(), ill_Third_Party_Info_Type(), ill_Transaction_Id(), ill_Unfilled_Results(), ill_Units_Per_Medium_Type(), ill_Will_Supply_Results(), odr_external(), odr_sequence_x(), z_AccessControlRequest(), z_AccessControlResponse(), z_AccessInfo(), z_AccessRestrictionsUnit(), z_AdminEsRequest(), z_AdminTaskPackage(), z_AttCombo(), z_Attribute(), z_AttributeCombinations(), z_AttributeDescription(), z_AttributeDetails(), z_AttributeElement(), z_AttributeOccurrence(), z_AttributeSetDetails(), z_AttributeSetInfo(), z_AttributesPlusTerm(), z_AttributeType(), z_AttributeTypeDetails(), z_AttributeValue(), z_BadSpec(), z_BriefBib(), z_byDatabaseList_s(), z_CategoryInfo(), z_CategoryList(), z_ChallengeUnit1(), z_Charge(), z_CircRecord(), z_Close(), z_CommonInfo(), z_Complex(), z_ComplexAttribute(), z_CompSpec(), z_ContactInfo(), z_Costs(), z_CostsOtherCharge(), z_DatabaseInfo(), z_DatabaseSpecificUnit(), z_Date(), z_DateFlags(), z_DateMonthAndDay(), z_DateTime(), z_DbSpecific(), z_DbUnavail(), z_DbUnavail_0(), z_DefaultDiagFormat(), z_DeleteResultSetRequest(), z_DeleteResultSetResponse(), z_DiagnosticFormat_s(), z_DiagTerm(), z_DRNType(), z_DuplicateDetectionRequest(), z_DuplicateDetectionResponse(), z_EIExportInvocationEsRequest(), z_EIExportInvocationTaskPackage(), z_EIOriginPartNotToKeep(), z_EIOriginPartNotToKeepRanges_s(), z_EIOriginPartToKeep(), z_EITargetPart(), z_ElementInfo(), z_ElementMetaData(), z_ElementRequestCompositeElement(), z_ElementSetDetails(), z_Encryption(), z_ESAdminOriginPartToKeep(), z_ESAdminTargetPart(), z_EScanInfo(), z_ESDestinationOther(), z_ESExportSpecificationEsRequest(), z_ESExportSpecificationTaskPackage(), z_ESOriginPartToKeep(), z_Espec1(), z_Estimate1(), z_Estimate2(), z_ExtendedServicesInfo(), z_ExtendedServicesRequest(), z_ExtendedServicesResponse(), z_External(), z_FacetField(), z_FacetTerm(), z_FormatSpec(), z_HitVector(), z_HoldingsAndCircData(), z_HumanStringUnit(), z_IconObjectUnit(), z_IdPass(), z_ImportParameters(), z_InfoCategory(), z_InitialSet(), z_InitRequest(), z_InitResponse(), z_IntUnit(), z_IOBilling(), z_IOContact(), z_IOCreditCardInfo(), z_IOOriginPartNotToKeep(), z_IOOriginPartToKeep(), z_IORequest(), z_IOResultSetItem(), z_IOTargetPart(), z_IOTaskPackage(), z_Iso10646(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_Iso8777Capabilities(), z_IU0CorrelationInfo(), z_IU0OriginPartToKeep(), z_IU0SuppliedRecords_elem(), z_IU0TargetPart(), z_IU0TaskPackageRecordStructure(), z_IU0UpdateEsRequest(), z_IU0UpdateTaskPackage(), z_IUCorrelationInfo(), z_IUOriginPartToKeep(), z_IUSuppliedRecords_elem(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_IUUpdateEsRequest(), z_IUUpdateTaskPackage(), z_KRBRequest(), z_KRBResponse(), z_LeftAndRight(), z_ListEntries(), z_ListStatus(), z_MultipleSearchTerms_2_s(), z_NamePlusRecord(), z_NetworkAddressIA(), z_NetworkAddressOPA(), z_NetworkAddressOther(), z_OccurrenceByAttributesElem(), z_OccurValues(), z_OCLC_UserInformation(), z_OmittedAttributeInterpretation(), z_OPACRecord(), z_Order(), z_OriginProposal(), z_OtherInformationUnit(), z_PathUnit(), z_PerElementDetails(), z_Permissions_s(), z_PQSOriginPartNotToKeep(), z_PQSOriginPartToKeep(), z_PQSPeriodicQueryScheduleEsRequest(), z_PQSPeriodicQueryScheduleTaskPackage(), z_PQSTargetPart(), z_PQueryOriginPartToKeep(), z_PQueryPersistentQueryEsRequest(), z_PQueryPersistentQueryTaskPackage(), z_PresentRequest(), z_PresentResponse(), z_PrivateCapabilities(), z_PrivateCapOperator(), z_ProcessingInformation(), z_PromptIdEnumeratedPrompt(), z_PROriginPartNotToKeep(), z_ProximityOperator(), z_ProximitySupport(), z_ProxSupportPrivate(), z_PRPersistentResultSetEsRequest(), z_PRPersistentResultSetTaskPackage(), z_PRTargetPart(), z_QueryExpressionTerm(), z_Range(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_RecordTag(), z_ResourceControlRequest(), z_ResourceControlResponse(), z_ResourceReport1(), z_ResourceReport2(), z_ResourceReportRequest(), z_ResourceReportResponse(), z_ResponseUnit1(), z_ResultsByDB_s(), z_ResultSetPlusAttributes(), z_RetrievalRecordDetails(), z_RpnCapabilities(), z_RPNQuery(), z_ScanRequest(), z_ScanResponse(), z_SchemaInfo(), z_SearchInfoReport_s(), z_SearchKey(), z_SearchRequest(), z_SearchResponse(), z_Segment(), z_SimpleElement(), z_SortAttributes(), z_SortDbSpecificList_s(), z_SortDetails(), z_SortKeyDetails(), z_SortKeySpec(), z_SortRequest(), z_SortResponse(), z_Specification(), z_SpecificTag(), z_TaggedElement(), z_TagPath_s(), z_TagSetElements(), z_TagSetInfo(), z_TagTypeMapping(), z_TargetInfo(), z_TargetResponse(), z_TaskPackage(), 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_ValueRange(), z_Variant(), z_VariantClass(), z_VariantSetInfo(), z_VariantType(), z_VariantValue(), and z_Volume().
Definition at line 134 of file odr_seq.c.
References odr::direction, name, ODR_DECODE, odr_sequence_begin(), odr_sequence_x(), and type.
Referenced by ill_Already_Tried_List_Type(), ill_Answer(), ill_Cancel(), ill_Cancel_Reply(), ill_Checked_In(), ill_Conditional_Reply(), ill_Conditional_Results(), ill_Damaged(), ill_Damaged_DetailsSpecific_units(), ill_Delivery_ServiceElectronic_delivery(), ill_Estimate_Results(), ill_Expired(), ill_Forward_Notification(), ill_Hold_Placed_Results(), ill_ItemRequest(), ill_Locations_Results(), ill_Lost(), ill_Message(), ill_Overdue_ExtensionS(), ill_Recall(), ill_Received(), ill_Renew(), ill_Renew_Answer(), ill_Request(), ill_Retry_Results(), ill_Returned(), ill_Send_To_List_Type(), ill_Shipped(), ill_Status_Or_Error_Report(), ill_Status_Query(), ill_Supplemental_Item_Description(), ill_Supply_Details(), ill_SystemNo(), ill_Unfilled_Results(), ill_Will_Supply_Results(), z_AccessInfo(), z_AccessRestrictions(), z_AccessRestrictionsUnit(), z_AltOidList(), z_AttCombo(), z_AttributeCombination(), z_AttributeCombinations(), z_AttributeDescription(), z_AttributeDetails(), z_AttributeList(), z_AttributeSetDetails(), z_AttributeSetInfo(), z_AttributeType(), z_AttributeTypeDetails(), z_AttributeValue(), z_AttributeValueList(), z_AttrListList(), z_BadSpec(), z_BriefBib(), z_byDatabaseList(), z_CategoryList(), z_Challenge1(), z_ChallengeUnit1(), z_ComplexAttribute(), z_CompSpec(), z_Costs(), z_DatabaseInfo(), z_DatabaseList(), z_DatabaseSpecific(), z_DeleteResultSetRequest(), z_DiagnosticFormat(), z_DiagRecs(), z_DuplicateDetectionRequest(), z_DuplicateDetectionResponse(), z_EIOriginPartNotToKeepRanges(), z_ElementInfoList(), z_ElementMetaData(), z_ElementRequestCompositeElementPrimitives(), z_ElementRequestCompositeElementSpecs(), z_ElementSetDetails(), z_ESAdminTargetPart(), z_Espec1(), z_ETagPath(), z_ExtendedServicesResponse(), z_FacetField(), z_FacetList(), z_GenericRecord(), z_HoldingsAndCircData(), z_HumanString(), z_IconObject(), z_Iso2022OriginProposal(), z_Iso2022TargetResponse(), z_Iso8777Capabilities(), z_IU0SuppliedRecords(), z_IU0TargetPart(), z_IUSuppliedRecords(), z_IUTargetPart(), z_IUTaskPackageRecordStructure(), z_IUTaskPackageRecordStructureSurrogateDiagnostics(), z_ListEntries(), z_ListStatuses(), z_MultipleSearchTerms_2(), z_NamePlusRecordList(), z_OccurrenceByAttributes(), z_OCLC_UserInformation(), z_OidList(), z_OPACRecord(), z_OriginProposal(), z_OtherInformation(), z_Path(), z_PerElementDetails(), z_Permissions(), z_Permissions_s(), z_PQSOriginPartToKeep(), z_PQueryOriginPartToKeep(), z_PresentRequest(), z_PrivateCapabilities(), z_PrivateCharacterSetViaOid(), z_ProximitySupport(), z_RecordSyntax(), z_RecordSyntaxInfo(), z_ResourceReport1(), z_ResourceReport2(), z_Response1(), z_ResultsByDB(), z_ResultsByDB_sList(), z_RetrievalRecordDetails(), z_RpnCapabilities(), z_ScanRequest(), z_SchemaInfo(), z_SearchInfoReport(), z_SearchRequest(), z_Segment(), z_SortCriterionPreferredDatabases(), z_SortDbSpecificList(), z_SortDetails(), z_SortKeyDetails(), z_SortKeySpecList(), z_SortRequest(), z_SortResponse(), z_StringList(), z_TagPath(), z_TagSetElements(), z_TagSetInfo(), z_TargetInfo(), z_TaskPackage(), z_TermInfo(), z_TermListDetails(), z_TermListElement(), z_TermListInfo(), z_UnitInfo(), z_UnitType(), z_ValueSetEnumerated(), z_Variant(), z_VariantClass(), and z_VariantSetInfo().
int odr_set_begin | ( | ODR | o, |
void * | p, | ||
int | size, | ||
const char * | name | ||
) |
Definition at line 38 of file odr_seq.c.
References odr::direction, odr::error, name, odr_constructed_begin(), ODR_DECODE, odr_malloc(), ODR_SET, ODR_UNIVERSAL, odr::op, Odr_private::t_class, and Odr_private::t_tag.
Referenced by odr_set_of().
int odr_set_charset | ( | ODR | o, |
const char * | to, | ||
const char * | from | ||
) |
Definition at line 185 of file odr.c.
References Odr_private::iconv_handle, odr::op, yaz_iconv_close(), and yaz_iconv_open().
int odr_set_end | ( | ODR | o | ) |
Definition at line 66 of file odr_seq.c.
References odr_constructed_end().
Definition at line 124 of file odr_seq.c.
References odr::direction, name, ODR_DECODE, odr_sequence_x(), odr_set_begin(), and type.
void odr_set_stream | ( | ODR | o, |
void * | handle, | ||
void(*)(ODR o, void *handle, int type, const char *buf, int len) | stream_write, | ||
void(*)(void *handle) | stream_close | ||
) |
Definition at line 174 of file odr.c.
References odr::op, Odr_private::print, Odr_private::stream_close, and Odr_private::stream_write.
Referenced by odr_setprint(), odr_setprint_noclose(), and ZOOM_API().
void odr_setbuf | ( | ODR | o, |
char * | buf, | ||
int | len, | ||
int | can_grow | ||
) |
Definition at line 267 of file odr.c.
References Odr_private::bp, Odr_private::buf, Odr_private::can_grow, odr_seterror(), ONONE, odr::op, Odr_private::pos, Odr_private::size, and Odr_private::top.
Referenced by do_read(), encode_ill_request(), ir_read(), process_gdu_response(), yaz_url_exec(), ZOOM_memcached_lookup(), ZOOM_memcached_search(), ZOOM_record_clone(), and ztest_esrequest().
void odr_setelement | ( | ODR | o, |
const char * | addinfo | ||
) |
Definition at line 125 of file odr.c.
References Odr_private::element, and odr::op.
Referenced by ber_tag(), and odr_missing().
void odr_seterror | ( | ODR | o, |
int | errorno, | ||
int | errorid | ||
) |
Definition at line 118 of file odr.c.
References Odr_private::element, odr::error, Odr_private::error_id, and odr::op.
Referenced by ber_any(), ber_bitstring(), ber_boolean(), ber_integer(), ber_null(), ber_octetstring(), ber_oidc(), ber_tag(), odr_constructed_begin(), odr_constructed_end(), odr_enum(), odr_iconv_string(), odr_integer(), odr_missing(), odr_null(), odr_octetstring(), odr_oid(), odr_peektag(), odr_reset(), odr_seek(), odr_sequence_x(), odr_setbuf(), and odr_write().
void odr_setlenlen | ( | ODR | o, |
int | len | ||
) |
Definition at line 19 of file odr_cons.c.
References Odr_private::lenlen, and odr::op.
void odr_setprint | ( | ODR | o, |
FILE * | file | ||
) |
Definition at line 164 of file odr.c.
References odr_FILE_close(), odr_FILE_write(), and odr_set_stream().
Referenced by create_association(), encode_APDU(), and ZOOM_connection_connect().
void odr_setprint_noclose | ( | ODR | o, |
FILE * | file | ||
) |
Definition at line 169 of file odr.c.
References odr_FILE_write(), and odr_set_stream().
Referenced by cql_transform_parse_tok_line(), odr_createmem(), and ZOOM_connection_connect().
char* odr_strdup | ( | ODR | o, |
const char * | str | ||
) |
Definition at line 36 of file odr_mem.c.
References odr::mem, and nmem_strdup().
Referenced by append_extra_arg(), check_diagnostic(), cql2pqf(), create_admin_package(), create_es_package(), create_update_package(), dummy_json_record(), dummy_marc_record(), dummy_pz2_record(), dummy_xml_record(), echo_extra_args(), encode_item_order(), generate(), get_term_cstr(), get_zoom_facet_field(), grab_charset(), ill_get_ILL_ISO_Date(), ill_get_ILL_ISO_Time(), ill_get_ILL_String_x(), my_fetch(), process_deleteRequest(), process_scanRequest(), read_grs1(), record_cache_add(), retrieve_fetch(), send_HTTP_redirect(), send_Z3950_sort(), srw_bend_scan(), srw_bend_search(), srw_bend_update(), yaz_mk_srw_diagnostic(), yaz_oi_set_string_oid(), yaz_solr_decode_scan_result(), yaz_solr_decode_spellcheck(), yaz_solr_encode_facet_field(), yaz_solr_encode_request(), yaz_sort_spec(), yaz_sru_facet_request(), yaz_srw_decodeauth(), yaz_srw_get_core_ver(), yaz_uri_to_array(), yaz_url_exec(), yaz_xml2query_attribute_element(), Z3950_send_present(), Z3950_send_search(), z_get_HTTP_Request_host_path(), z_get_TargetResponse(), z_HTTP_header_add(), z_HTTP_header_set(), z_soap_codec_enc_xsl(), z_soap_error(), zget_AttributeList_use_string(), zget_DefaultDiagFormat(), zget_surrogateDiagRec(), ZOOM_connection_srw_send_scan(), ZOOM_connection_srw_send_search(), ZOOM_connection_Z3950_send_init(), ztest_esrequest(), ztest_fetch(), ztest_present(), and ztest_search().
char* odr_strdup_null | ( | ODR | o, |
const char * | str | ||
) |
Definition at line 41 of file odr_mem.c.
References odr::mem, and nmem_strdup_null().
Referenced by create_es_package(), create_update_package(), encode_item_order(), pack_records(), record_cache_add(), srw_bend_fetch(), ZOOM_connection_search(), ZOOM_connection_srw_send_search(), ZOOM_connection_Z3950_send_init(), and ZOOM_record_clone().
char* odr_strdupn | ( | ODR | o, |
const char * | str, | ||
size_t | n | ||
) |
Definition at line 46 of file odr_mem.c.
References odr::mem, and nmem_strdupn().
Referenced by ber_octetstring(), ccl2pqf(), decode_headers_content(), get_term_cstr(), odr_create_Odr_oct(), rpn_simple(), srw_bend_update(), yaz_decode_http_request(), yaz_decode_http_response(), yaz_decode_sru_dbpath_odr(), yaz_match_xsd_XML_n2(), yaz_solr_decode_result_docs(), yaz_uri_to_array(), z_get_HTTP_Request_host_path(), z_get_HTTP_Request_uri(), and z_Term_create().
Odr_int odr_strtol | ( | const char * | nptr, |
char ** | endptr, | ||
int | base | ||
) |
Definition at line 132 of file odr_mem.c.
Referenced by odr_atoi().
size_t odr_total | ( | ODR | o | ) |
Definition at line 61 of file odr_mem.c.
References odr::mem, and nmem_total().
Referenced by pack_records().
int odr_visiblestring | ( | ODR | o, |
char ** | p, | ||
int | opt, | ||
const char * | name | ||
) |
Definition at line 41 of file odr_use.c.
References name, odr_cstring(), odr_implicit_tag, ODR_UNIVERSAL, ODR_VISIBLESTRING, and opt.
Referenced by ill_Amount(), ill_AmountString(), ill_EDIFACTString(), ill_ISO_Date(), ill_ISO_Time(), z_DBName(), z_DefaultDiagFormat(), z_IdAuthentication(), and z_OCLC_UserInformation().
int odr_write | ( | ODR | o, |
const char * | buf, | ||
int | bytes | ||
) |
Definition at line 98 of file odr_mem.c.
References Odr_private::buf, odr_grow_block(), odr_seterror(), odr::op, OSPACE, Odr_private::pos, Odr_private::size, and Odr_private::top.
Referenced by ber_any(), ber_bitstring(), ber_encinteger(), ber_octetstring(), odr_constructed_begin(), yaz_encode_http_request(), and yaz_encode_http_response().
|
extern |
Definition at line 35 of file odr.c.
Referenced by odr_errmsg(), and odr_perror().
|
extern |
Definition at line 28 of file odr.c.
Referenced by odr_nullval().