Enabled basic SRU support -- no CQL yet
[pazpar2-moved-to-github.git] / src / settings.h
1 /* This file is part of Pazpar2.
2    Copyright (C) 2006-2008 Index Data
3
4 Pazpar2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18 */
19
20 #ifndef SETTINGS_H
21 #define SETTINGS_H
22
23 #define PZ_PIGGYBACK      0
24 #define PZ_ELEMENTS       1
25 #define PZ_REQUESTSYNTAX  2
26 #define PZ_CCLMAP         3
27 #define PZ_XSLT           4
28 #define PZ_NATIVESYNTAX   5
29 #define PZ_AUTHENTICATION 6
30 #define PZ_ALLOW          7
31 #define PZ_MAXRECS        8
32 #define PZ_ID             9
33 #define PZ_NAME          10
34 #define PZ_QUERYENCODING 11
35 #define PZ_IP            12
36 #define PZ_ZPROXY        13
37 #define PZ_APDULOG       14
38 #define PZ_SRU           15
39
40 struct setting
41 {
42     int precedence;
43     char *target;
44     char *name;
45     char *value;
46     struct setting *next;
47 };
48
49 int settings_num(void);
50 void settings_read(const char *path);
51 int settings_offset(const char *name);
52 int settings_offset_cprefix(const char *name);
53 void init_settings(void);
54
55 #endif
56
57 /*
58  * Local variables:
59  * c-basic-offset: 4
60  * indent-tabs-mode: nil
61  * End:
62  * vim: shiftwidth=4 tabstop=8 expandtab
63  */