X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fdatabase.h;h=ae77337278d7d270faf25cc4782de287c053c6bc;hb=6d01755305a7afba15ed4bc90ac9c149ee7d130e;hp=7631b557ac0606de70cdbfdf8a6ce0c99ce08f33;hpb=5331cb5a3f7e8f6018036d13b4bfd6e334b2dbf0;p=pazpar2-moved-to-github.git diff --git a/src/database.h b/src/database.h index 7631b55..ae77337 100644 --- a/src/database.h +++ b/src/database.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2009 Index Data + Copyright (C) 2006-2012 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 @@ -20,15 +20,17 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifndef DATABASE_H #define DATABASE_H -void prepare_databases(void); -struct database *find_database(const char *id, int new, struct conf_service *service); -int session_grep_databases(struct session *se, struct database_criterion *cl, - void (*fun)(void *context, struct session_database *db)); +struct session_database; +struct session; +struct conf_service; +struct database *create_database_for_service(const char *id, + struct conf_service *service); +int session_grep_databases(struct session *se, const char *filter, + void (*fun)(struct session *se, struct session_database *db)); int predef_grep_databases(void *context, struct conf_service *service, - struct database_criterion *cl, void (*fun)(void *context, struct database *db)); int match_zurl(const char *zurl, const char *pattern); -int resolve_database(struct database *db); +struct database *new_database(const char *id, NMEM nmem); #endif