main.h 703 B

1234567891011121314151617181920212223242526272829
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file main.h
  8. * \brief Header file for main.c.
  9. **/
  10. #ifndef TOR_MAIN_H
  11. #define TOR_MAIN_H
  12. void handle_signals(void);
  13. void activate_signal(int signal_num);
  14. int try_locking(const or_options_t *options, int err_if_locked);
  15. int have_lockfile(void);
  16. void release_lockfile(void);
  17. void tor_remove_file(const char *filename);
  18. void tor_cleanup(void);
  19. void tor_free_all(int postfork);
  20. int tor_init(int argc, char **argv);
  21. #endif /* !defined(TOR_MAIN_H) */