mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 21:53:48 +01:00
63b4ea22af
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
29 lines
666 B
C
29 lines
666 B
C
/* Copyright (c) 2001 Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2018, 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
|
|
#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
|
|
#endif /* defined(NT_SERVICE) */
|
|
|
|
#endif /* !defined(TOR_NTMAIN_H) */
|
|
|