2019-04-25 15:09:24 -04:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2020-01-08 18:39:17 -05:00
|
|
|
* Copyright (c) 2007-2020, The Tor Project, Inc. */
|
2019-04-25 15:09:24 -04:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2019-10-26 12:05:28 -04:00
|
|
|
/**
|
|
|
|
* @file dirauth_periodic.h
|
|
|
|
* @brief Header for dirauth_periodic.c
|
|
|
|
**/
|
|
|
|
|
2019-04-25 15:09:24 -04:00
|
|
|
#ifndef DIRVOTE_PERIODIC_H
|
|
|
|
#define DIRVOTE_PERIODIC_H
|
|
|
|
|
|
|
|
#ifdef HAVE_MODULE_DIRAUTH
|
|
|
|
|
2019-04-26 13:17:35 -04:00
|
|
|
void dirauth_register_periodic_events(void);
|
2019-04-25 15:09:24 -04:00
|
|
|
void reschedule_dirvote(const or_options_t *options);
|
|
|
|
|
2019-09-30 08:57:37 -04:00
|
|
|
#else /* !defined(HAVE_MODULE_DIRAUTH) */
|
2019-04-25 15:09:24 -04:00
|
|
|
|
|
|
|
static inline void
|
|
|
|
reschedule_dirvote(const or_options_t *options)
|
|
|
|
{
|
|
|
|
(void)options;
|
|
|
|
}
|
|
|
|
|
2019-06-05 09:33:35 -04:00
|
|
|
#endif /* defined(HAVE_MODULE_DIRAUTH) */
|
2019-04-25 15:09:24 -04:00
|
|
|
|
2019-06-05 09:33:35 -04:00
|
|
|
#endif /* !defined(DIRVOTE_PERIODIC_H) */
|