routermode.h 714 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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file routermode.h
  8. * \brief Header file for routermode.c.
  9. **/
  10. #ifndef TOR_ROUTERMODE_H
  11. #define TOR_ROUTERMODE_H
  12. int dir_server_mode(const or_options_t *options);
  13. MOCK_DECL(int, server_mode, (const or_options_t *options));
  14. MOCK_DECL(int, public_server_mode, (const or_options_t *options));
  15. MOCK_DECL(int, advertised_server_mode, (void));
  16. int proxy_mode(const or_options_t *options);
  17. void set_server_advertised(int s);
  18. #endif /* !defined(TOR_ROUTERMODE_H) */