Added the most basic level of support for authentication. The setting
[pazpar2-moved-to-github.git] / src / settings.h
1 #ifndef SETTINGS_H
2 #define SETTINGS_H
3
4 #define PZ_PIGGYBACK      0
5 #define PZ_ELEMENTS       1
6 #define PZ_SYNTAX         2
7 #define PZ_CCLMAP         3
8 #define PZ_ENCODING       4
9 #define PZ_XSLT           5
10 #define PZ_NATIVESYNTAX   6
11 #define PZ_AUTHENTICATION 7
12
13 struct setting
14 {
15     int precedence;
16     char *target;
17     char *name;
18     char *value;
19     char *user;
20     struct setting *next;
21 };
22
23 void settings_read(const char *path);
24 int settings_offset(const char *name);
25
26 #endif
27
28 /*
29  * Local variables:
30  * c-basic-offset: 4
31  * indent-tabs-mode: nil
32  * End:
33  * vim: shiftwidth=4 tabstop=8 expandtab
34  */