]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Create ntmain.h
authorSebastian Hahn <sebastian@torproject.org>
Fri, 23 Jul 2010 18:21:24 +0000 (20:21 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 27 Jul 2010 08:00:39 +0000 (10:00 +0200)
src/or/main.c
src/or/ntmain.c
src/or/ntmain.h [new file with mode: 0644]
src/or/or.h

index 18525f03841902cdd0c2bfb2f2319c2fa49f00d8..67688bd6df09a1b45a5765222d3ace7a4fea9664 100644 (file)
@@ -33,6 +33,7 @@
 #include "main.h"
 #include "microdesc.h"
 #include "networkstatus.h"
+#include "ntmain.h"
 #include "rendclient.h"
 #include "rendcommon.h"
 #include "rendservice.h"
index 6f349cca6a4f7d7b7ffcd6aef04cd16773810797..9bcb7047ebd682151c64f545c8cd0abf8965fb57 100644 (file)
@@ -5,6 +5,8 @@
 
 #define MAIN_PRIVATE
 #include "or.h"
+#include "config.h"
+#include "main.h"
 
 #ifdef HAVE_EVENT2_EVENT_H
 #include <event2/event.h>
diff --git a/src/or/ntmain.h b/src/or/ntmain.h
new file mode 100644 (file)
index 0000000..2cfa653
--- /dev/null
@@ -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
+
index 4f1eab526b214c407e3a4e7ba05281560e53280a..2afbac6f3861bc2ad7304092ef2d6b9074e3cae0 100644 (file)
@@ -3293,21 +3293,6 @@ typedef enum version_status_t {
   VS_UNKNOWN, /**< We have no idea. */
 } version_status_t;
 
-/********************************* ntmain.c ***************************/
-#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
-
 /********************************* onion.c ***************************/
 
 int onion_pending_add(or_circuit_t *circ, char *onionskin);