aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-08-25 12:49:16 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-13 12:36:39 -0400
commit34ec954f8ef8201fd16942acca55ac19db8ff7b7 (patch)
treee55303f6c61dfaa3c918e0b9cfe57181eb8c839c /src/or/config.h
parentd98dfb3746790448b0dcff2aa9a00e5e2602688a (diff)
downloadtor-34ec954f8ef8201fd16942acca55ac19db8ff7b7.tar
tor-34ec954f8ef8201fd16942acca55ac19db8ff7b7.tar.gz
Expose commandline parser so that we can use it for --quiet,etc.
Fix for bug 9578.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index eb16e7461..0ed5a5b5f 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -96,6 +96,10 @@ int init_cookie_authentication(const char *fname, const char *header,
or_options_t *options_new(void);
+int config_parse_commandline(int argc, char **argv, int ignore_errors,
+ config_line_t **result,
+ config_line_t **cmdline_result);
+
void config_register_addressmaps(const or_options_t *options);
/* XXXX024 move to connection_edge.h */
int addressmap_register_auto(const char *from, const char *to,