X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsettings.c;h=cbe8baf12660f85adea7dd29586627b6b5f4f36d;hb=3d99aecedf9d6e6ebeadcedbee081049b03dbbf8;hp=8dbb687b7e161d2806c9259a4f5f8b9d2b9a5c56;hpb=cc178327044177f177d0474b757f53bcd86b4d42;p=pazpar2-moved-to-github.git diff --git a/src/settings.c b/src/settings.c index 8dbb687..cbe8baf 100644 --- a/src/settings.c +++ b/src/settings.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2008 Index Data + Copyright (C) 2006-2009 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -17,12 +17,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - // This module implements a generic system of settings // (attribute-value) that can be associated with search targets. The // system supports both default values, per-target overrides, and // per-user settings. +#if HAVE_CONFIG_H +#include +#endif + + #include #include #include @@ -59,6 +63,9 @@ static char *hard_settings[] = { "pz:ip", "pz:zproxy", "pz:apdulog", + "pz:sru", + "pz:sru_version", + "pz:pqf_prefix", 0 }; @@ -368,7 +375,7 @@ static void initialize_hard_settings(struct setting_dictionary *dict) // Read any settings names introduced in service definition (config) and add to dictionary // This is done now to avoid errors if user settings are declared in session overrides -static void initialize_soft_settings() +static void initialize_soft_settings(void) { struct conf_service *service = config->servers->service; int i; @@ -416,7 +423,9 @@ void init_settings(void) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +