dirauth_periodic.h (721B)
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-2021, The Tor Project, Inc. */ 5 /* See LICENSE for licensing information */ 6 7 /** 8 * @file dirauth_periodic.h 9 * @brief Header for dirauth_periodic.c 10 **/ 11 12 #ifndef DIRVOTE_PERIODIC_H 13 #define DIRVOTE_PERIODIC_H 14 15 #ifdef HAVE_MODULE_DIRAUTH 16 17 void dirauth_register_periodic_events(void); 18 void reschedule_dirvote(const or_options_t *options); 19 20 #else /* !defined(HAVE_MODULE_DIRAUTH) */ 21 22 static inline void 23 reschedule_dirvote(const or_options_t *options) 24 { 25 (void)options; 26 } 27 28 #endif /* defined(HAVE_MODULE_DIRAUTH) */ 29 30 #endif /* !defined(DIRVOTE_PERIODIC_H) */