tor  0.4.2.0-alpha-dev
guardfraction.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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_GUARDFRACTION_H
13 #define TOR_GUARDFRACTION_H
14 
15 #ifdef GUARDFRACTION_PRIVATE
16 STATIC int
17 dirserv_read_guardfraction_file_from_str(const char *guardfraction_file_str,
18  smartlist_t *vote_routerstatuses);
19 #endif /* defined(DIRSERV_PRIVATE) */
20 
21 int dirserv_read_guardfraction_file(const char *fname,
22  smartlist_t *vote_routerstatuses);
23 
24 #endif /* !defined(TOR_GUARDFRACTION_H) */
int dirserv_read_guardfraction_file(const char *fname, smartlist_t *vote_routerstatuses)