1 /*
2    cadaver, command-line DAV client
3    Copyright (C) 1999-2001, Joe Orton <joe@orton.demon.co.uk>
4 
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9 
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 
20 #ifndef OPTIONS_H
21 #define OPTIONS_H
22 
23 #include <ne_locks.h>
24 
25 enum option_id {
26     opt_tolerant,
27     opt_expect100,
28     opt_editor,
29     opt_clicert,
30     opt_namespace,
31     opt_quiet,
32     opt_proxy,
33     opt_proxy_port,
34     opt_debug,
35     opt_utf8,
36     opt_overwrite,
37     opt_lockowner,
38     opt_lockstore,
39     opt_lockdepth,
40     opt_lockscope,
41     opt_pager,
42 
43     opt_searchdepth,
44     opt_searchorder,
45     opt_searchdorder,
46     opt_searchall
47 };
48 
49 extern int lockdepth; /* current lock depth setting. */
50 extern int searchdepth; /* current search depth setting. */
51 extern enum ne_lock_scope lockscope; /* current lock scope setting. */
52 
53 void execute_set( const char *opt, const char * );
54 void execute_unset( const char *opt, const char * );
55 /* Describe option of given name */
56 void execute_describe(const char *name);
57 
58 void *get_option( enum option_id id );
59 void set_option( enum option_id id, void *newval );
60 
61 int get_bool_option(enum option_id id);
62 void set_bool_option(enum option_id id, int truth);
63 
64 #endif /* OPTIONS_H */
65