pazpar2  1.14.1
Data Structures | Macros | Functions
settings.h File Reference

Go to the source code of this file.

Data Structures

struct  setting
 
struct  database
 
struct  settings_array
 

Macros

#define PZ_PIGGYBACK   0
 
#define PZ_ELEMENTS   1
 
#define PZ_REQUESTSYNTAX   2
 
#define PZ_CCLMAP   3
 
#define PZ_XSLT   4
 
#define PZ_NATIVESYNTAX   5
 
#define PZ_AUTHENTICATION   6
 
#define PZ_ALLOW   7
 
#define PZ_MAXRECS   8
 
#define PZ_ID   9
 
#define PZ_NAME   10
 
#define PZ_QUERYENCODING   11
 
#define PZ_ZPROXY   12
 
#define PZ_APDULOG   13
 
#define PZ_SRU   14
 
#define PZ_SRU_VERSION   15
 
#define PZ_PQF_PREFIX   16
 
#define PZ_SORT   17
 
#define PZ_RECORDFILTER   18
 
#define PZ_PQF_STRFTIME   19
 
#define PZ_NEGOTIATION_CHARSET   20
 
#define PZ_MAX_CONNECTIONS   21
 
#define PZ_REUSE_CONNECTIONS   22
 
#define PZ_TERMLIST_TERM_FACTOR   23
 
#define PZ_TERMLIST_TERM_COUNT   24
 
#define PZ_PREFERRED   25
 
#define PZ_EXTRA_ARGS   26
 
#define PZ_QUERY_SYNTAX   27
 
#define PZ_FACETMAP   28
 
#define PZ_LIMITMAP   29
 
#define PZ_URL   30
 
#define PZ_SORTMAP   31
 
#define PZ_PRESENT_CHUNK   32
 
#define PZ_BLOCK_TIMEOUT   33
 
#define PZ_EXTENDRECS   34
 
#define PZ_AUTHENTICATION_MODE   35
 
#define PZ_NATIVE_SCORE   36
 
#define PZ_MEMCACHED   37
 
#define PZ_REDIS   38
 
#define PZ_TIMEOUT   39
 
#define PZ_MAX_EOF   40
 

Functions

int settings_read_file (struct conf_service *service, const char *path, int pass)
 
int settings_read_node (struct conf_service *service, xmlNode *n, int pass)
 
int settings_num (struct conf_service *service)
 
int settings_create_offset (struct conf_service *service, const char *name)
 
int settings_lookup_offset (struct conf_service *service, const char *name)
 
void init_settings (struct conf_service *service)
 
int settings_read_node_x (xmlNode *n, void *client_data, void(*fun)(void *client_data, struct setting *set))
 
void expand_settings_array (struct setting ***set_ar, int *num, int offset, NMEM nmem)
 

Macro Definition Documentation

◆ PZ_ALLOW

#define PZ_ALLOW   7

Definition at line 30 of file settings.h.

◆ PZ_APDULOG

#define PZ_APDULOG   13

Definition at line 36 of file settings.h.

◆ PZ_AUTHENTICATION

#define PZ_AUTHENTICATION   6

Definition at line 29 of file settings.h.

◆ PZ_AUTHENTICATION_MODE

#define PZ_AUTHENTICATION_MODE   35

Definition at line 58 of file settings.h.

◆ PZ_BLOCK_TIMEOUT

#define PZ_BLOCK_TIMEOUT   33

Definition at line 56 of file settings.h.

◆ PZ_CCLMAP

#define PZ_CCLMAP   3

Definition at line 26 of file settings.h.

◆ PZ_ELEMENTS

#define PZ_ELEMENTS   1

Definition at line 24 of file settings.h.

◆ PZ_EXTENDRECS

#define PZ_EXTENDRECS   34

Definition at line 57 of file settings.h.

◆ PZ_EXTRA_ARGS

#define PZ_EXTRA_ARGS   26

Definition at line 49 of file settings.h.

◆ PZ_FACETMAP

#define PZ_FACETMAP   28

Definition at line 51 of file settings.h.

◆ PZ_ID

#define PZ_ID   9

Definition at line 32 of file settings.h.

◆ PZ_LIMITMAP

#define PZ_LIMITMAP   29

Definition at line 52 of file settings.h.

◆ PZ_MAX_CONNECTIONS

#define PZ_MAX_CONNECTIONS   21

Definition at line 44 of file settings.h.

◆ PZ_MAX_EOF

#define PZ_MAX_EOF   40

Definition at line 63 of file settings.h.

◆ PZ_MAXRECS

#define PZ_MAXRECS   8

Definition at line 31 of file settings.h.

◆ PZ_MEMCACHED

#define PZ_MEMCACHED   37

Definition at line 60 of file settings.h.

◆ PZ_NAME

#define PZ_NAME   10

Definition at line 33 of file settings.h.

◆ PZ_NATIVE_SCORE

#define PZ_NATIVE_SCORE   36

Definition at line 59 of file settings.h.

◆ PZ_NATIVESYNTAX

#define PZ_NATIVESYNTAX   5

Definition at line 28 of file settings.h.

◆ PZ_NEGOTIATION_CHARSET

#define PZ_NEGOTIATION_CHARSET   20

Definition at line 43 of file settings.h.

◆ PZ_PIGGYBACK

#define PZ_PIGGYBACK   0

Definition at line 23 of file settings.h.

◆ PZ_PQF_PREFIX

#define PZ_PQF_PREFIX   16

Definition at line 39 of file settings.h.

◆ PZ_PQF_STRFTIME

#define PZ_PQF_STRFTIME   19

Definition at line 42 of file settings.h.

◆ PZ_PREFERRED

#define PZ_PREFERRED   25

Definition at line 48 of file settings.h.

◆ PZ_PRESENT_CHUNK

#define PZ_PRESENT_CHUNK   32

Definition at line 55 of file settings.h.

◆ PZ_QUERY_SYNTAX

#define PZ_QUERY_SYNTAX   27

Definition at line 50 of file settings.h.

◆ PZ_QUERYENCODING

#define PZ_QUERYENCODING   11

Definition at line 34 of file settings.h.

◆ PZ_RECORDFILTER

#define PZ_RECORDFILTER   18

Definition at line 41 of file settings.h.

◆ PZ_REDIS

#define PZ_REDIS   38

Definition at line 61 of file settings.h.

◆ PZ_REQUESTSYNTAX

#define PZ_REQUESTSYNTAX   2

Definition at line 25 of file settings.h.

◆ PZ_REUSE_CONNECTIONS

#define PZ_REUSE_CONNECTIONS   22

Definition at line 45 of file settings.h.

◆ PZ_SORT

#define PZ_SORT   17

Definition at line 40 of file settings.h.

◆ PZ_SORTMAP

#define PZ_SORTMAP   31

Definition at line 54 of file settings.h.

◆ PZ_SRU

#define PZ_SRU   14

Definition at line 37 of file settings.h.

◆ PZ_SRU_VERSION

#define PZ_SRU_VERSION   15

Definition at line 38 of file settings.h.

◆ PZ_TERMLIST_TERM_COUNT

#define PZ_TERMLIST_TERM_COUNT   24

Definition at line 47 of file settings.h.

◆ PZ_TERMLIST_TERM_FACTOR

#define PZ_TERMLIST_TERM_FACTOR   23

Definition at line 46 of file settings.h.

◆ PZ_TIMEOUT

#define PZ_TIMEOUT   39

Definition at line 62 of file settings.h.

◆ PZ_URL

#define PZ_URL   30

Definition at line 53 of file settings.h.

◆ PZ_XSLT

#define PZ_XSLT   4

Definition at line 27 of file settings.h.

◆ PZ_ZPROXY

#define PZ_ZPROXY   12

Definition at line 35 of file settings.h.

Function Documentation

◆ expand_settings_array()

void expand_settings_array ( struct setting ***  set_ar,
int *  num,
int  offset,
NMEM  nmem 
)

Definition at line 336 of file settings.c.

Referenced by session_apply_setting(), and update_database_fun().

◆ init_settings()

void init_settings ( struct conf_service service)

◆ settings_create_offset()

int settings_create_offset ( struct conf_service service,
const char *  name 
)

◆ settings_lookup_offset()

int settings_lookup_offset ( struct conf_service service,
const char *  name 
)

◆ settings_num()

int settings_num ( struct conf_service service)

Definition at line 107 of file settings.c.

References conf_service::dictionary, and setting_dictionary::num.

◆ settings_read_file()

int settings_read_file ( struct conf_service service,
const char *  path,
int  pass 
)

Definition at line 563 of file settings.c.

References prepare_target_dictionary(), read_settings(), and update_databases().

Referenced by inherit_server_settings().

◆ settings_read_node()

int settings_read_node ( struct conf_service service,
xmlNode *  n,
int  pass 
)

◆ settings_read_node_x()

int settings_read_node_x ( xmlNode *  n,
void *  client_data,
void(*)(void *client_data, struct setting *set)  fun 
)