YAZ  5.34.0
Data Structures | Macros | Typedefs | Functions | Variables
odr.h File Reference

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 odrODR
 
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_intodr_intdup (ODR o, Odr_int v)
 
Odr_boolodr_booldup (ODR o, Odr_bool v)
 
Odr_octodr_create_Odr_oct (ODR o, const char *buf, int sz)
 
NMEM odr_extract_mem (ODR o)
 
Odr_nullodr_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_oidodr_oiddup (ODR odr, const Odr_oid *o)
 
Odr_oidodr_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_oidodr_getoidbystr (ODR o, const char *str)
 
Odr_oidodr_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_nullODR_NULLVAL
 
char * odr_errlist []
 

Detailed Description

Header for ODR (Open Data Representation)

Definition in file odr.h.

Macro Definition Documentation

◆ bool_t

#define bool_t   int

Definition at line 52 of file odr.h.

◆ OCONLEN

#define OCONLEN   10

Definition at line 160 of file odr.h.

◆ ODATA

#define ODATA   8

Definition at line 158 of file odr.h.

◆ ODR_APPLICATION

#define ODR_APPLICATION   1

Definition at line 66 of file odr.h.

◆ ODR_BITMASK_SIZE

#define ODR_BITMASK_SIZE   256

Definition at line 112 of file odr.h.

◆ ODR_BITSTRING

#define ODR_BITSTRING   3

Definition at line 75 of file odr.h.

◆ ODR_BOOLEAN

#define ODR_BOOLEAN   1

Definition at line 73 of file odr.h.

◆ ODR_CONTEXT

#define ODR_CONTEXT   2

Definition at line 67 of file odr.h.

◆ ODR_DECODE

#define ODR_DECODE   0

Definition at line 95 of file odr.h.

◆ ODR_ENCODE

#define ODR_ENCODE   1

Definition at line 96 of file odr.h.

◆ ODR_ENUM

#define ODR_ENUM   10

Definition at line 82 of file odr.h.

◆ ODR_EXPLICIT

#define ODR_EXPLICIT   1

Definition at line 60 of file odr.h.

◆ odr_explicit_tag

#define odr_explicit_tag (   o,
  t,
  p,
  cl,
  tg,
  opt,
  name 
)
Value:
((int) (odr_constructed_begin((o), (p), (cl), (tg), 0) ? \
t ((o), (p), (opt), name) &&\
odr_constructed_end(o) : odr_missing((o), opt, name)))
int opt
Definition: initopt.c:19
char * name
Definition: initopt.c:18
int odr_constructed_begin(ODR o, void *p, int zclass, int tag, const char *name)
Definition: odr_cons.c:24
int odr_missing(ODR o, int opt, const char *name)
Definition: odr_util.c:82

Definition at line 195 of file odr.h.

◆ ODR_EXTERNAL

#define ODR_EXTERNAL   8

Definition at line 80 of file odr.h.

◆ ODR_EXTERNAL_arbitrary

#define ODR_EXTERNAL_arbitrary   2

Definition at line 301 of file odr.h.

◆ ODR_EXTERNAL_octet

#define ODR_EXTERNAL_octet   1

Definition at line 300 of file odr.h.

◆ ODR_EXTERNAL_single

#define ODR_EXTERNAL_single   0

Definition at line 299 of file odr.h.

◆ ODR_GENERALIZEDTIME

#define ODR_GENERALIZEDTIME   24

Definition at line 87 of file odr.h.

◆ ODR_GENERALSTRING

#define ODR_GENERALSTRING   27

Definition at line 90 of file odr.h.

◆ odr_getmem

#define odr_getmem (   o)    ((o)->mem)

Definition at line 216 of file odr.h.

◆ ODR_GRAPHICSTRING

#define ODR_GRAPHICSTRING   25

Definition at line 88 of file odr.h.

◆ ODR_IMPLICIT

#define ODR_IMPLICIT   0

Definition at line 59 of file odr.h.

◆ odr_implicit_tag

#define odr_implicit_tag (   o,
  t,
  p,
  cl,
  tg,
  opt,
  name 
)     (odr_implicit_settag((o), cl, tg), t ((o), (p), (opt), name) )

Definition at line 192 of file odr.h.

◆ ODR_INT_PRINTF

#define ODR_INT_PRINTF   NMEM_INT_PRINTF

Definition at line 49 of file odr.h.

◆ ODR_INTEGER

#define ODR_INTEGER   2

Definition at line 74 of file odr.h.

◆ ODR_MASK_CLEAR

#define ODR_MASK_CLEAR (   mask,
  num 
)     ((mask)->bits[(num) >> 3] &= ~(0X80 >> ((num) & 0X07)))

Definition at line 208 of file odr.h.

◆ ODR_MASK_GET

#define ODR_MASK_GET (   mask,
  num 
)
Value:
( ((num) >> 3 <= (mask)->top) ? \
((mask)->bits[(num) >> 3] & (0X80 >> ((num) & 0X07)) ? 1 : 0) : 0)
int mask
Definition: log.c:83

Definition at line 211 of file odr.h.

◆ ODR_MASK_SET

#define ODR_MASK_SET (   mask,
  num 
)
Value:
(((mask)->bits[(num) >> 3] |= 0X80 >> ((num) & 0X07)),\
(void) ((mask)->top < (num) >> 3 ? ((mask)->top = (num) >> 3) : 0))

Definition at line 204 of file odr.h.

◆ ODR_MASK_ZERO

#define ODR_MASK_ZERO (   mask)
Value:
((void) (memset((mask)->bits, 0, ODR_BITMASK_SIZE),\
(mask)->top = -1))
#define ODR_BITMASK_SIZE
Definition: odr.h:112

Definition at line 200 of file odr.h.

◆ ODR_MAXNAME

#define ODR_MAXNAME   256

Definition at line 218 of file odr.h.

◆ ODR_MEM

#define ODR_MEM   NMEM

Definition at line 190 of file odr.h.

◆ ODR_NONE

#define ODR_NONE   -1

Definition at line 58 of file odr.h.

◆ ODR_NULL

#define ODR_NULL   5

Definition at line 77 of file odr.h.

◆ ODR_NUMERICSTRING

#define ODR_NUMERICSTRING   18

Definition at line 85 of file odr.h.

◆ ODR_OCTETSTRING

#define ODR_OCTETSTRING   4

Definition at line 76 of file odr.h.

◆ ODR_ODESC

#define ODR_ODESC   7

Definition at line 79 of file odr.h.

◆ ODR_OID

#define ODR_OID   6

Definition at line 78 of file odr.h.

◆ odr_ok

#define odr_ok (   o)    (!(o)->error)

Definition at line 215 of file odr.h.

◆ ODR_PRINT

#define ODR_PRINT   2

Definition at line 97 of file odr.h.

◆ ODR_PRINTABLESTRING

#define ODR_PRINTABLESTRING   19

Definition at line 86 of file odr.h.

◆ ODR_PRIVATE

#define ODR_PRIVATE   3

Definition at line 68 of file odr.h.

◆ ODR_REAL

#define ODR_REAL   9

Definition at line 81 of file odr.h.

◆ odr_release_mem

#define odr_release_mem (   m)    nmem_destroy(m)

Definition at line 189 of file odr.h.

◆ ODR_S_CUR

#define ODR_S_CUR   1

Definition at line 118 of file odr.h.

◆ ODR_S_END

#define ODR_S_END   2

Definition at line 119 of file odr.h.

◆ ODR_S_SET

#define ODR_S_SET   0

Definition at line 117 of file odr.h.

◆ ODR_SEQUENCE

#define ODR_SEQUENCE   16

Definition at line 83 of file odr.h.

◆ ODR_SET

#define ODR_SET   17

Definition at line 84 of file odr.h.

◆ ODR_UNIVERSAL

#define ODR_UNIVERSAL   0

Definition at line 65 of file odr.h.

◆ ODR_VISIBLESTRING

#define ODR_VISIBLESTRING   26

Definition at line 89 of file odr.h.

◆ OHTTP

#define OHTTP   12

Definition at line 162 of file odr.h.

◆ OLENOV

#define OLENOV   11

Definition at line 161 of file odr.h.

◆ OMEMORY

#define OMEMORY   1

Definition at line 151 of file odr.h.

◆ ONONE

#define ONONE   0

Definition at line 150 of file odr.h.

◆ OOTHER

#define OOTHER   6

Definition at line 156 of file odr.h.

◆ OPROTO

#define OPROTO   7

Definition at line 157 of file odr.h.

◆ OREQUIRED

#define OREQUIRED   4

Definition at line 154 of file odr.h.

◆ OSPACE

#define OSPACE   3

Definition at line 153 of file odr.h.

◆ OSTACK

#define OSTACK   9

Definition at line 159 of file odr.h.

◆ OSYSERR

#define OSYSERR   2

Definition at line 152 of file odr.h.

◆ OUNEXPECTED

#define OUNEXPECTED   5

Definition at line 155 of file odr.h.

Typedef Documentation

◆ ODR

typedef struct odr* ODR

Definition at line 121 of file odr.h.

◆ Odr_any

typedef Odr_oct Odr_any

Definition at line 108 of file odr.h.

◆ Odr_arm

typedef struct odr_arm Odr_arm

◆ Odr_bitmask

typedef struct odr_bitmask Odr_bitmask

◆ Odr_bool

Definition at line 48 of file odr.h.

◆ Odr_external

typedef struct Odr_external Odr_external

◆ Odr_fun

typedef int(* Odr_fun) (ODR, char **, int, const char *)

Definition at line 135 of file odr.h.

◆ Odr_int

Definition at line 47 of file odr.h.

◆ Odr_null

typedef void Odr_null

Definition at line 105 of file odr.h.

◆ Odr_oct

typedef struct odr_oct Odr_oct

Function Documentation

◆ ber_any()

int ber_any ( ODR  o,
Odr_any **  p 
)

◆ ber_bitstring()

int ber_bitstring ( ODR  o,
Odr_bitmask p,
int  cons 
)

◆ ber_boolean()

int ber_boolean ( ODR  o,
int *  val 
)

◆ ber_declen()

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().

◆ ber_dectag()

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().

◆ ber_enclen()

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().

◆ ber_enctag()

int ber_enctag ( ODR  o,
int  zclass,
int  tag,
int  constructed 
)

BER-encode a zclass/tag/constructed package (identifier octets).

Return number of bytes encoded, or -1 if out of bounds.

Definition at line 123 of file ber_tag.c.

References odr_putc.

Referenced by ber_tag().

◆ ber_integer()

int ber_integer ( ODR  o,
Odr_int val 
)

◆ ber_null()

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().

◆ ber_octetstring()

int ber_octetstring ( ODR  o,
Odr_oct p,
int  cons 
)

◆ ber_oidc()

int ber_oidc ( ODR  o,
Odr_oid p,
int  max_oid_size 
)

◆ ber_tag()

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().

◆ completeBER()

int completeBER ( const char *  buf,
int  len 
)

determine whether a buffer is a complete BER buffer

Parameters
bufBER buffer
lenlength of buffer
Return values
0package is incomplete
>0package 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().

◆ odp_more_chunks()

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().

◆ odr_any()

int odr_any ( ODR  o,
Odr_any **  p,
int  opt,
const char *  name 
)

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_atoi()

Odr_int odr_atoi ( const char *  s)

◆ odr_begin()

void odr_begin ( ODR  o)

◆ odr_bitstring()

int odr_bitstring ( ODR  o,
Odr_bitmask **  p,
int  opt,
const char *  name 
)

◆ odr_bool()

int odr_bool ( ODR  o,
Odr_bool **  p,
int  opt,
const char *  name 
)

◆ odr_booldup()

Odr_bool* odr_booldup ( ODR  o,
Odr_bool  v 
)

◆ odr_choice()

int odr_choice ( ODR  o,
Odr_arm  arm[],
void *  p,
void *  whichp,
const char *  name 
)

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().

◆ odr_choice_bias()

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().

◆ odr_choice_enable_bias()

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.

◆ odr_constructed_begin()

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().

◆ odr_constructed_end()

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().

◆ odr_constructed_more()

int odr_constructed_more ( ODR  o)

◆ odr_create_Odr_oct()

Odr_oct* odr_create_Odr_oct ( ODR  o,
const char *  buf,
int  sz 
)

◆ odr_createmem()

ODR odr_createmem ( int  direction)

◆ odr_cstring()

int odr_cstring ( ODR  o,
char **  p,
int  opt,
const char *  name 
)

◆ odr_destroy()

void odr_destroy ( ODR  o)

◆ odr_dumpBER()

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().

◆ odr_end()

void odr_end ( ODR  o)

◆ odr_enum()

int odr_enum ( ODR  o,
Odr_int **  p,
int  opt,
const char *  name 
)

◆ odr_errmsg()

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().

◆ odr_external()

int odr_external ( ODR  o,
Odr_external **  p,
int  opt,
const char *  name 
)

◆ odr_extract_mem()

NMEM odr_extract_mem ( ODR  o)

◆ odr_generalizedtime()

int odr_generalizedtime ( ODR  o,
char **  p,
int  opt,
const char *  name 
)

◆ odr_generalstring()

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().

◆ odr_get_element_path()

const char** odr_get_element_path ( ODR  o)

◆ odr_getbuf()

char* odr_getbuf ( ODR  o,
int *  len,
int *  size 
)

◆ odr_getelement()

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().

◆ odr_geterror()

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().

◆ odr_geterrorx()

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().

◆ odr_getoidbystr()

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_getoidbystr_nmem()

Odr_oid* odr_getoidbystr_nmem ( NMEM  o,
const char *  str 
)

◆ odr_graphicstring()

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().

◆ odr_grow_block()

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().

◆ odr_iconv_string()

int odr_iconv_string ( ODR  o,
char **  p,
int  opt,
const char *  name 
)

◆ odr_implicit_settag()

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().

◆ odr_initmember()

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().

◆ odr_intdup()

Odr_int* odr_intdup ( ODR  o,
Odr_int  v 
)

◆ odr_integer()

int odr_integer ( ODR  o,
Odr_int **  p,
int  opt,
const char *  name 
)

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().

◆ odr_malloc()

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().

◆ odr_missing()

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().

◆ odr_null()

int odr_null ( ODR  o,
Odr_null **  p,
int  opt,
const char *  name 
)

◆ odr_nullval()

Odr_null* odr_nullval ( void  )

◆ odr_octetstring()

int odr_octetstring ( ODR  o,
Odr_oct **  p,
int  opt,
const char *  name 
)

◆ odr_offset()

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().

◆ odr_oid()

int odr_oid ( ODR  o,
Odr_oid **  p,
int  opt,
const char *  name 
)

◆ odr_oiddup()

Odr_oid* odr_oiddup ( ODR  odr,
const Odr_oid o 
)

◆ odr_oiddup_nmem()

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().

◆ odr_peektag()

int odr_peektag ( ODR  o,
int *  zclass,
int *  tag,
int *  cons 
)

◆ odr_perror()

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().

◆ odr_prepend()

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().

◆ odr_printf()

void odr_printf ( ODR  o,
const char *  fmt,
  ... 
)

◆ odr_prname()

void odr_prname ( ODR  o,
const char *  name 
)

◆ odr_reset()

void odr_reset ( ODR  o)

◆ odr_seek()

int odr_seek ( ODR  o,
int  whence,
int  offset 
)

◆ odr_sequence_begin()

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().

◆ odr_sequence_end()

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().

◆ odr_sequence_of()

int odr_sequence_of ( ODR  o,
Odr_fun  type,
void *  p,
int *  num,
const char *  name 
)

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().

◆ odr_set_begin()

int odr_set_begin ( ODR  o,
void *  p,
int  size,
const char *  name 
)

◆ odr_set_charset()

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().

◆ odr_set_end()

int odr_set_end ( ODR  o)

Definition at line 66 of file odr_seq.c.

References odr_constructed_end().

◆ odr_set_of()

int odr_set_of ( ODR  o,
Odr_fun  type,
void *  p,
int *  num,
const char *  name 
)

Definition at line 124 of file odr_seq.c.

References odr::direction, name, ODR_DECODE, odr_sequence_x(), odr_set_begin(), and type.

◆ odr_set_stream()

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 
)

◆ odr_setbuf()

void odr_setbuf ( ODR  o,
char *  buf,
int  len,
int  can_grow 
)

◆ odr_setelement()

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().

◆ odr_seterror()

void odr_seterror ( ODR  o,
int  errorno,
int  errorid 
)

◆ odr_setlenlen()

void odr_setlenlen ( ODR  o,
int  len 
)

Definition at line 19 of file odr_cons.c.

References Odr_private::lenlen, and odr::op.

◆ odr_setprint()

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().

◆ odr_setprint_noclose()

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().

◆ odr_strdup()

char* odr_strdup ( ODR  o,
const char *  str 
)

◆ odr_strdup_null()

char* odr_strdup_null ( ODR  o,
const char *  str 
)

◆ odr_strdupn()

char* odr_strdupn ( ODR  o,
const char *  str,
size_t  n 
)

◆ odr_strtol()

Odr_int odr_strtol ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 132 of file odr_mem.c.

Referenced by odr_atoi().

◆ odr_total()

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().

◆ odr_visiblestring()

int odr_visiblestring ( ODR  o,
char **  p,
int  opt,
const char *  name 
)

◆ odr_write()

int odr_write ( ODR  o,
const char *  buf,
int  bytes 
)

Variable Documentation

◆ odr_errlist

char* odr_errlist[]
extern

Definition at line 35 of file odr.c.

Referenced by odr_errmsg(), and odr_perror().

◆ ODR_NULLVAL

Odr_null* ODR_NULLVAL
extern

Definition at line 28 of file odr.c.

Referenced by odr_nullval().