diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-27 19:50:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-27 19:50:42 +0000 |
commit | afcf8ad536781b07bdabc1c8f4bc4c2f4ba6c3de (patch) | |
tree | eca0ab45bb8dddbc449b9ea0a57fce1fb74db0a1 /win | |
parent | 5adcfa35c2c6df8c356841c11835f25e3422364c (diff) |
make sure that the pointers are set up correctly for win32
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7600 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r-- | win/inspircd_win32wrapper.cpp | 7 | ||||
-rw-r--r-- | win/inspircd_win32wrapper.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index cc56af69d..1646e39af 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -516,19 +516,16 @@ void ClearConsole() } /* Many inspircd classes contain function pointers/functors which can be changed to point at platform specific implementations - * of code. This function, called from WindowsForkStart, repoints these pointers and functors so that calls are windows - * specific. + * of code. This function repoints these pointers and functors so that calls are windows specific. */ void ChangeWindowsSpecificPointers(InspIRCd* Instance) { + Instance->Log(DEBUG,"Changing to windows specific pointer and functor set"); Instance->Config->DNSServerValidator = &ValidateWindowsDnsServer; } DWORD WindowsForkStart(InspIRCd* Instance) { - /* See the function declaration above */ - ChangeWindowsSpecificPointers(Instance); - /* Windows implementation of fork() :P */ if (owner_processid) return 0; diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 0fd43fab8..ffda9ff40 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -202,6 +202,8 @@ DWORD WindowsForkStart(InspIRCd* Instance); void WindowsForkKillOwner(InspIRCd* Instance); +void ChangeWindowsSpecificPointers(InspIRCd* Instance); + bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data); #endif |