aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirauth_periodic.h
blob: 1124fae952e65ce6a42cf9729aff92b8790b4a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_register_periodic_events(void);
void reschedule_dirvote(const or_options_t *options);

#else /* !(defined(HAVE_MODULE_DIRAUTH)) */

static inline void
reschedule_dirvote(const or_options_t *options)
{
  (void)options;
}

#endif /* defined(HAVE_MODULE_DIRAUTH) */

#endif /* !defined(DIRVOTE_PERIODIC_H) */