From 3d1c1ad4bfe256460ac32810836c4bd015142786 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 19 Apr 2012 12:28:36 +0200 Subject: [PATCH] New method to create new database with inherited settings from service --- src/database.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.4