aboutsummaryrefslogtreecommitdiff
path: root/src/or/ntmain.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-07-23 20:21:24 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-07-27 10:00:39 +0200
commitaf0c954bc5201e49b406332bea26ca4a71b32a94 (patch)
tree5826df1e73737d365e2a873e25de6ab88c908540 /src/or/ntmain.h
parent69fcbbaa8932f83ca715d0cf40c69340c90001a1 (diff)
downloadtor-af0c954bc5201e49b406332bea26ca4a71b32a94.tar
tor-af0c954bc5201e49b406332bea26ca4a71b32a94.tar.gz
Create ntmain.h
Diffstat (limited to 'src/or/ntmain.h')
-rw-r--r--src/or/ntmain.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/or/ntmain.h b/src/or/ntmain.h
new file mode 100644
index 000000000..2cfa653c3
--- /dev/null
+++ b/src/or/ntmain.h
@@ -0,0 +1,30 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, 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 MS_WINDOWS
+#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
+