tor  master
ntmain.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-2017, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_NTMAIN_H
13 #define TOR_NTMAIN_H
14 
15 #ifdef _WIN32
16 #define NT_SERVICE
17 #endif
18 
19 #ifdef NT_SERVICE
20 int nt_service_parse_options(int argc, char **argv, int *should_exit);
21 int nt_service_is_stopping(void);
22 void nt_service_set_state(DWORD state);
23 #else
24 #define nt_service_is_stopping() 0
25 #endif /* defined(NT_SERVICE) */
26 
27 #endif /* !defined(TOR_NTMAIN_H) */
28