X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fpazpar2_config.h;h=31186315d37c988d1ec7be9a323997fcf63f6a7f;hb=de634461a0500801cd71d6a42aff032fa083a127;hp=a26aeae405c5a5f6c0332a234b785db938151dc5;hpb=c61cbac9542ca9443e4fb0c215240bd9053a54f8;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2_config.h b/src/pazpar2_config.h index a26aeae..3118631 100644 --- a/src/pazpar2_config.h +++ b/src/pazpar2_config.h @@ -101,10 +101,22 @@ struct conf_service int num_sortkeys; struct conf_sortkey *sortkeys; struct setting_dictionary *dictionary; + struct conf_service *next; + char *id; + char *settings; NMEM nmem; + + /* duplicated from conf_server */ + pp2_charset_t relevance_pct; + pp2_charset_t sort_pct; + pp2_charset_t mergekey_pct; + + + struct database *databases; }; -struct conf_service * conf_service_create(int num_metadata, int num_sortkeys); +struct conf_service * conf_service_create(int num_metadata, int num_sortkeys, + const char *service_id); struct conf_metadata* conf_service_add_metadata(struct conf_service *service, int field_id, @@ -136,7 +148,7 @@ struct conf_server char *proxy_host; int proxy_port; char *myurl; - char *settings; + char *server_settings; pp2_charset_t relevance_pct; pp2_charset_t sort_pct; @@ -161,14 +173,15 @@ struct conf_config struct conf_targetprofiles *targetprofiles; }; -#ifndef CONFIG_NOEXTERNS +struct conf_config *read_config(const char *fname); +xsltStylesheet *conf_load_stylesheet(const char *fname); -extern struct conf_config *config; +void config_read_settings(struct conf_config *config, + const char *path_override); -#endif +struct conf_service *locate_service(struct conf_server *server, + const char *service_id); -int read_config(const char *fname); -xsltStylesheet *conf_load_stylesheet(const char *fname); #endif