diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-27 22:25:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-27 22:25:52 -0500 |
commit | 230422b955e1708f27f42cdd25e8b21a33fdd3dd (patch) | |
tree | 84031114094c820debd2681aea3b4e5c6f786273 /src/or/config.h | |
parent | 73436a1d6fdbe411a0ee869ee570f4a1239cfa81 (diff) | |
download | tor-230422b955e1708f27f42cdd25e8b21a33fdd3dd.tar.gz tor-230422b955e1708f27f42cdd25e8b21a33fdd3dd.zip |
Support for a defaults torrc file.
This will mainly help distributors by giving a way to set system or package
defaults that a user can override, and that a later package can replace.
No promises about the particular future location or semantics for this:
we will probably want to tweak it some before 0.2.3.x-rc
The file is searched for in CONFDIR/torrc-defaults , which can be
overridden with the "--defaults-torrc" option on the command line.
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.h b/src/or/config.h index 73095de11e..e1fc5cfe9a 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -33,14 +33,14 @@ int is_local_addr(const tor_addr_t *addr); void options_init(or_options_t *options); char *options_dump(const or_options_t *options, int minimal); int options_init_from_torrc(int argc, char **argv); -setopt_err_t options_init_from_string(const char *cf, +setopt_err_t options_init_from_string(const char *cf_defaults, const char *cf, int command, const char *command_arg, char **msg); int option_is_recognized(const char *key); const char *option_get_canonical_name(const char *key); config_line_t *option_get_assignment(const or_options_t *options, const char *key); int options_save_current(void); -const char *get_torrc_fname(void); +const char *get_torrc_fname(int defaults_fname); char *options_get_datadir_fname2_suffix(const or_options_t *options, const char *sub1, const char *sub2, const char *suffix); |