YAZ  5.25.0
Functions | Variables
diag_map.c File Reference

Implements SRU/Z39.50 diagnostic mappings. More...

#include <stdlib.h>
#include <assert.h>
#include <yaz/srw.h>

Go to the source code of this file.


int yaz_diag_bib1_to_srw (int code)
int yaz_diag_srw_to_bib1 (int code)


static int bib1_srw_map []
static int srw_bib1_map []

Detailed Description

Implements SRU/Z39.50 diagnostic mappings.

Definition in file diag_map.c.

Function Documentation

◆ yaz_diag_bib1_to_srw()

int yaz_diag_bib1_to_srw ( int  code)

Definition at line 203 of file diag_map.c.

References bib1_srw_map.

Referenced by srw_bend_fetch(), srw_bend_init(), srw_bend_scan(), and srw_bend_search().

◆ yaz_diag_srw_to_bib1()

int yaz_diag_srw_to_bib1 ( int  code)

Definition at line 215 of file diag_map.c.

References bib1_srw_map, and srw_bib1_map.

Referenced by process_searchRequest().

Variable Documentation

◆ bib1_srw_map

int bib1_srw_map[]

Definition at line 18 of file diag_map.c.

Referenced by yaz_diag_bib1_to_srw(), and yaz_diag_srw_to_bib1().

◆ srw_bib1_map

int srw_bib1_map[]
Initial value:
= {
10, 108,
66, 238,
235, 235,

Definition at line 194 of file diag_map.c.

Referenced by yaz_diag_srw_to_bib1().