2010-07-23 20:21:24 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2017-03-15 21:13:17 +01:00
|
|
|
* Copyright (c) 2007-2017, The Tor Project, Inc. */
|
2010-07-23 20:21:24 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file ntmain.h
|
|
|
|
* \brief Header file for ntmain.c.
|
|
|
|
**/
|
|
|
|
|
2012-10-12 18:13:10 +02:00
|
|
|
#ifndef TOR_NTMAIN_H
|
|
|
|
#define TOR_NTMAIN_H
|
2010-07-23 20:21:24 +02:00
|
|
|
|
2012-01-31 16:59:42 +01:00
|
|
|
#ifdef _WIN32
|
2010-07-23 20:21:24 +02:00
|
|
|
#define NT_SERVICE
|
|
|
|
#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
|
2017-09-15 22:24:44 +02:00
|
|
|
#endif /* defined(NT_SERVICE) */
|
2010-07-23 20:21:24 +02:00
|
|
|
|
2017-09-15 22:24:44 +02:00
|
|
|
#endif /* !defined(TOR_NTMAIN_H) */
|
2010-07-23 20:21:24 +02:00
|
|
|
|