Removed load_simpletargets
[pazpar2-moved-to-github.git] / src / database.h
1 /* $Id: database.h,v 1.7 2007-04-22 15:00:56 adam Exp $
2    Copyright (c) 2006-2007, Index Data.
3
4 This file is part of Pazpar2.
5
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
9 version.
10
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE.  If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA.
20  */
21
22 #ifndef DATABASE_H
23 #define DATABASE_H
24
25 void prepare_databases(void);
26 struct database *find_database(const char *id, int new);
27 int database_match_criteria(struct session_database *db, struct database_criterion *cl);
28 int session_grep_databases(struct session *se, struct database_criterion *cl,
29         void (*fun)(void *context, struct session_database *db));
30 int grep_databases(void *context, struct database_criterion *cl,
31         void (*fun)(void *context, struct database *db));
32 int match_zurl(const char *zurl, const char *pattern);
33
34 #endif