pazpar2  1.13.0
Data Structures | Enumerations | Functions
pazpar2_config.h File Reference
#include "normalize_cache.h"
#include <yaz/nmem.h>
#include <yaz/mutex.h>
#include <yaz/ccl.h>
#include "charsets.h"
#include "http.h"
#include "database.h"

Go to the source code of this file.

Data Structures

struct  conf_metadata
 
struct  conf_sortkey
 
struct  conf_service
 
struct  conf_server
 

Enumerations

enum  conf_metadata_type {
  Metadata_type_generic, Metadata_type_year, Metadata_type_date, Metadata_type_float,
  Metadata_type_skiparticle, Metadata_type_relevance, Metadata_type_position, Metadata_type_retrieval
}
 
enum  conf_metadata_merge {
  Metadata_merge_no, Metadata_merge_unique, Metadata_merge_longest, Metadata_merge_range,
  Metadata_merge_all, Metadata_merge_first
}
 
enum  conf_setting_type { Metadata_setting_no, Metadata_setting_postproc, Metadata_setting_parameter }
 
enum  conf_metadata_mergekey { Metadata_mergekey_no, Metadata_mergekey_optional, Metadata_mergekey_required }
 

Functions

int conf_service_metadata_field_id (struct conf_service *service, const char *name)
 
int conf_service_sortkey_field_id (struct conf_service *service, const char *name)
 
struct conf_configconfig_create (const char *fname)
 
void config_destroy (struct conf_config *config)
 
void config_process_events (struct conf_config *config)
 
void info_services (struct conf_server *server, WRBUF w)
 
struct conf_servicelocate_service (struct conf_server *server, const char *service_id)
 
struct conf_serviceservice_create (struct conf_server *server, xmlNode *node)
 
void service_incref (struct conf_service *service)
 
void service_destroy (struct conf_service *service)
 
int config_start_listeners (struct conf_config *conf, const char *listener_override, const char *record_fname)
 
void config_stop_listeners (struct conf_config *conf)
 
WRBUF conf_get_fname (struct conf_config *config, const char *fname)
 

Enumeration Type Documentation

Enumerator
Metadata_merge_no 
Metadata_merge_unique 
Metadata_merge_longest 
Metadata_merge_range 
Metadata_merge_all 
Metadata_merge_first 

Definition at line 43 of file pazpar2_config.h.

Enumerator
Metadata_mergekey_no 
Metadata_mergekey_optional 
Metadata_mergekey_required 

Definition at line 59 of file pazpar2_config.h.

Enumerator
Metadata_type_generic 
Metadata_type_year 
Metadata_type_date 
Metadata_type_float 
Metadata_type_skiparticle 
Metadata_type_relevance 
Metadata_type_position 
Metadata_type_retrieval 

Definition at line 32 of file pazpar2_config.h.

Enumerator
Metadata_setting_no 
Metadata_setting_postproc 
Metadata_setting_parameter 

Definition at line 53 of file pazpar2_config.h.

Function Documentation

WRBUF conf_get_fname ( struct conf_config config,
const char *  fname 
)

Definition at line 1023 of file pazpar2_config.c.

References conf_dir_path().

Referenced by normalize_record_create().

int conf_service_metadata_field_id ( struct conf_service service,
const char *  name 
)
int conf_service_sortkey_field_id ( struct conf_service service,
const char *  name 
)

Definition at line 246 of file pazpar2_config.c.

References conf_service::num_sortkeys, and conf_service::sortkeys.

struct conf_config* config_create ( const char *  fname)
void config_destroy ( struct conf_config config)
void config_process_events ( struct conf_config config)
int config_start_listeners ( struct conf_config conf,
const char *  listener_override,
const char *  record_fname 
)
void config_stop_listeners ( struct conf_config conf)

Definition at line 1391 of file pazpar2_config.c.

References http_close_server(), conf_server::next, and conf_config::servers.

Referenced by sc_stop().

void info_services ( struct conf_server server,
WRBUF  w 
)
struct conf_service* locate_service ( struct conf_server server,
const char *  service_id 
)

Definition at line 1031 of file pazpar2_config.c.

References conf_service::id, conf_service::next, conf_server::service, and service_incref().

Referenced by cmd_init().

struct conf_service* service_create ( struct conf_server server,
xmlNode *  node 
)
void service_destroy ( struct conf_service service)
void service_incref ( struct conf_service service)

Definition at line 293 of file pazpar2_config.c.

References conf_service::mutex, pazpar2_incref(), and conf_service::ref_count.

Referenced by locate_service().