tor  0.4.2.0-alpha-dev
dirauth_periodic.h
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 
7 #ifndef DIRVOTE_PERIODIC_H
8 #define DIRVOTE_PERIODIC_H
9 
10 #ifdef HAVE_MODULE_DIRAUTH
11 
12 void dirauth_register_periodic_events(void);
13 void reschedule_dirvote(const or_options_t *options);
14 
15 #else /* !(defined(HAVE_MODULE_DIRAUTH)) */
16 
17 static inline void
18 reschedule_dirvote(const or_options_t *options)
19 {
20  (void)options;
21 }
22 
23 #endif /* defined(HAVE_MODULE_DIRAUTH) */
24 
25 #endif /* !defined(DIRVOTE_PERIODIC_H) */