prt-ext.h File Reference

Header for utilities that handles Z39.50 EXTERNALs. More...

#include <yaz/yconfig.h>
#include <yaz/oid_util.h>

Go to the source code of this file.

Data Structures

struct  Z_ext_typeent
struct  Z_External
 structure for all known EXTERNALs More...

Defines

#define Z_External_single   0
#define Z_External_octet   1
#define Z_External_arbitrary   2
#define Z_External_sutrs   3
#define Z_External_explainRecord   4
#define Z_External_resourceReport1   5
#define Z_External_resourceReport2   6
#define Z_External_promptObject1   7
#define Z_External_grs1   8
#define Z_External_extendedService   9
#define Z_External_itemOrder   10
#define Z_External_diag1   11
#define Z_External_espec1   12
#define Z_External_summary   13
#define Z_External_OPAC   14
#define Z_External_searchResult1   15
#define Z_External_update   16
#define Z_External_dateTime   17
#define Z_External_universeReport   18
#define Z_External_ESAdmin   19
#define Z_External_update0   20
#define Z_External_userInfo1   21
#define Z_External_charSetandLanguageNegotiation   22
#define Z_External_acfPrompt1   23
#define Z_External_acfDes1   24
#define Z_External_acfKrb1   25
#define Z_External_multisrch2   26
#define Z_External_CQL   27
#define Z_External_OCLCUserInfo   28

Functions

int z_External (ODR o, Z_External **p, int opt, const char *name)
 codec for BER EXTERNAL
Z_ext_typeentz_ext_getentbyref (const Odr_oid *oid)
 returns type information for OID (NULL if not known)
Z_Externalz_ext_record_oid (ODR o, const Odr_oid *oid, const char *buf, int len)
 encodes EXTERNAL record based on OID (NULL if not known)
Z_Externalz_ext_record_xml (ODR o, const char *buf, int len)
 encodes EXTERNAL XML record
Z_Externalz_ext_record_sutrs (ODR o, const char *buf, int len)
 encodes EXTERNAL SUTRS record
Z_Externalz_ext_record_usmarc (ODR o, const char *buf, int len)
 encodes EXTERNAL USMARC/MARC21 record


Detailed Description

Header for utilities that handles Z39.50 EXTERNALs.

Definition in file prt-ext.h.


Define Documentation

#define Z_External_acfDes1   24

Definition at line 90 of file prt-ext.h.

Referenced by z_External().

#define Z_External_acfKrb1   25

Definition at line 91 of file prt-ext.h.

Referenced by z_External().

#define Z_External_acfPrompt1   23

Definition at line 89 of file prt-ext.h.

Referenced by z_External().

#define Z_External_arbitrary   2

Definition at line 67 of file prt-ext.h.

Referenced by z_External().

#define Z_External_charSetandLanguageNegotiation   22

#define Z_External_CQL   27

#define Z_External_dateTime   17

Definition at line 83 of file prt-ext.h.

Referenced by z_External().

#define Z_External_diag1   11

Definition at line 77 of file prt-ext.h.

Referenced by z_External(), zget_init_diagnostics(), and zget_init_diagnostics_octet().

#define Z_External_ESAdmin   19

Definition at line 85 of file prt-ext.h.

Referenced by create_admin_package(), and z_External().

#define Z_External_espec1   12

Definition at line 78 of file prt-ext.h.

Referenced by z_External().

#define Z_External_explainRecord   4

Definition at line 70 of file prt-ext.h.

Referenced by z_External().

#define Z_External_extendedService   9

Definition at line 75 of file prt-ext.h.

Referenced by z_External().

#define Z_External_grs1   8

Definition at line 74 of file prt-ext.h.

Referenced by z_External(), and ZOOM_record_get().

#define Z_External_itemOrder   10

Definition at line 76 of file prt-ext.h.

Referenced by z_External(), ZOOM_package_send(), and ztest_esrequest().

#define Z_External_multisrch2   26

Definition at line 92 of file prt-ext.h.

Referenced by z_External().

#define Z_External_OCLCUserInfo   28

Definition at line 94 of file prt-ext.h.

Referenced by z_External().

#define Z_External_octet   1

#define Z_External_OPAC   14

Definition at line 80 of file prt-ext.h.

Referenced by z_External(), and ZOOM_record_get().

#define Z_External_promptObject1   7

Definition at line 73 of file prt-ext.h.

Referenced by z_External().

#define Z_External_resourceReport1   5

Definition at line 71 of file prt-ext.h.

Referenced by z_External().

#define Z_External_resourceReport2   6

Definition at line 72 of file prt-ext.h.

Referenced by z_External().

#define Z_External_searchResult1   15

Definition at line 81 of file prt-ext.h.

Referenced by z_External().

#define Z_External_single   0

Definition at line 65 of file prt-ext.h.

Referenced by z_External().

#define Z_External_summary   13

Definition at line 79 of file prt-ext.h.

Referenced by z_External().

#define Z_External_sutrs   3

Definition at line 69 of file prt-ext.h.

Referenced by z_External(), ZOOM_record_get(), and ztest_esrequest().

#define Z_External_universeReport   18

Definition at line 84 of file prt-ext.h.

Referenced by z_External().

#define Z_External_update   16

Definition at line 82 of file prt-ext.h.

Referenced by z_External(), and ztest_esrequest().

#define Z_External_update0   20

Definition at line 86 of file prt-ext.h.

Referenced by z_External().

#define Z_External_userInfo1   21

Definition at line 87 of file prt-ext.h.

Referenced by z_External(), and zget_init_diagnostics().


Function Documentation

Z_ext_typeent* z_ext_getentbyref ( const Odr_oid oid  ) 

returns type information for OID (NULL if not known)

Definition at line 57 of file prt-ext.c.

References Z_ext_typeent::oid, and oid_oidcmp().

Referenced by z_External().

Z_External* z_ext_record_oid ( ODR  o,
const Odr_oid oid,
const char *  buf,
int  len 
)

Z_External* z_ext_record_sutrs ( ODR  o,
const char *  buf,
int  len 
)

encodes EXTERNAL SUTRS record

Definition at line 326 of file prt-ext.c.

References yaz_oid_recsyn_sutrs, and z_ext_record_oid().

Referenced by ztest_esrequest().

Z_External* z_ext_record_usmarc ( ODR  o,
const char *  buf,
int  len 
)

encodes EXTERNAL USMARC/MARC21 record

Definition at line 331 of file prt-ext.c.

References yaz_oid_recsyn_usmarc, and z_ext_record_oid().

Referenced by dummy_opac().

Z_External* z_ext_record_xml ( ODR  o,
const char *  buf,
int  len 
)

encodes EXTERNAL XML record

Definition at line 321 of file prt-ext.c.

References yaz_oid_recsyn_xml, and z_ext_record_oid().

Referenced by ztest_esrequest().

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

codec for BER EXTERNAL

This routine is the BER codec for the EXTERNAL type. It handles information in single-ASN1-type and octet-aligned for known structures.

    [UNIVERSAL 8] IMPLICIT SEQUENCE {
    direct-reference      OBJECT IDENTIFIER OPTIONAL,
    indirect-reference    INTEGER OPTIONAL,
    data-value-descriptor ObjectDescriptor OPTIONAL,
    encoding              CHOICE {
      single-ASN1-type   [0] ABSTRACT_SYNTAX.&Type,
      octet-aligned      [1] IMPLICIT OCTET STRING,
      arbitrary          [2] IMPLICIT BIT STRING 
      }
    }
  
arbitrary BIT STRING not handled yet.

Definition at line 86 of file prt-ext.c.


Generated on Wed Jun 18 11:17:03 2008 for YAZ by  doxygen 1.5.6