]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_win32wrapper.h
Tidyups, remove of ifdefs
[user/henk/code/inspircd.git] / win / inspircd_win32wrapper.h
index 2daa4ced70c21e03e06e03ff1017d77ceb4542da..0fd43fab8a7f3cfaaebbbd925aa148848dd23995 100644 (file)
 
 /* Make builds smaller, leaner and faster */
 #define VC_EXTRALEAN
+#define WIN32_LEAN_AND_MEAN
+
+/* Not defined in windows */
+#define SIGHUP 1
 
 /* They just have to be *different*, don't they. */
 #define PATH_MAX MAX_PATH
@@ -100,7 +104,7 @@ CoreExport int inet_aton(const char *, struct in_addr *);
 /* Unix-style get running user id */
 CoreExport int geteuid();
 
-/* Handles colors in printf */\r
+/* Handles colors in printf */
 CoreExport int printf_c(const char * format, ...);
 
 /* getopt() wrapper */
@@ -174,10 +178,19 @@ void ::operator delete(void * ptr);
 
 /* IPC Handlers */
 class InspIRCd;
+class ValueItem;
+class ServerConfig;
 
-void InitIPC();
-void CheckIPC(InspIRCd * Instance);
-void CloseIPC();
+class IPC
+{
+ private:
+       InspIRCd* Instance;
+       HANDLE hIPCPipe;
+ public:
+       IPC(InspIRCd* Srv);
+       void Check();
+       ~IPC();
+};
 
 /* Look up the nameserver in use from the registry on windows */
 std::string FindNameServerWin();
@@ -185,5 +198,11 @@ std::string FindNameServerWin();
 /* Clear a windows console */
 void ClearConsole();
 
+DWORD WindowsForkStart(InspIRCd* Instance);
+
+void WindowsForkKillOwner(InspIRCd* Instance);
+
+bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data);
+
 #endif