aboutsummaryrefslogtreecommitdiff
path: root/src/or/ntmain.h
blob: 07fdcf466b1c99c259d22c502f042d53e098265b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2012, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file ntmain.h
 * \brief Header file for ntmain.c.
 **/

#ifndef _TOR_NTMAIN_H
#define _TOR_NTMAIN_H

#ifdef _WIN32
#if !defined (WINCE)
#define NT_SERVICE
#endif
#endif

#ifdef NT_SERVICE
int nt_service_parse_options(int argc, char **argv, int *should_exit);
int nt_service_is_stopping(void);
void nt_service_set_state(DWORD state);
#else
#define nt_service_is_stopping() 0
#endif

#endif