diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 4e464b0b69..fec77e7808 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -55,6 +55,7 @@ typedef struct config_abbrev_t { #define PLURAL(tok) { #tok, #tok "s", 0, 0 } /* A list of command-line abbreviations. */ +/* DOCDOC _option_abbrevs */ static config_abbrev_t _option_abbrevs[] = { PLURAL(ExitNode), PLURAL(EntryNode), @@ -92,6 +93,7 @@ static config_abbrev_t _option_abbrevs[] = { { NULL, NULL, 0, 0}, }; /* A list of state-file abbreviations, for compatibility. */ +/* DOCDOC _state_abbrevs */ static config_abbrev_t _state_abbrevs[] = { { "AccountingBytesReadInterval", "AccountingBytesReadInInterval", 0, 0 }, { "HelperNode", "EntryGuard", 0, 0 }, @@ -345,6 +347,7 @@ static config_var_t _option_vars[] = { }; /* Keep defaults synchronous with man page and config value check. */ +/* DOCDOC testing_tor_network_defaults */ static config_var_t testing_tor_network_defaults[] = { V(ServerDNSAllowBrokenConfig, BOOL, "1"), V(DirAllowPrivateAddresses, BOOL, "1"), @@ -369,6 +372,7 @@ static config_var_t testing_tor_network_defaults[] = { #define VAR(name,conftype,member,initvalue) \ { name, CONFIG_TYPE_ ## conftype, STRUCT_OFFSET(or_state_t, member), \ initvalue } +/* DOCDOC _state_vars */ static config_var_t _state_vars[] = { V(AccountingBytesReadInInterval, MEMUNIT, NULL), V(AccountingBytesWrittenInInterval, MEMUNIT, NULL), @@ -408,6 +412,7 @@ typedef struct config_var_description_t { const char *description; } config_var_description_t; +/* DOCDOC options_description */ static config_var_description_t options_description[] = { /* ==== general options */ { "AvoidDiskWrites", "If non-zero, try to write to disk less frequently than" @@ -579,6 +584,7 @@ static config_var_description_t options_description[] = { { NULL, NULL }, }; +/* DOCDOC state_description */ static config_var_description_t state_description[] = { { "AccountingBytesReadInInterval", "How many bytes have we read in this accounting period?" }, @@ -808,8 +814,10 @@ set_options(or_options_t *new_val, char **msg) return 0; } +/* DOCDOC tor_svn_revision */ extern const char tor_svn_revision[]; /* from tor_main.c */ +/* DOCDOC _version */ static char *_version = NULL; /** Return the current Tor version, possibly */ @@ -4609,6 +4617,7 @@ struct unit_table_t { uint64_t multiplier; }; +/* DOCDOC memory_units */ static struct unit_table_t memory_units[] = { { "", 1 }, { "b", 1<< 0 }, @@ -4636,6 +4645,7 @@ static struct unit_table_t memory_units[] = { { NULL, 0 }, }; +/* DOCDOC time_units */ static struct unit_table_t time_units[] = { { "", 1 }, { "second", 1 }, |