diff options
author | David Goulet <dgoulet@torproject.org> | 2018-04-25 14:21:19 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-04-25 14:21:19 -0400 |
commit | 868e348570911c52534132bc245a8fea07b42934 (patch) | |
tree | c0300da21ad4076320dfb6657ac6ac66844afab3 /src/or/periodic.h | |
parent | b6f7e23bbde7ae8c50360665a7ff2f0839e9219e (diff) | |
download | tor-868e348570911c52534132bc245a8fea07b42934.tar.gz tor-868e348570911c52534132bc245a8fea07b42934.zip |
callbacks: Add a DirServer role
The clean_consdiffmgr() callback is only for relays acting as a directory
server, not all relays.
This commit adds a role for only directory server and sets the
clean_consdiffmgr() callback to use it.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/periodic.h')
-rw-r--r-- | src/or/periodic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/periodic.h b/src/or/periodic.h index dde27db5af..cc0ab86bd8 100644 --- a/src/or/periodic.h +++ b/src/or/periodic.h @@ -14,6 +14,7 @@ #define PERIODIC_EVENT_ROLE_DIRAUTH (1U << 3) #define PERIODIC_EVENT_ROLE_BRIDGEAUTH (1U << 4) #define PERIODIC_EVENT_ROLE_HS_SERVICE (1U << 5) +#define PERIODIC_EVENT_ROLE_DIRSERVER (1U << 6) /* Helper macro to make it a bit less annoying to defined groups of roles that * are often used. */ |