tor  0.4.0.1-alpha
routermode.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_ROUTERMODE_H
13 #define TOR_ROUTERMODE_H
14 
15 int dir_server_mode(const or_options_t *options);
16 
17 MOCK_DECL(int, server_mode, (const or_options_t *options));
18 MOCK_DECL(int, public_server_mode, (const or_options_t *options));
19 MOCK_DECL(int, advertised_server_mode, (void));
20 int proxy_mode(const or_options_t *options);
21 
22 void set_server_advertised(int s);
23 
24 #endif /* !defined(TOR_ROUTERMODE_H) */
int dir_server_mode(const or_options_t *options)
Definition: routermode.c:20
void set_server_advertised(int s)
Definition: routermode.c:77
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:94
int proxy_mode(const or_options_t *options)
Definition: routermode.c:30