ntmain.h 611 B

12345678910111213141516171819202122232425262728
  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-2015, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file ntmain.h
  8. * \brief Header file for ntmain.c.
  9. **/
  10. #ifndef TOR_NTMAIN_H
  11. #define TOR_NTMAIN_H
  12. #ifdef _WIN32
  13. #define NT_SERVICE
  14. #endif
  15. #ifdef NT_SERVICE
  16. int nt_service_parse_options(int argc, char **argv, int *should_exit);
  17. int nt_service_is_stopping(void);
  18. void nt_service_set_state(DWORD state);
  19. #else
  20. #define nt_service_is_stopping() 0
  21. #endif
  22. #endif