guardfraction.h 737 B

123456789101112131415161718192021222324
  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. * \file guardfraction.h
  8. * \brief Header file for guardfraction.c
  9. **/
  10. #ifndef TOR_GUARDFRACTION_H
  11. #define TOR_GUARDFRACTION_H
  12. #ifdef GUARDFRACTION_PRIVATE
  13. STATIC int
  14. dirserv_read_guardfraction_file_from_str(const char *guardfraction_file_str,
  15. smartlist_t *vote_routerstatuses);
  16. #endif /* defined(DIRSERV_PRIVATE) */
  17. int dirserv_read_guardfraction_file(const char *fname,
  18. smartlist_t *vote_routerstatuses);
  19. #endif