diff options
Diffstat (limited to 'src/app/main/main.h')
-rw-r--r-- | src/app/main/main.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/app/main/main.h b/src/app/main/main.h new file mode 100644 index 0000000000..23a436703e --- /dev/null +++ b/src/app/main/main.h @@ -0,0 +1,31 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file main.h + * \brief Header file for main.c. + **/ + +#ifndef TOR_MAIN_H +#define TOR_MAIN_H + +void handle_signals(void); +void activate_signal(int signal_num); + +int try_locking(const or_options_t *options, int err_if_locked); +int have_lockfile(void); +void release_lockfile(void); + +void tor_remove_file(const char *filename); + +void tor_cleanup(void); +void tor_free_all(int postfork); + +int tor_init(int argc, char **argv); + +int run_tor_main_loop(void); + +#endif /* !defined(TOR_MAIN_H) */ |