diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-25 15:09:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-30 11:14:59 -0400 |
commit | b5a62b1ef5cfbe3e56caa110d9024f7fa0ac6ae6 (patch) | |
tree | bc69e96ace26b3170ff459df7834094c668f086e /src/feature/dirauth/dirauth_periodic.h | |
parent | 6eb1b8da0ab2a58157c4eb7db0a8471cb9dfefda (diff) | |
download | tor-b5a62b1ef5cfbe3e56caa110d9024f7fa0ac6ae6.tar.gz tor-b5a62b1ef5cfbe3e56caa110d9024f7fa0ac6ae6.zip |
Move dirauth periodic events into dirauth module.
Closes ticket 30294.
Diffstat (limited to 'src/feature/dirauth/dirauth_periodic.h')
-rw-r--r-- | src/feature/dirauth/dirauth_periodic.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_periodic.h b/src/feature/dirauth/dirauth_periodic.h new file mode 100644 index 0000000000..680c0c4bed --- /dev/null +++ b/src/feature/dirauth/dirauth_periodic.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2019, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef DIRVOTE_PERIODIC_H +#define DIRVOTE_PERIODIC_H + +#ifdef HAVE_MODULE_DIRAUTH + +void dirauth_add_periodic_events(void); +void reschedule_dirvote(const or_options_t *options); + +#else + +static inline void +reschedule_dirvote(const or_options_t *options) +{ + (void)options; +} + +#endif + +#endif |