Rename dirvote_common.{c|h} to voting_schedule.{c|h}

No code behavior change.

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2018-05-01 11:10:58 -04:00
parent 6452fe78c2
commit 711ff6cdf7
10 changed files with 18 additions and 18 deletions

View File

@ -10,7 +10,6 @@
#include "directory.h"
#include "dirserv.h"
#include "dirvote.h"
#include "dirvote_common.h"
#include "microdesc.h"
#include "networkstatus.h"
#include "nodelist.h"
@ -25,6 +24,7 @@
#include "entrynodes.h" /* needed for guardfraction methods */
#include "torcert.h"
#include "shared_random_state.h"
#include "voting_schedule.h"
/**
* \file dirvote.c

View File

@ -91,7 +91,6 @@
#include "shared_random.h"
#include "config.h"
#include "confparse.h"
#include "dirvote_common.h"
#include "networkstatus.h"
#include "routerkeys.h"
#include "router.h"
@ -99,6 +98,7 @@
#include "shared_random_state.h"
#include "shared_random_common.h"
#include "util.h"
#include "voting_schedule.h"
#include "dirauth/dirvote.h"

View File

@ -14,7 +14,7 @@
#include "shared_random.h"
#include "config.h"
#include "confparse.h"
#include "dirvote_common.h"
#include "voting_schedule.h"
#include "networkstatus.h"
#include "router.h"
#include "shared_random_state.h"

View File

@ -18,7 +18,6 @@
#include "control.h"
#include "directory.h"
#include "dirserv.h"
#include "dirvote_common.h"
#include "hibernate.h"
#include "keypin.h"
#include "main.h"
@ -33,6 +32,7 @@
#include "routerparse.h"
#include "routerset.h"
#include "torcert.h"
#include "voting_schedule.h"
#include "dirauth/dirvote.h"

View File

@ -43,7 +43,6 @@ LIBTOR_A_SOURCES = \
src/or/cpuworker.c \
src/or/directory.c \
src/or/dirserv.c \
src/or/dirvote_common.c \
src/or/dns.c \
src/or/dnsserv.c \
src/or/dos.c \
@ -109,6 +108,7 @@ LIBTOR_A_SOURCES = \
src/or/status.c \
src/or/torcert.c \
src/or/tor_api.c \
src/or/voting_schedule.c \
src/or/onion_ntor.c \
$(tor_platform_source)
@ -202,7 +202,6 @@ ORHEADERS = \
src/or/cpuworker.h \
src/or/directory.h \
src/or/dirserv.h \
src/or/dirvote_common.h \
src/or/dns.h \
src/or/dns_structs.h \
src/or/dnsserv.h \
@ -270,7 +269,8 @@ ORHEADERS = \
src/or/statefile.h \
src/or/status.h \
src/or/torcert.h \
src/or/tor_api_internal.h
src/or/tor_api_internal.h \
src/or/voting_schedule.h
# We add the headers of the modules even though they are disabled so we can
# properly compiled the entry points stub.

View File

@ -75,7 +75,7 @@
#include "torcert.h"
#include "sandbox.h"
#include "shared_random_common.h"
#include "dirvote_common.h"
#include "voting_schedule.h"
#include "dirauth/shared_random.h"
#undef log

View File

@ -12,7 +12,7 @@
#include "shared_random_common.h"
#include "config.h"
#include "dirvote_common.h"
#include "voting_schedule.h"
#include "networkstatus.h"
#include "util.h"
#include "util_format.h"

View File

@ -2,14 +2,14 @@
/* See LICENSE for licensing information */
/**
* \file dirvote_common.c
* \file voting_schedule.c
* \brief This file contains functions that are from the directory authority
* subsystem related to voting specifically but used by many part of
* tor. The full feature is built as part of the dirauth module.
**/
#define DIRVOTE_COMMON_PRIVATE
#include "dirvote_common.h"
#define VOTING_SCHEDULE_PRIVATE
#include "voting_schedule.h"
#include "or.h"
#include "config.h"

View File

@ -2,12 +2,12 @@
/* See LICENSE for licensing information */
/**
* \file dirvote_common.h
* \brief Header file for dirvote_common.c.
* \file voting_schedule.h
* \brief Header file for voting_schedule.c.
**/
#ifndef TOR_DIRVOTE_COMMON_H
#define TOR_DIRVOTE_COMMON_H
#ifndef TOR_VOTING_SCHEDULE_H
#define TOR_VOTING_SCHEDULE_H
#include "or.h"
@ -57,5 +57,5 @@ time_t dirvote_get_start_of_next_interval(time_t now,
int offset);
time_t dirvote_get_next_valid_after_time(void);
#endif /* TOR_DIRVOTE_COMMON_H */
#endif /* TOR_VOTING_SCHEDULE_H */

View File

@ -10,10 +10,10 @@
#include "container.h"
#include "or.h"
#include "dirauth/dirvote.h"
#include "dirvote_common.h"
#include "nodelist.h"
#include "routerlist.h"
#include "test_dir_common.h"
#include "voting_schedule.h"
void dir_common_setup_vote(networkstatus_t **vote, time_t now);
networkstatus_t * dir_common_add_rs_and_parse(networkstatus_t *vote,