Tor  0.4.6.0-alpha-dev
dirclient_modes.h
Go to the documentation of this file.
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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file dirclient_modes.h
9  * @brief Header for feature/dirclient/dirclient_modes.c
10  **/
11 
12 #ifndef TOR_FEATURE_DIRCLIENT_DIRCLIENT_MODES_H
13 #define TOR_FEATURE_DIRCLIENT_DIRCLIENT_MODES_H
14 
15 struct or_options_t;
16 
17 int dirclient_must_use_begindir(const or_options_t *options);
18 int dirclient_fetches_from_authorities(const struct or_options_t *options);
19 int dirclient_fetches_dir_info_early(const struct or_options_t *options);
20 int dirclient_fetches_dir_info_later(const struct or_options_t *options);
22  time_t now);
23 
24 #endif /* !defined(TOR_FEATURE_DIRCLIENT_DIRCLIENT_MODES_H) */
dirclient_fetches_dir_info_later
int dirclient_fetches_dir_info_later(const or_options_t *options)
Definition: dirclient_modes.c:84
dirclient_fetches_dir_info_early
int dirclient_fetches_dir_info_early(const or_options_t *options)
Definition: dirclient_modes.c:72
dirclient_too_idle_to_fetch_descriptors
int dirclient_too_idle_to_fetch_descriptors(const or_options_t *options, time_t now)
Definition: dirclient_modes.c:94
dirclient_fetches_from_authorities
int dirclient_fetches_from_authorities(const or_options_t *options)
Definition: dirclient_modes.c:40
or_options_t
Definition: or_options_st.h:64