From: Dennis Schafroth Date: Thu, 19 Apr 2012 10:28:36 +0000 (+0200) Subject: New method to create new database with inherited settings from service X-Git-Tag: v1.6.13~39 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=3d1c1ad4bfe256460ac32810836c4bd015142786;p=pazpar2-moved-to-github.git New method to create new database with inherited settings from service --- diff --git a/src/database.h b/src/database.h index ae77337..0ed6fa9 100644 --- a/src/database.h +++ b/src/database.h @@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA struct session_database; struct session; struct conf_service; +struct settings; + struct database *create_database_for_service(const char *id, struct conf_service *service); int session_grep_databases(struct session *se, const char *filter, @@ -31,6 +33,8 @@ int predef_grep_databases(void *context, struct conf_service *service, void (*fun)(void *context, struct database *db)); int match_zurl(const char *zurl, const char *pattern); struct database *new_database(const char *id, NMEM nmem); +// inherit values from (service) settings +struct database *new_database_inherit_settings(const char *id, NMEM nmem, struct settings *settings); #endif