aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/routermode.h
blob: be535af478fc0b28b02057d76f00777d6c5444b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file routermode.h
 * \brief Header file for routermode.c.
 **/

#ifndef TOR_ROUTERMODE_H
#define TOR_ROUTERMODE_H

int dir_server_mode(const or_options_t *options);

MOCK_DECL(int, server_mode, (const or_options_t *options));
MOCK_DECL(int, public_server_mode, (const or_options_t *options));
MOCK_DECL(int, advertised_server_mode, (void));
int proxy_mode(const or_options_t *options);

void set_server_advertised(int s);

#endif /* !defined(TOR_ROUTERMODE_H) */