diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-17 16:55:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-17 16:55:44 +0000 |
commit | f988f93b1a54ccbfabbf464514c526033f48e15c (patch) | |
tree | d8b7ecfa712171ad29e960c410d3fbd1017c193a /src/or/or.h | |
parent | 4088a90d5580612bd3a347be3ddddf3891b60469 (diff) | |
download | tor-f988f93b1a54ccbfabbf464514c526033f48e15c.tar.gz tor-f988f93b1a54ccbfabbf464514c526033f48e15c.zip |
r15877@catbus: nickm | 2007-10-17 12:54:56 -0400
Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff".
svn:r12000
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index dbd9b6e876..003f597ce1 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2443,6 +2443,14 @@ config_line_t *option_get_assignment(or_options_t *options, const char *key); int options_save_current(void); const char *get_torrc_fname(void); +char *get_datadir_fname2_suffix(const char *sub1, const char *sub2, + const char *suffix); +/**DOCDOC*/ +#define get_datadir_fname(sub1) get_datadir_fname2_suffix((sub1), NULL, NULL) +#define get_datadir_fname2(sub1,sub2) \ + get_datadir_fname2_suffix((sub1), (sub2), NULL) +#define get_datadir_fname_suffix(sub1, suffix) \ + get_datadir_fname2_suffix((sub1), NULL, (suffix)) or_state_t *get_or_state(void); int or_state_save(time_t now); |