New pazpar2 option -X which puts pazpar2 in debug (insecure) mode.
[pazpar2-moved-to-github.git] / src / parameters.h
1 /* $Id: parameters.h,v 1.2 2007-05-23 21:58:28 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 PARAMETERS_H
23 #define PARAMETERS_H
24
25 #include <yaz/odr.h>
26
27 /** \brief global parameters */
28 struct parameters {
29     char proxy_override[128];
30     char listener_override[128];
31     char zproxy_override[128];
32     char settings_path_override[128];
33     struct conf_server *server;
34     int dump_records;
35     int debug_mode;
36     int timeout;                /* operations timeout, in seconds */
37     char implementationId[128];
38     char implementationName[128];
39     char implementationVersion[128];
40     int target_timeout; // seconds
41     int session_timeout;
42     int toget;
43     int chunk;
44     ODR odr_out;
45     ODR odr_in;
46 };
47 extern struct parameters global_parameters;
48
49 #endif
50
51 /*
52  * Local variables:
53  * c-basic-offset: 4
54  * indent-tabs-mode: nil
55  * End:
56  * vim: shiftwidth=4 tabstop=8 expandtab
57  */