Tor
0.4.7.0-alpha-dev
app
main
main.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-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file main.h
9
* \brief Header file for main.c.
10
**/
11
12
#ifndef TOR_MAIN_H
13
#define TOR_MAIN_H
14
15
void
handle_signals
(
void
);
16
void
activate_signal(
int
signal_num);
17
18
int
try_locking
(
const
or_options_t
*options,
int
err_if_locked);
19
int
have_lockfile
(
void
);
20
void
release_lockfile
(
void
);
21
22
void
tor_remove_file
(
const
char
*filename);
23
24
int
tor_init
(
int
argc,
char
**argv);
25
26
int
run_tor_main_loop(
void
);
27
28
void
pubsub_install
(
void
);
29
void
pubsub_connect
(
void
);
30
31
#endif
/* !defined(TOR_MAIN_H) */
tor_init
int tor_init(int argc, char *argv[])
Definition:
main.c:537
release_lockfile
void release_lockfile(void)
Definition:
main.c:710
try_locking
int try_locking(const or_options_t *options, int err_if_locked)
Definition:
main.c:667
have_lockfile
int have_lockfile(void)
Definition:
main.c:703
tor_remove_file
void tor_remove_file(const char *filename)
Definition:
main.c:723
handle_signals
void handle_signals(void)
Definition:
main.c:483
pubsub_install
void pubsub_install(void)
Definition:
main.c:1281
pubsub_connect
void pubsub_connect(void)
Definition:
main.c:1293
or_options_t
Definition:
or_options_st.h:64
Generated by
1.9.1