12 #ifndef TOR_ROUTERMODE_H
13 #define TOR_ROUTERMODE_H
15 #ifdef HAVE_MODULE_RELAY
26 #define have_module_relay() (1)
30 #define dir_server_mode(options) (((void)(options)),0)
31 #define server_mode(options) (((void)(options)),0)
32 #define public_server_mode(options) (((void)(options)),0)
33 #define advertised_server_mode() (0)
36 #define set_server_advertised(s) tor_assert_nonfatal(!(s))
38 #define have_module_relay() (0)
int public_server_mode(const or_options_t *options)
int advertised_server_mode(void)
int dir_server_mode(const or_options_t *options)
int server_mode(const or_options_t *options)
void set_server_advertised(int s)
#define MOCK_DECL(rv, funcname, arglist)