Tor
0.4.7.0-alpha-dev
app
main
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-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file ntmain.h
9
* \brief Header file for ntmain.c.
10
**/
11
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
#define nt_service_parse_options(a, b, c) (0)
26
#define nt_service_set_state(s) STMT_NIL
27
#endif
/* defined(NT_SERVICE) */
28
29
#endif
/* !defined(TOR_NTMAIN_H) */
Generated by
1.9.1