dirauth_periodic.h 643 B

12345678910111213141516171819202122232425
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef DIRVOTE_PERIODIC_H
  7. #define DIRVOTE_PERIODIC_H
  8. #ifdef HAVE_MODULE_DIRAUTH
  9. void dirauth_register_periodic_events(void);
  10. void reschedule_dirvote(const or_options_t *options);
  11. #else /* !defined(HAVE_MODULE_DIRAUTH) */
  12. static inline void
  13. reschedule_dirvote(const or_options_t *options)
  14. {
  15. (void)options;
  16. }
  17. #endif /* defined(HAVE_MODULE_DIRAUTH) */
  18. #endif /* !defined(DIRVOTE_PERIODIC_H) */