YAZ  5.23.1
Functions
sru-p.h File Reference

SRU private header. More...

#include <libxml/parser.h>
#include <libxml/tree.h>

Go to the source code of this file.

Functions

void yaz_add_name_value_str (ODR o, char **name, char **value, int *i, char *a_name, char *val)
 
void yaz_add_name_value_int (ODR o, char **name, char **value, int *i, char *a_name, Odr_int *val)
 
char * yaz_negotiate_sru_version (char *input_ver)
 
void yaz_sru_facet_request (ODR, Z_FacetList **facetList, const char **limit, const char **start, const char **sort)
 
int yaz_match_xsd_string (xmlNodePtr ptr, const char *elem, ODR o, char **val)
 
int yaz_match_xsd_integer (xmlNodePtr ptr, const char *elem, ODR o, Odr_int **val)
 
int yaz_match_xsd_string_n (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len)
 
int yaz_match_xsd_string_n_nmem (xmlNodePtr ptr, const char *elem, NMEM nmem, char **val, int *len)
 
int yaz_match_xsd_element (xmlNodePtr ptr, const char *elem)
 
int yaz_match_xsd_XML_n2 (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len, int fixup_root)
 
int yaz_match_xsd_XML_n (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len)
 
xmlNodePtr add_xsd_string (xmlNodePtr ptr, const char *elem, const char *val)
 
void add_xsd_integer (xmlNodePtr ptr, const char *elem, const Odr_int *val)
 
xmlNodePtr add_xsd_string_n (xmlNodePtr ptr, const char *elem, const char *val, int len)
 
void add_XML_n (xmlNodePtr ptr, const char *elem, char *val, int len, xmlNsPtr ns_ptr)
 
xmlNodePtr add_xsd_string_ns (xmlNodePtr ptr, const char *elem, const char *val, xmlNsPtr ns_ptr)
 
void yaz_sru_facet_response (ODR o, Z_FacetList **facetList, xmlNodePtr n)
 
const char * yaz_element_attribute_value_get (xmlNodePtr ptr, const char *node_name, const char *attribute_name)
 

Detailed Description

SRU private header.

Definition in file sru-p.h.

Function Documentation

void add_XML_n ( xmlNodePtr  ptr,
const char *  elem,
char *  val,
int  len,
xmlNsPtr  ns_ptr 
)

Definition at line 19 of file xml_add.c.

Referenced by yaz_srw_codec(), yaz_srw_record(), and yaz_ucp_codec().

void add_xsd_integer ( xmlNodePtr  ptr,
const char *  elem,
const Odr_int val 
)

Definition at line 66 of file xml_add.c.

References ODR_INT_PRINTF.

Referenced by yaz_sru_facet_response(), yaz_srw_codec(), yaz_srw_record(), and yaz_srw_term().

xmlNodePtr add_xsd_string ( xmlNodePtr  ptr,
const char *  elem,
const char *  val 
)
xmlNodePtr add_xsd_string_n ( xmlNodePtr  ptr,
const char *  elem,
const char *  val,
int  len 
)

Definition at line 35 of file xml_add.c.

Referenced by yaz_sru_facet_response(), and yaz_srw_record().

xmlNodePtr add_xsd_string_ns ( xmlNodePtr  ptr,
const char *  elem,
const char *  val,
xmlNsPtr  ns_ptr 
)

Definition at line 48 of file xml_add.c.

Referenced by add_xsd_string(), and yaz_ucp_codec().

void yaz_add_name_value_int ( ODR  o,
char **  name,
char **  value,
int *  i,
char *  a_name,
Odr_int val 
)

Definition at line 929 of file srwutil.c.

References ODR_INT_PRINTF, and odr_malloc().

Referenced by yaz_get_sru_parms(), yaz_solr_encode_facet_field(), and yaz_solr_encode_request().

void yaz_add_name_value_str ( ODR  o,
char **  name,
char **  value,
int *  i,
char *  a_name,
char *  val 
)
const char* yaz_element_attribute_value_get ( xmlNodePtr  ptr,
const char *  node_name,
const char *  attribute_name 
)
int yaz_match_xsd_element ( xmlNodePtr  ptr,
const char *  elem 
)
int yaz_match_xsd_integer ( xmlNodePtr  ptr,
const char *  elem,
ODR  o,
Odr_int **  val 
)
int yaz_match_xsd_string ( xmlNodePtr  ptr,
const char *  elem,
ODR  o,
char **  val 
)
int yaz_match_xsd_string_n ( xmlNodePtr  ptr,
const char *  elem,
ODR  o,
char **  val,
int *  len 
)

Definition at line 65 of file xml_match.c.

References odr::mem, and yaz_match_xsd_string_n_nmem().

Referenced by yaz_match_xsd_string(), and yaz_srw_record().

int yaz_match_xsd_string_n_nmem ( xmlNodePtr  ptr,
const char *  elem,
NMEM  nmem,
char **  val,
int *  len 
)

Definition at line 29 of file xml_match.c.

References nmem_strdup(), and yaz_match_xsd_element().

Referenced by match_element_next(), and yaz_match_xsd_string_n().

int yaz_match_xsd_XML_n ( xmlNodePtr  ptr,
const char *  elem,
ODR  o,
char **  val,
int *  len 
)

Definition at line 120 of file xml_match.c.

References yaz_match_xsd_XML_n2().

Referenced by yaz_srw_codec(), and yaz_srw_record().

int yaz_match_xsd_XML_n2 ( xmlNodePtr  ptr,
const char *  elem,
ODR  o,
char **  val,
int *  len,
int  fixup_root 
)

Definition at line 76 of file xml_match.c.

References odr_strdupn(), and yaz_match_xsd_element().

Referenced by yaz_match_xsd_XML_n(), and yaz_srw_record().

char* yaz_negotiate_sru_version ( char *  input_ver)

Definition at line 25 of file srw.c.

Referenced by yaz_sru_decode(), and yaz_srw_codec().

void yaz_sru_facet_request ( ODR  ,
Z_FacetList **  facetList,
const char **  limit,
const char **  start,
const char **  sort 
)
void yaz_sru_facet_response ( ODR  o,
Z_FacetList **  facetList,
xmlNodePtr  n 
)