adding settings field 'pz.queryencoding'
[pazpar2-moved-to-github.git] / src / settings.h
1 /* $Id: settings.h,v 1.14 2007-04-12 11:35:08 marc 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 SETTINGS_H
23 #define SETTINGS_H
24
25 #define PZ_PIGGYBACK      0
26 #define PZ_ELEMENTS       1
27 #define PZ_REQUESTSYNTAX  2
28 #define PZ_CCLMAP         3
29 #define PZ_ENCODING       4
30 #define PZ_XSLT           5
31 #define PZ_NATIVESYNTAX   6
32 #define PZ_AUTHENTICATION 7
33 #define PZ_ALLOW          8
34 #define PZ_MAXRECS        9
35 #define PZ_ID            10
36 #define PZ_NAME          11
37 #define PZ_QUERYENCODING 12
38
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
53 #endif
54
55 /*
56  * Local variables:
57  * c-basic-offset: 4
58  * indent-tabs-mode: nil
59  * End:
60  * vim: shiftwidth=4 tabstop=8 expandtab
61  */