Report only the top 10 ports in exit-port stats.
[tor/rransom.git] / src / or / ntmain.h
blob2cfa653c3df2d0292106d4c53fb118f51f7c68c2
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-2010, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * \file ntmain.h
9 * \brief Header file for ntmain.c.
10 **/
12 #ifndef _TOR_NTMAIN_H
13 #define _TOR_NTMAIN_H
15 #ifdef MS_WINDOWS
16 #if !defined (WINCE)
17 #define NT_SERVICE
18 #endif
19 #endif
21 #ifdef NT_SERVICE
22 int nt_service_parse_options(int argc, char **argv, int *should_exit);
23 int nt_service_is_stopping(void);
24 void nt_service_set_state(DWORD state);
25 #else
26 #define nt_service_is_stopping() 0
27 #endif
29 #endif