diff --git a/src/cmd/synergyc/CMakeLists.txt b/src/cmd/synergyc/CMakeLists.txt
index d30be939..f2631173 100644
--- a/src/cmd/synergyc/CMakeLists.txt
+++ b/src/cmd/synergyc/CMakeLists.txt
@@ -19,9 +19,9 @@ set(sources
)
if (WIN32)
+ file(GLOB arch_headers "MSWindows*.h")
+ file(GLOB arch_sources "MSWindows*.cpp")
list(APPEND sources
- CMSWindowsClientTaskBarReceiver.cpp
- CMSWindowsClientTaskBarReceiver.h
resource.h
synergyc.ico
synergyc.rc
@@ -31,24 +31,23 @@ if (WIN32)
tb_wait.ico
)
elseif (APPLE)
- list(APPEND sources COSXClientTaskBarReceiver.cpp)
+ file(GLOB arch_headers "OSX*.h")
+ file(GLOB arch_sources "OSX*.cpp")
elseif (UNIX)
- list(APPEND sources CXWindowsClientTaskBarReceiver.cpp)
+ file(GLOB arch_headers "XWindows*.h")
+ file(GLOB arch_sources "XWindows*.cpp")
+endif()
+
+list(APPEND sources ${arch_sources})
+list(APPEND headers ${arch_headers})
+
+if (SYNERGY_ADD_HEADERS)
+ list(APPEND sources ${headers})
endif()
include_directories(
- ../../lib/arch
- ../../lib/base
- ../../lib/client
- ../../lib/common
- ../../lib/io
- ../../lib/ipc
- ../../lib/mt
- ../../lib/net
- ../../lib/platform
- ../../lib/synergy
- ../../lib/synwinhk
- ../../lib/synwinxt
+ ../
+ ../../lib/
)
if (UNIX)
diff --git a/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp b/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
index e10f74ff..71554327 100644
--- a/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
+++ b/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
@@ -16,17 +16,18 @@
* along with this program. If not, see .
*/
-#include "CMSWindowsClientTaskBarReceiver.h"
-#include "CClient.h"
-#include "CMSWindowsClipboard.h"
-#include "LogOutputters.h"
-#include "BasicTypes.h"
-#include "CArch.h"
-#include "CArchTaskBarWindows.h"
-#include "CArchMiscWindows.h"
+#include "synergyc/MSWindowsClientTaskBarReceiver.h"
+
#include "resource.h"
-#include "CMSWindowsScreen.h"
-#include "CEventQueue.h"
+#include "client/Client.h"
+#include "platform/MSWindowsClipboard.h"
+#include "platform/MSWindowsScreen.h"
+#include "arch/win32/ArchTaskBarWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/Arch.h"
+#include "base/EventQueue.h"
+#include "base/log_outputters.h"
+#include "base/EventTypes.h"
//
// CMSWindowsClientTaskBarReceiver
diff --git a/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.h b/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.h
index 92368477..dde942e1 100644
--- a/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.h
+++ b/src/cmd/synergyc/MSWindowsClientTaskBarReceiver.h
@@ -16,13 +16,12 @@
* along with this program. If not, see .
*/
-#ifndef CMSWINDOWSCLIENTTASKBARRECEIVER_H
-#define CMSWINDOWSCLIENTTASKBARRECEIVER_H
+#pragma once
+
+#include "synergy/ClientTaskBarReceiver.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "CClientTaskBarReceiver.h"
-#include
+#include
class CBufferedLogOutputter;
class IEventQueue;
@@ -67,5 +66,3 @@ private:
static const UINT s_stateToIconID[];
};
-
-#endif
diff --git a/src/cmd/synergyc/OSXClientTaskBarReceiver.cpp b/src/cmd/synergyc/OSXClientTaskBarReceiver.cpp
index 388f2654..cb41d659 100644
--- a/src/cmd/synergyc/OSXClientTaskBarReceiver.cpp
+++ b/src/cmd/synergyc/OSXClientTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "COSXClientTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergyc/OSXClientTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// COSXClientTaskBarReceiver
diff --git a/src/cmd/synergyc/OSXClientTaskBarReceiver.h b/src/cmd/synergyc/OSXClientTaskBarReceiver.h
index 6d309a5b..30e7f739 100644
--- a/src/cmd/synergyc/OSXClientTaskBarReceiver.h
+++ b/src/cmd/synergyc/OSXClientTaskBarReceiver.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef COSXCLIENTTASKBARRECEIVER_H
-#define COSXCLIENTTASKBARRECEIVER_H
+#pragma once
-#include "CClientTaskBarReceiver.h"
+#include "synergyc/ClientTaskBarReceiver.h"
class CBufferedLogOutputter;
class IEventQueue;
@@ -36,5 +35,3 @@ public:
virtual void primaryAction();
virtual const Icon getIcon() const;
};
-
-#endif
diff --git a/src/cmd/synergyc/XWindowsClientTaskBarReceiver.cpp b/src/cmd/synergyc/XWindowsClientTaskBarReceiver.cpp
index 31c80b89..9d28fd34 100644
--- a/src/cmd/synergyc/XWindowsClientTaskBarReceiver.cpp
+++ b/src/cmd/synergyc/XWindowsClientTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "CXWindowsClientTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergyc/XWindowsClientTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// CXWindowsClientTaskBarReceiver
diff --git a/src/cmd/synergyc/XWindowsClientTaskBarReceiver.h b/src/cmd/synergyc/XWindowsClientTaskBarReceiver.h
index 83576414..7467ae43 100644
--- a/src/cmd/synergyc/XWindowsClientTaskBarReceiver.h
+++ b/src/cmd/synergyc/XWindowsClientTaskBarReceiver.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CXWINDOWSCLIENTTASKBARRECEIVER_H
-#define CXWINDOWSCLIENTTASKBARRECEIVER_H
+#pragma once
-#include "CClientTaskBarReceiver.h"
+#include "synergyc/ClientTaskBarReceiver.h"
class CBufferedLogOutputter;
class IEventQueue;
@@ -37,5 +36,3 @@ public:
virtual void primaryAction();
virtual const Icon getIcon() const;
};
-
-#endif
diff --git a/src/cmd/synergyc/synergyc.cpp b/src/cmd/synergyc/synergyc.cpp
index 0f9f2434..7b3786a4 100644
--- a/src/cmd/synergyc/synergyc.cpp
+++ b/src/cmd/synergyc/synergyc.cpp
@@ -16,17 +16,17 @@
* along with this program. If not, see .
*/
-#include "CClientApp.h"
-#include "CLog.h"
-#include "CArch.h"
-#include "CEventQueue.h"
+#include "synergy/ClientApp.h"
+#include "arch/Arch.h"
+#include "base/Log.h"
+#include "base/EventQueue.h"
#if WINAPI_MSWINDOWS
-#include "CMSWindowsClientTaskBarReceiver.h"
+#include "synergyc/MSWindowsClientTaskBarReceiver.h"
#elif WINAPI_XWINDOWS
-#include "CXWindowsClientTaskBarReceiver.h"
+#include "synergyc/XWindowsClientTaskBarReceiver.h"
#elif WINAPI_CARBON
-#include "COSXClientTaskBarReceiver.h"
+#include "synergyc/OSXClientTaskBarReceiver.h"
#else
#error Platform not supported.
#endif
diff --git a/src/cmd/synergyd/CMakeLists.txt b/src/cmd/synergyd/CMakeLists.txt
index 267c34ca..6587a26a 100644
--- a/src/cmd/synergyd/CMakeLists.txt
+++ b/src/cmd/synergyd/CMakeLists.txt
@@ -18,15 +18,8 @@ file(GLOB headers "*.h")
file(GLOB sources "*.cpp")
include_directories(
- ../../lib/arch
- ../../lib/base
- ../../lib/common
- ../../lib/io
- ../../lib/ipc
- ../../lib/mt
- ../../lib/net
- ../../lib/platform
- ../../lib/synergy
+ ../
+ ../../lib/
)
if (UNIX)
diff --git a/src/cmd/synergyd/synergyd.cpp b/src/cmd/synergyd/synergyd.cpp
index d34929c3..5f17633f 100644
--- a/src/cmd/synergyd/synergyd.cpp
+++ b/src/cmd/synergyd/synergyd.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "CDaemonApp.h"
+#include "synergy/DaemonApp.h"
+
#include
#ifdef SYSAPI_UNIX
diff --git a/src/cmd/synergyp/CMakeLists.txt b/src/cmd/synergyp/CMakeLists.txt
index 0c11461c..97062eb2 100644
--- a/src/cmd/synergyp/CMakeLists.txt
+++ b/src/cmd/synergyp/CMakeLists.txt
@@ -19,9 +19,9 @@ set(sources
)
if (WIN32)
+ file(GLOB arch_headers "MSWindows*.h")
+ file(GLOB arch_sources "MSWindows*.cpp")
list(APPEND sources
- CMSWindowsPortableTaskBarReceiver.cpp
- CMSWindowsPortableTaskBarReceiver.h
resource.h
synergyp.ico
synergyp.rc
@@ -31,24 +31,23 @@ if (WIN32)
tb_wait.ico
)
elseif (APPLE)
- list(APPEND sources COSXPortableTaskBarReceiver.cpp)
+ file(GLOB arch_headers "OSX*.h")
+ file(GLOB arch_sources "OSX*.cpp")
elseif (UNIX)
- list(APPEND sources CXWindowsPortableTaskBarReceiver.cpp)
+ file(GLOB arch_headers "XWindows*.h")
+ file(GLOB arch_sources "XWindows*.cpp")
+endif()
+
+list(APPEND sources ${arch_sources})
+list(APPEND headers ${arch_headers})
+
+if (SYNERGY_ADD_HEADERS)
+ list(APPEND sources ${headers})
endif()
include_directories(
- ../../lib/arch
- ../../lib/base
- ../../lib/common
- ../../lib/io
- ../../lib/ipc
- ../../lib/mt
- ../../lib/net
- ../../lib/platform
- ../../lib/synergy
- ../../lib/server
- ../../lib/synwinhk
- ../../lib/synwinxt
+ ../
+ ../../lib/
)
if (UNIX)
diff --git a/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp b/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
index 6f905720..66d564de 100644
--- a/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
+++ b/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
@@ -16,17 +16,18 @@
* along with this program. If not, see .
*/
-#include "CMSWindowsPortableTaskBarReceiver.h"
-#include "CMSWindowsClipboard.h"
-#include "IEventQueue.h"
-#include "LogOutputters.h"
-#include "BasicTypes.h"
-#include "CArch.h"
-#include "CArchTaskBarWindows.h"
+#include "synergyp/MSWindowsPortableTaskBarReceiver.h"
+
#include "resource.h"
-#include "CArchMiscWindows.h"
-#include "CMSWindowsScreen.h"
-#include "CEventQueue.h"
+#include "platform/MSWindowsClipboard.h"
+#include "platform/MSWindowsScreen.h"
+#include "arch/win32/ArchTaskBarWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/Arch.h"
+#include "base/EventQueue.h"
+#include "base/IEventQueue.h"
+#include "base/log_outputters.h"
+#include "base/EventTypes.h"
//
// CMSWindowsPortableTaskBarReceiver
diff --git a/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.h b/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.h
index cc46d7c5..df36d222 100644
--- a/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.h
+++ b/src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.h
@@ -18,10 +18,10 @@
#pragma once
-#define WIN32_LEAN_AND_MEAN
+#include "synergy/PortableTaskBarReceiver.h"
-#include "CPortableTaskBarReceiver.h"
-#include
+#define WIN32_LEAN_AND_MEAN
+#include
class CBufferedLogOutputter;
class IEventQueue;
diff --git a/src/cmd/synergyp/OSXPortableTaskBarReceiver.cpp b/src/cmd/synergyp/OSXPortableTaskBarReceiver.cpp
index aae65393..6497e0a6 100644
--- a/src/cmd/synergyp/OSXPortableTaskBarReceiver.cpp
+++ b/src/cmd/synergyp/OSXPortableTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "COSXServerTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergys/OSXServerTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// COSXServerTaskBarReceiver
diff --git a/src/cmd/synergyp/OSXPortableTaskBarReceiver.h b/src/cmd/synergyp/OSXPortableTaskBarReceiver.h
index 984f1f4d..ab213a32 100644
--- a/src/cmd/synergyp/OSXPortableTaskBarReceiver.h
+++ b/src/cmd/synergyp/OSXPortableTaskBarReceiver.h
@@ -18,7 +18,7 @@
#pragma once
-#include "CPortableTaskBarReceiver.h"
+#include "synergyp/PortableTaskBarReceiver.h"
class CBufferedLogOutputter;
diff --git a/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.cpp b/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.cpp
index 598555b9..2d1bfc74 100644
--- a/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.cpp
+++ b/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "CXWindowsServerTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergys/XWindowsServerTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// CXWindowsServerTaskBarReceiver
diff --git a/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.h b/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.h
index f2ff51c7..6f32efd6 100644
--- a/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.h
+++ b/src/cmd/synergyp/XWindowsPortableTaskBarReceiver.h
@@ -18,7 +18,7 @@
#pragma once
-#include "CPortableTaskBarReceiver.h"
+#include "synergyp/PortableTaskBarReceiver.h"
class CBufferedLogOutputter;
diff --git a/src/cmd/synergyp/synergyp.cpp b/src/cmd/synergyp/synergyp.cpp
index a6f6b1db..ce2ec90d 100644
--- a/src/cmd/synergyp/synergyp.cpp
+++ b/src/cmd/synergyp/synergyp.cpp
@@ -15,25 +15,25 @@
* along with this program. If not, see .
*/
-#define WIN32_LEAN_AND_MEAN
-
-#include "Windows.h"
-#include "CServerApp.h"
-#include "CClientApp.h"
-#include "CLog.h"
-#include "CArch.h"
-#include "CEventQueue.h"
+#include "synergy/ServerApp.h"
+#include "synergy/ClientApp.h"
+#include "arch/Arch.h"
+#include "base/Log.h"
+#include "base/EventQueue.h"
#if WINAPI_MSWINDOWS
-#include "CMSWindowsPortableTaskBarReceiver.h"
+#include "MSWindowsPortableTaskBarReceiver.h"
#elif WINAPI_XWINDOWS
-#include "CXWindowsPortableTaskBarReceiver.h"
+#include "XWindowsPortableTaskBarReceiver.h"
#elif WINAPI_CARBON
-#include "COSXPortableTaskBarReceiver.h"
+#include "OSXPortableTaskBarReceiver.h"
#else
#error Platform not supported.
#endif
+#define WIN32_LEAN_AND_MEAN
+#include
+
INT WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow)
{
diff --git a/src/cmd/synergys/CMakeLists.txt b/src/cmd/synergys/CMakeLists.txt
index 33bb0c08..58fbc0c9 100644
--- a/src/cmd/synergys/CMakeLists.txt
+++ b/src/cmd/synergys/CMakeLists.txt
@@ -19,9 +19,9 @@ set(sources
)
if (WIN32)
+ file(GLOB arch_headers "MSWindows*.h")
+ file(GLOB arch_sources "MSWindows*.cpp")
list(APPEND sources
- CMSWindowsServerTaskBarReceiver.cpp
- CMSWindowsServerTaskBarReceiver.h
resource.h
synergys.ico
synergys.rc
@@ -31,24 +31,23 @@ if (WIN32)
tb_wait.ico
)
elseif (APPLE)
- list(APPEND sources COSXServerTaskBarReceiver.cpp)
+ file(GLOB arch_headers "OSX*.h")
+ file(GLOB arch_sources "OSX*.cpp")
elseif (UNIX)
- list(APPEND sources CXWindowsServerTaskBarReceiver.cpp)
+ file(GLOB arch_headers "XWindows*.h")
+ file(GLOB arch_sources "XWindows*.cpp")
+endif()
+
+list(APPEND sources ${arch_sources})
+list(APPEND headers ${arch_headers})
+
+if (SYNERGY_ADD_HEADERS)
+ list(APPEND sources ${headers})
endif()
include_directories(
- ../../lib/arch
- ../../lib/base
- ../../lib/common
- ../../lib/io
- ../../lib/ipc
- ../../lib/mt
- ../../lib/net
- ../../lib/platform
- ../../lib/synergy
- ../../lib/server
- ../../lib/synwinhk
- ../../lib/synwinxt
+ ../
+ ../../lib/
)
if (UNIX)
diff --git a/src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp b/src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp
index f8b5d855..284393b6 100644
--- a/src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp
+++ b/src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp
@@ -16,18 +16,19 @@
* along with this program. If not, see .
*/
-#include "CMSWindowsServerTaskBarReceiver.h"
-#include "CServer.h"
-#include "CMSWindowsClipboard.h"
-#include "IEventQueue.h"
-#include "LogOutputters.h"
-#include "BasicTypes.h"
-#include "CArch.h"
-#include "CArchTaskBarWindows.h"
+#include "synergys/MSWindowsServerTaskBarReceiver.h"
+
#include "resource.h"
-#include "CArchMiscWindows.h"
-#include "CMSWindowsScreen.h"
-#include "CEventQueue.h"
+#include "server/Server.h"
+#include "platform/MSWindowsClipboard.h"
+#include "platform/MSWindowsScreen.h"
+#include "arch/win32/ArchTaskBarWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/Arch.h"
+#include "base/EventQueue.h"
+#include "base/IEventQueue.h"
+#include "base/log_outputters.h"
+#include "base/EventTypes.h"
//
// CMSWindowsServerTaskBarReceiver
diff --git a/src/cmd/synergys/MSWindowsServerTaskBarReceiver.h b/src/cmd/synergys/MSWindowsServerTaskBarReceiver.h
index 76c89522..2b4221eb 100644
--- a/src/cmd/synergys/MSWindowsServerTaskBarReceiver.h
+++ b/src/cmd/synergys/MSWindowsServerTaskBarReceiver.h
@@ -16,13 +16,12 @@
* along with this program. If not, see .
*/
-#ifndef CMSWINDOWSSERVERTASKBARRECEIVER_H
-#define CMSWINDOWSSERVERTASKBARRECEIVER_H
+#pragma once
+
+#include "synergy/ServerTaskBarReceiver.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "CServerTaskBarReceiver.h"
-#include
+#include
class CBufferedLogOutputter;
class IEventQueue;
@@ -68,5 +67,3 @@ private:
static const UINT s_stateToIconID[];
};
-
-#endif
diff --git a/src/cmd/synergys/OSXServerTaskBarReceiver.cpp b/src/cmd/synergys/OSXServerTaskBarReceiver.cpp
index 264e69a7..354c0dea 100644
--- a/src/cmd/synergys/OSXServerTaskBarReceiver.cpp
+++ b/src/cmd/synergys/OSXServerTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "COSXServerTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergys/OSXServerTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// COSXServerTaskBarReceiver
diff --git a/src/cmd/synergys/OSXServerTaskBarReceiver.h b/src/cmd/synergys/OSXServerTaskBarReceiver.h
index cde33f05..fa362769 100644
--- a/src/cmd/synergys/OSXServerTaskBarReceiver.h
+++ b/src/cmd/synergys/OSXServerTaskBarReceiver.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef COSXSERVERTASKBARRECEIVER_H
-#define COSXSERVERTASKBARRECEIVER_H
+#pragma once
-#include "CServerTaskBarReceiver.h"
+#include "synergys/ServerTaskBarReceiver.h"
class CBufferedLogOutputter;
@@ -35,5 +34,3 @@ public:
virtual void primaryAction();
virtual const Icon getIcon() const;
};
-
-#endif
diff --git a/src/cmd/synergys/XWindowsServerTaskBarReceiver.cpp b/src/cmd/synergys/XWindowsServerTaskBarReceiver.cpp
index 032fe7b8..be4f1ce4 100644
--- a/src/cmd/synergys/XWindowsServerTaskBarReceiver.cpp
+++ b/src/cmd/synergys/XWindowsServerTaskBarReceiver.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "CXWindowsServerTaskBarReceiver.h"
-#include "CArch.h"
+#include "synergys/XWindowsServerTaskBarReceiver.h"
+#include "arch/Arch.h"
//
// CXWindowsServerTaskBarReceiver
diff --git a/src/cmd/synergys/XWindowsServerTaskBarReceiver.h b/src/cmd/synergys/XWindowsServerTaskBarReceiver.h
index 181e633a..f43d6c97 100644
--- a/src/cmd/synergys/XWindowsServerTaskBarReceiver.h
+++ b/src/cmd/synergys/XWindowsServerTaskBarReceiver.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CXWINDOWSSERVERTASKBARRECEIVER_H
-#define CXWINDOWSSERVERTASKBARRECEIVER_H
+#pragma once
-#include "CServerTaskBarReceiver.h"
+#include "synergys/ServerTaskBarReceiver.h"
class CBufferedLogOutputter;
class IEventQueue;
@@ -37,5 +36,3 @@ public:
virtual void primaryAction();
virtual const Icon getIcon() const;
};
-
-#endif
diff --git a/src/cmd/synergys/synergys.cpp b/src/cmd/synergys/synergys.cpp
index d6e744df..45844ef5 100644
--- a/src/cmd/synergys/synergys.cpp
+++ b/src/cmd/synergys/synergys.cpp
@@ -16,17 +16,17 @@
* along with this program. If not, see .
*/
-#include "CServerApp.h"
-#include "CLog.h"
-#include "CArch.h"
-#include "CEventQueue.h"
+#include "synergy/ServerApp.h"
+#include "arch/Arch.h"
+#include "base/Log.h"
+#include "base/EventQueue.h"
#if WINAPI_MSWINDOWS
-#include "CMSWindowsServerTaskBarReceiver.h"
+#include "synergys/MSWindowsServerTaskBarReceiver.h"
#elif WINAPI_XWINDOWS
-#include "CXWindowsServerTaskBarReceiver.h"
+#include "synergys/XWindowsServerTaskBarReceiver.h"
#elif WINAPI_CARBON
-#include "COSXServerTaskBarReceiver.h"
+#include "synergys/OSXServerTaskBarReceiver.h"
#else
#error Platform not supported.
#endif
diff --git a/src/cmd/syntool/CMakeLists.txt b/src/cmd/syntool/CMakeLists.txt
index f10ec80d..7b2048d5 100644
--- a/src/cmd/syntool/CMakeLists.txt
+++ b/src/cmd/syntool/CMakeLists.txt
@@ -17,17 +17,8 @@ file(GLOB headers "*.h")
file(GLOB sources "*.cpp")
include_directories(
- ../../lib/arch
- ../../lib/base
- ../../lib/common
- ../../lib/io
- ../../lib/ipc
- ../../lib/mt
- ../../lib/net
- ../../lib/platform
- ../../lib/synergy
- ../../lib/synwinhk
- ../../lib/synwinxt
+ ../
+ ../../lib/
)
if (UNIX)
diff --git a/src/cmd/syntool/syntool.cpp b/src/cmd/syntool/syntool.cpp
index 5e88b3c5..57bedd05 100644
--- a/src/cmd/syntool/syntool.cpp
+++ b/src/cmd/syntool/syntool.cpp
@@ -15,8 +15,8 @@
* along with this program. If not, see .
*/
-#include "CToolApp.h"
-#include "CArch.h"
+#include "synergy/ToolApp.h"
+#include "arch/Arch.h"
int
main(int argc, char** argv)
diff --git a/src/lib/arch/Arch.cpp b/src/lib/arch/Arch.cpp
index 5e96fbe2..5e672747 100644
--- a/src/lib/arch/Arch.cpp
+++ b/src/lib/arch/Arch.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArch.h"
+#include "arch/Arch.h"
//
// CArch
diff --git a/src/lib/arch/Arch.h b/src/lib/arch/Arch.h
index 557f5347..b43eff1d 100644
--- a/src/lib/arch/Arch.h
+++ b/src/lib/arch/Arch.h
@@ -33,42 +33,41 @@
// class lazy-loaded so that apps like the daemon don't load
// stuff when they don't need it.
-#ifndef CARCH_H
-#define CARCH_H
+#pragma once
-#include "common.h"
+#include "common/common.h"
#if SYSAPI_WIN32
-# include "CArchConsoleWindows.h"
-# include "CArchDaemonWindows.h"
-# include "CArchFileWindows.h"
-# include "CArchLogWindows.h"
-# include "CArchMiscWindows.h"
-# include "CArchMultithreadWindows.h"
-# include "CArchNetworkWinsock.h"
-# include "CArchSleepWindows.h"
-# include "CArchStringWindows.h"
-# include "CArchSystemWindows.h"
-# include "CArchTaskBarWindows.h"
-# include "CArchTimeWindows.h"
-# include "CArchPluginWindows.h"
-# include "CArchInternetWindows.h"
+# include "arch/win32/ArchConsoleWindows.h"
+# include "arch/win32/ArchDaemonWindows.h"
+# include "arch/win32/ArchFileWindows.h"
+# include "arch/win32/ArchLogWindows.h"
+# include "arch/win32/ArchMiscWindows.h"
+# include "arch/win32/ArchMultithreadWindows.h"
+# include "arch/win32/ArchNetworkWinsock.h"
+# include "arch/win32/ArchSleepWindows.h"
+# include "arch/win32/ArchStringWindows.h"
+# include "arch/win32/ArchSystemWindows.h"
+# include "arch/win32/ArchTaskBarWindows.h"
+# include "arch/win32/ArchTimeWindows.h"
+# include "arch/win32/ArchPluginWindows.h"
+# include "arch/win32/ArchInternetWindows.h"
#elif SYSAPI_UNIX
-# include "CArchConsoleUnix.h"
-# include "CArchDaemonUnix.h"
-# include "CArchFileUnix.h"
-# include "CArchLogUnix.h"
+# include "arch/unix/ArchConsoleUnix.h"
+# include "arch/unix/ArchDaemonUnix.h"
+# include "arch/unix/ArchFileUnix.h"
+# include "arch/unix/ArchLogUnix.h"
# if HAVE_PTHREAD
-# include "CArchMultithreadPosix.h"
+# include "arch/unix/ArchMultithreadPosix.h"
# endif
-# include "CArchNetworkBSD.h"
-# include "CArchSleepUnix.h"
-# include "CArchStringUnix.h"
-# include "CArchSystemUnix.h"
-# include "CArchTaskBarXWindows.h"
-# include "CArchTimeUnix.h"
-# include "CArchPluginUnix.h"
-# include "CArchInternetUnix.h"
+# include "arch/unix/ArchNetworkBSD.h"
+# include "arch/unix/ArchSleepUnix.h"
+# include "arch/unix/ArchStringUnix.h"
+# include "arch/unix/ArchSystemUnix.h"
+# include "arch/unix/ArchTaskBarXWindows.h"
+# include "arch/unix/ArchTimeUnix.h"
+# include "arch/unix/ArchPluginUnix.h"
+# include "arch/unix/ArchInternetUnix.h"
#endif
/*!
@@ -144,5 +143,3 @@ public:
private:
CArchMutex m_mutex;
};
-
-#endif
diff --git a/src/lib/arch/ArchConsoleStd.cpp b/src/lib/arch/ArchConsoleStd.cpp
index 91b4426f..4e88a117 100644
--- a/src/lib/arch/ArchConsoleStd.cpp
+++ b/src/lib/arch/ArchConsoleStd.cpp
@@ -16,8 +16,9 @@
* along with this program. If not, see .
*/
-#include "CArchConsoleStd.h"
-#include "CLog.h"
+#include "arch/ArchConsoleStd.h"
+#include "base/Log.h"
+
#include
void
diff --git a/src/lib/arch/ArchConsoleStd.h b/src/lib/arch/ArchConsoleStd.h
index e865115a..ac9e28b8 100644
--- a/src/lib/arch/ArchConsoleStd.h
+++ b/src/lib/arch/ArchConsoleStd.h
@@ -18,7 +18,7 @@
#pragma once
-#include "IArchConsole.h"
+#include "arch/IArchConsole.h"
//! Cross platform implementation of IArchConsole
class CArchConsoleStd : public IArchConsole {
diff --git a/src/lib/arch/ArchDaemonNone.cpp b/src/lib/arch/ArchDaemonNone.cpp
index ca6442ef..4493851c 100644
--- a/src/lib/arch/ArchDaemonNone.cpp
+++ b/src/lib/arch/ArchDaemonNone.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArchDaemonNone.h"
+#include "arch/ArchDaemonNone.h"
//
// CArchDaemonNone
diff --git a/src/lib/arch/ArchDaemonNone.h b/src/lib/arch/ArchDaemonNone.h
index 6439c6a9..22b6c432 100644
--- a/src/lib/arch/ArchDaemonNone.h
+++ b/src/lib/arch/ArchDaemonNone.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHDAEMONNONE_H
-#define CARCHDAEMONNONE_H
+#pragma once
-#include "IArchDaemon.h"
+#include "arch/IArchDaemon.h"
#define ARCH_DAEMON CArchDaemonNone
@@ -50,5 +49,3 @@ public:
virtual void uninstallDaemon();
virtual std::string commandLine() const;
};
-
-#endif
diff --git a/src/lib/arch/CMakeLists.txt b/src/lib/arch/CMakeLists.txt
index 97272ef0..eb651a19 100644
--- a/src/lib/arch/CMakeLists.txt
+++ b/src/lib/arch/CMakeLists.txt
@@ -14,92 +14,36 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-set(sources
- CArch.cpp
- IArchString.cpp
- XArch.cpp
- CArchConsoleStd.cpp
-)
+file(GLOB headers "*.h")
+file(GLOB sources "*.cpp")
+if (SYNERGY_ADD_HEADERS)
+ list(APPEND sources ${headers})
+endif()
+
+# arch
if (WIN32)
-
- set(headers
- CArch.h
- CArchConsoleWindows.h
- CArchDaemonWindows.h
- CArchFileWindows.h
- CArchLogWindows.h
- CArchMiscWindows.h
- CArchMultithreadWindows.h
- CArchNetworkWinsock.h
- CArchSleepWindows.h
- CArchStringWindows.h
- CArchSystemWindows.h
- CArchTaskBarWindows.h
- CArchTimeWindows.h
- CArchConsoleStd.h
- XArchWindows.h
- CMultibyte.h
- vsnprintf.h
- XArch.h
- IArchPlugin.h
- CArchPluginWindows.h
- CArchInternetWindows.h
- )
-
- list(APPEND sources
- ${headers}
- CArchConsoleWindows.cpp
- CArchDaemonWindows.cpp
- CArchFileWindows.cpp
- CArchLogWindows.cpp
- CArchMiscWindows.cpp
- CArchMultithreadWindows.cpp
- CArchNetworkWinsock.cpp
- CArchSleepWindows.cpp
- CArchStringWindows.cpp
- CArchSystemWindows.cpp
- CArchTaskBarWindows.cpp
- CArchTimeWindows.cpp
- XArchWindows.cpp
- CArchPluginWindows.cpp
- CArchInternetWindows.cpp
- )
-
+ file(GLOB arch_headers "awin32/*.h")
+ file(GLOB arch_sources "win32/*.cpp")
elseif (UNIX)
+ file(GLOB arch_headers "unix/*.h")
+ file(GLOB arch_sources "unix/*.cpp")
+endif()
- list(APPEND sources
- CArchConsoleUnix.cpp
- CArchDaemonUnix.cpp
- CArchFileUnix.cpp
- CArchLogUnix.cpp
- CArchMultithreadPosix.cpp
- CArchNetworkBSD.cpp
- CArchSleepUnix.cpp
- CArchStringUnix.cpp
- CArchSystemUnix.cpp
- CArchTaskBarXWindows.cpp
- CArchTimeUnix.cpp
- XArchUnix.cpp
- CArchDaemonNone.cpp
- CArchPluginUnix.cpp
- CArchInternetUnix.cpp
- )
-
+list(APPEND sources ${arch_sources})
+list(APPEND headers ${arch_headers})
+
+if (SYNERGY_ADD_HEADERS)
+ list(APPEND sources ${headers})
endif()
include_directories(
- ../base
- ../common
- ../mt
- ../platform
- ../synergy
+ ../
)
if (UNIX)
include_directories(
../../..
- ../arch
)
endif()
diff --git a/src/lib/arch/IArchConsole.h b/src/lib/arch/IArchConsole.h
index e99711c1..5d94be5f 100644
--- a/src/lib/arch/IArchConsole.h
+++ b/src/lib/arch/IArchConsole.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHCONSOLE_H
-#define IARCHCONSOLE_H
+#pragma once
-#include "IInterface.h"
-#include "ELevel.h"
+#include "common/IInterface.h"
+#include "base/ELevel.h"
//! Interface for architecture dependent console output
/*!
@@ -65,5 +64,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchDaemon.h b/src/lib/arch/IArchDaemon.h
index 5070747b..6822fd9d 100644
--- a/src/lib/arch/IArchDaemon.h
+++ b/src/lib/arch/IArchDaemon.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHDAEMON_H
-#define IARCHDAEMON_H
+#pragma once
-#include "IInterface.h"
-#include "CString.h"
+#include "common/IInterface.h"
+#include "base/String.h"
//! Interface for architecture dependent daemonizing
/*!
@@ -128,5 +127,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchFile.h b/src/lib/arch/IArchFile.h
index 4d5ec281..dc2d9c12 100644
--- a/src/lib/arch/IArchFile.h
+++ b/src/lib/arch/IArchFile.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHFILE_H
-#define IARCHFILE_H
+#pragma once
-#include "IInterface.h"
-#include "stdstring.h"
+#include "common/IInterface.h"
+#include "common/stdstring.h"
//! Interface for architecture dependent file system operations
/*!
@@ -64,5 +63,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchLog.h b/src/lib/arch/IArchLog.h
index 2b66a82e..d07bcdf0 100644
--- a/src/lib/arch/IArchLog.h
+++ b/src/lib/arch/IArchLog.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHLOG_H
-#define IARCHLOG_H
+#pragma once
-#include "IInterface.h"
-#include "ELevel.h"
+#include "common/IInterface.h"
+#include "base/ELevel.h"
//! Interface for architecture dependent logging
/*!
@@ -62,5 +61,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchMultithread.h b/src/lib/arch/IArchMultithread.h
index 3e5375f9..31c56179 100644
--- a/src/lib/arch/IArchMultithread.h
+++ b/src/lib/arch/IArchMultithread.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IARCHMULTITHREAD_H
-#define IARCHMULTITHREAD_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
/*!
\class CArchCondImpl
@@ -272,5 +271,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchNetwork.h b/src/lib/arch/IArchNetwork.h
index 98d1dc55..98056fb4 100644
--- a/src/lib/arch/IArchNetwork.h
+++ b/src/lib/arch/IArchNetwork.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHNETWORK_H
-#define IARCHNETWORK_H
+#pragma once
-#include "IInterface.h"
-#include "stdstring.h"
+#include "common/IInterface.h"
+#include "common/stdstring.h"
class CArchThreadImpl;
typedef CArchThreadImpl* CArchThread;
@@ -281,5 +280,3 @@ public:
virtual void init() = 0;
};
-
-#endif
diff --git a/src/lib/arch/IArchPlugin.h b/src/lib/arch/IArchPlugin.h
index cf23e16a..2d8667ef 100644
--- a/src/lib/arch/IArchPlugin.h
+++ b/src/lib/arch/IArchPlugin.h
@@ -20,7 +20,7 @@
#define PLUGINS_DIR "plugins"
-#include "IInterface.h"
+#include "common/IInterface.h"
class IEventQueue;
diff --git a/src/lib/arch/IArchSleep.h b/src/lib/arch/IArchSleep.h
index 8d6536c6..6ce81ee6 100644
--- a/src/lib/arch/IArchSleep.h
+++ b/src/lib/arch/IArchSleep.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IARCHSLEEP_H
-#define IARCHSLEEP_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
//! Interface for architecture dependent sleeping
/*!
@@ -43,5 +42,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchString.cpp b/src/lib/arch/IArchString.cpp
index fc063c9d..a31dad63 100644
--- a/src/lib/arch/IArchString.cpp
+++ b/src/lib/arch/IArchString.cpp
@@ -16,9 +16,10 @@
* along with this program. If not, see .
*/
-#include "IArchString.h"
-#include "common.h"
-#include "CArch.h"
+#include "arch/IArchString.h"
+#include "arch/Arch.h"
+#include "common/common.h"
+
#include
#include
#include
diff --git a/src/lib/arch/IArchString.h b/src/lib/arch/IArchString.h
index a962df12..4d0b8f18 100644
--- a/src/lib/arch/IArchString.h
+++ b/src/lib/arch/IArchString.h
@@ -16,11 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef IARCHSTRING_H
-#define IARCHSTRING_H
+#pragma once
+
+#include "common/IInterface.h"
+#include "common/basic_types.h"
-#include "IInterface.h"
-#include "BasicTypes.h"
#include
//! Interface for architecture dependent string operations
@@ -70,5 +70,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchSystem.h b/src/lib/arch/IArchSystem.h
index 74dff112..8f9bbf36 100644
--- a/src/lib/arch/IArchSystem.h
+++ b/src/lib/arch/IArchSystem.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHSYSTEM_H
-#define IARCHSYSTEM_H
+#pragma once
-#include "IInterface.h"
-#include "stdstring.h"
+#include "common/IInterface.h"
+#include "common/stdstring.h"
//! Interface for architecture dependent system queries
/*!
@@ -58,5 +57,3 @@ public:
virtual void setting(const std::string& valueName, const std::string& valueString) const = 0;
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchTaskBar.h b/src/lib/arch/IArchTaskBar.h
index 244ec30f..5df8e2ec 100644
--- a/src/lib/arch/IArchTaskBar.h
+++ b/src/lib/arch/IArchTaskBar.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IARCHTASKBAR_H
-#define IARCHTASKBAR_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
class IArchTaskBarReceiver;
@@ -62,5 +61,3 @@ public:
virtual void init() = 0;
};
-
-#endif
diff --git a/src/lib/arch/IArchTaskBarReceiver.h b/src/lib/arch/IArchTaskBarReceiver.h
index d5becd48..0ce1a946 100644
--- a/src/lib/arch/IArchTaskBarReceiver.h
+++ b/src/lib/arch/IArchTaskBarReceiver.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IARCHTASKBARRECEIVER_H
-#define IARCHTASKBARRECEIVER_H
+#pragma once
-#include "IInterface.h"
-#include "stdstring.h"
+#include "base/String.h"
+#include "common/IInterface.h"
class IScreen;
class INode;
@@ -97,5 +96,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/IArchTime.h b/src/lib/arch/IArchTime.h
index f25c2be0..f54437f5 100644
--- a/src/lib/arch/IArchTime.h
+++ b/src/lib/arch/IArchTime.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IARCHTIME_H
-#define IARCHTIME_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
//! Interface for architecture dependent time operations
/*!
@@ -40,5 +39,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/arch/XArch.cpp b/src/lib/arch/XArch.cpp
index 0cc2e577..f7446ce5 100644
--- a/src/lib/arch/XArch.cpp
+++ b/src/lib/arch/XArch.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "XArch.h"
+#include "arch/XArch.h"
//
// XArch
diff --git a/src/lib/arch/XArch.h b/src/lib/arch/XArch.h
index 2f87be1c..887f079c 100644
--- a/src/lib/arch/XArch.h
+++ b/src/lib/arch/XArch.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef XARCH_H
-#define XARCH_H
+#pragma once
-#include "common.h"
-#include "stdstring.h"
+#include "common/common.h"
+#include "common/stdstring.h"
//! Generic thread exception
/*!
@@ -169,6 +168,3 @@ XARCH_SUBCLASS(XArchDaemonUninstallFailed, XArchDaemon);
//! Attempted to uninstall a daemon that was not installed
XARCH_SUBCLASS(XArchDaemonUninstallNotInstalled, XArchDaemonUninstallFailed);
-
-
-#endif
diff --git a/src/lib/arch/Multibyte.h b/src/lib/arch/multibyte.h
similarity index 93%
rename from src/lib/arch/Multibyte.h
rename to src/lib/arch/multibyte.h
index 2d4e1555..3247bb14 100644
--- a/src/lib/arch/Multibyte.h
+++ b/src/lib/arch/multibyte.h
@@ -16,11 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef CMULTIBYTE_H
-#define CMULTIBYTE_H
+#pragma once
+
+#include "common/common.h"
+#include "arch/Arch.h"
-#include "common.h"
-#include "CArch.h"
#include
#include
#include
@@ -54,5 +54,3 @@ wctomb(char* dst, wchar_t src)
}
#endif
-
-#endif
diff --git a/src/lib/arch/ArchConsoleUnix.cpp b/src/lib/arch/unix/ArchConsoleUnix.cpp
similarity index 96%
rename from src/lib/arch/ArchConsoleUnix.cpp
rename to src/lib/arch/unix/ArchConsoleUnix.cpp
index b10e64b2..2dc30bbf 100644
--- a/src/lib/arch/ArchConsoleUnix.cpp
+++ b/src/lib/arch/unix/ArchConsoleUnix.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArchConsoleUnix.h"
+#include "arch/ArchConsoleUnix.h"
CArchConsoleUnix::CArchConsoleUnix() { }
diff --git a/src/lib/arch/ArchConsoleUnix.h b/src/lib/arch/unix/ArchConsoleUnix.h
similarity index 96%
rename from src/lib/arch/ArchConsoleUnix.h
rename to src/lib/arch/unix/ArchConsoleUnix.h
index 8281c5fa..50470ae2 100644
--- a/src/lib/arch/ArchConsoleUnix.h
+++ b/src/lib/arch/unix/ArchConsoleUnix.h
@@ -18,7 +18,7 @@
#pragma once
-#include "CArchConsoleStd.h"
+#include "arch/ArchConsoleStd.h"
#define ARCH_CONSOLE CArchConsoleUnix
diff --git a/src/lib/arch/ArchDaemonUnix.cpp b/src/lib/arch/unix/ArchDaemonUnix.cpp
similarity index 97%
rename from src/lib/arch/ArchDaemonUnix.cpp
rename to src/lib/arch/unix/ArchDaemonUnix.cpp
index 18c0f4f5..e48528a6 100644
--- a/src/lib/arch/ArchDaemonUnix.cpp
+++ b/src/lib/arch/unix/ArchDaemonUnix.cpp
@@ -16,15 +16,16 @@
* along with this program. If not, see .
*/
-#include "CArchDaemonUnix.h"
-#include "XArchUnix.h"
+#include "arch/ArchDaemonUnix.h"
+#include "arch/XArchUnix.h"
+#include "base/Log.h"
+
#include
#include
#include
#include
#include
#include
-#include "CLog.h"
//
// CArchDaemonUnix
diff --git a/src/lib/arch/ArchDaemonUnix.h b/src/lib/arch/unix/ArchDaemonUnix.h
similarity index 92%
rename from src/lib/arch/ArchDaemonUnix.h
rename to src/lib/arch/unix/ArchDaemonUnix.h
index 34ca552e..381b658e 100644
--- a/src/lib/arch/ArchDaemonUnix.h
+++ b/src/lib/arch/unix/ArchDaemonUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHDAEMONUNIX_H
-#define CARCHDAEMONUNIX_H
+#pragma once
-#include "CArchDaemonNone.h"
+#include "arch/ArchDaemonNone.h"
#undef ARCH_DAEMON
#define ARCH_DAEMON CArchDaemonUnix
@@ -35,5 +34,3 @@ public:
};
#define CONFIG_FILE "/etc/synergy/synergyd.conf"
-
-#endif
diff --git a/src/lib/arch/ArchFileUnix.cpp b/src/lib/arch/unix/ArchFileUnix.cpp
similarity index 98%
rename from src/lib/arch/ArchFileUnix.cpp
rename to src/lib/arch/unix/ArchFileUnix.cpp
index d71f416d..326866dc 100644
--- a/src/lib/arch/ArchFileUnix.cpp
+++ b/src/lib/arch/unix/ArchFileUnix.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "CArchFileUnix.h"
+#include "arch/ArchFileUnix.h"
+
#include
#include
#include
diff --git a/src/lib/arch/ArchFileUnix.h b/src/lib/arch/unix/ArchFileUnix.h
similarity index 93%
rename from src/lib/arch/ArchFileUnix.h
rename to src/lib/arch/unix/ArchFileUnix.h
index 815387e7..0eaaca61 100644
--- a/src/lib/arch/ArchFileUnix.h
+++ b/src/lib/arch/unix/ArchFileUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHFILEUNIX_H
-#define CARCHFILEUNIX_H
+#pragma once
-#include "IArchFile.h"
+#include "arch/IArchFile.h"
#define ARCH_FILE CArchFileUnix
@@ -36,5 +35,3 @@ public:
virtual std::string concatPath(const std::string& prefix,
const std::string& suffix);
};
-
-#endif
diff --git a/src/lib/arch/ArchInternetUnix.cpp b/src/lib/arch/unix/ArchInternetUnix.cpp
similarity index 94%
rename from src/lib/arch/ArchInternetUnix.cpp
rename to src/lib/arch/unix/ArchInternetUnix.cpp
index 93a69c37..7db939d7 100644
--- a/src/lib/arch/ArchInternetUnix.cpp
+++ b/src/lib/arch/unix/ArchInternetUnix.cpp
@@ -15,10 +15,10 @@
* along with this program. If not, see .
*/
-#include "CArchInternetUnix.h"
-#include "Version.h"
-#include "XArch.h"
-#include "CLog.h"
+#include "arch/ArchInternetUnix.h"
+#include "arch/XArch.h"
+#include "common/Version.h"
+#include "base/Log.h"
#include
#include
diff --git a/src/lib/arch/ArchInternetUnix.h b/src/lib/arch/unix/ArchInternetUnix.h
similarity index 97%
rename from src/lib/arch/ArchInternetUnix.h
rename to src/lib/arch/unix/ArchInternetUnix.h
index 2f2a64d5..e83069e9 100644
--- a/src/lib/arch/ArchInternetUnix.h
+++ b/src/lib/arch/unix/ArchInternetUnix.h
@@ -19,7 +19,7 @@
#define ARCH_INTERNET CArchInternetUnix
-#include "CString.h"
+#include "base/String.h"
class CArchInternetUnix {
public:
diff --git a/src/lib/arch/ArchLogUnix.cpp b/src/lib/arch/unix/ArchLogUnix.cpp
similarity index 97%
rename from src/lib/arch/ArchLogUnix.cpp
rename to src/lib/arch/unix/ArchLogUnix.cpp
index 3421200c..fc59e67b 100644
--- a/src/lib/arch/ArchLogUnix.cpp
+++ b/src/lib/arch/unix/ArchLogUnix.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "CArchLogUnix.h"
+#include "arch/ArchLogUnix.h"
+
#include
//
diff --git a/src/lib/arch/ArchLogUnix.h b/src/lib/arch/unix/ArchLogUnix.h
similarity index 94%
rename from src/lib/arch/ArchLogUnix.h
rename to src/lib/arch/unix/ArchLogUnix.h
index 1203b218..5a77010a 100644
--- a/src/lib/arch/ArchLogUnix.h
+++ b/src/lib/arch/unix/ArchLogUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHLOGUNIX_H
-#define CARCHLOGUNIX_H
+#pragma once
-#include "IArchLog.h"
+#include "arch/IArchLog.h"
#define ARCH_LOG CArchLogUnix
diff --git a/src/lib/arch/ArchMultithreadPosix.cpp b/src/lib/arch/unix/ArchMultithreadPosix.cpp
similarity index 99%
rename from src/lib/arch/ArchMultithreadPosix.cpp
rename to src/lib/arch/unix/ArchMultithreadPosix.cpp
index 8d2c788e..4f3150b9 100644
--- a/src/lib/arch/ArchMultithreadPosix.cpp
+++ b/src/lib/arch/unix/ArchMultithreadPosix.cpp
@@ -16,9 +16,10 @@
* along with this program. If not, see .
*/
-#include "CArchMultithreadPosix.h"
-#include "CArch.h"
-#include "XArch.h"
+#include "arch/ArchMultithreadPosix.h"
+#include "arch/Arch.h"
+#include "arch/XArch.h"
+
#include
#if TIME_WITH_SYS_TIME
# include
diff --git a/src/lib/arch/ArchMultithreadPosix.h b/src/lib/arch/unix/ArchMultithreadPosix.h
similarity index 96%
rename from src/lib/arch/ArchMultithreadPosix.h
rename to src/lib/arch/unix/ArchMultithreadPosix.h
index c5da4196..809a1016 100644
--- a/src/lib/arch/ArchMultithreadPosix.h
+++ b/src/lib/arch/unix/ArchMultithreadPosix.h
@@ -16,11 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef CARCHMULTITHREADPOSIX_H
-#define CARCHMULTITHREADPOSIX_H
+#pragma once
+
+#include "arch/IArchMultithread.h"
+#include "common/stdlist.h"
-#include "IArchMultithread.h"
-#include "stdlist.h"
#include
#define ARCH_MULTITHREAD CArchMultithreadPosix
@@ -113,5 +113,3 @@ private:
SignalFunc m_signalFunc[kNUM_SIGNALS];
void* m_signalUserData[kNUM_SIGNALS];
};
-
-#endif
diff --git a/src/lib/arch/ArchNetworkBSD.cpp b/src/lib/arch/unix/ArchNetworkBSD.cpp
similarity index 99%
rename from src/lib/arch/ArchNetworkBSD.cpp
rename to src/lib/arch/unix/ArchNetworkBSD.cpp
index f0c74d68..084002db 100644
--- a/src/lib/arch/ArchNetworkBSD.cpp
+++ b/src/lib/arch/unix/ArchNetworkBSD.cpp
@@ -16,10 +16,11 @@
* along with this program. If not, see .
*/
-#include "CArchNetworkBSD.h"
-#include "CArch.h"
-#include "CArchMultithreadPosix.h"
-#include "XArchUnix.h"
+#include "arch/ArchNetworkBSD.h"
+#include "arch/Arch.h"
+#include "arch/ArchMultithreadPosix.h"
+#include "arch/XArchUnix.h"
+
#if HAVE_UNISTD_H
# include
#endif
diff --git a/src/lib/arch/ArchNetworkBSD.h b/src/lib/arch/unix/ArchNetworkBSD.h
similarity index 96%
rename from src/lib/arch/ArchNetworkBSD.h
rename to src/lib/arch/unix/ArchNetworkBSD.h
index f524915f..f9bbdfce 100644
--- a/src/lib/arch/ArchNetworkBSD.h
+++ b/src/lib/arch/unix/ArchNetworkBSD.h
@@ -16,11 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef CARCHNETWORKBSD_H
-#define CARCHNETWORKBSD_H
+#pragma once
+
+#include "arch/IArchNetwork.h"
+#include "arch/IArchMultithread.h"
-#include "IArchNetwork.h"
-#include "IArchMultithread.h"
#if HAVE_SYS_TYPES_H
# include
#endif
@@ -102,5 +102,3 @@ private:
private:
CArchMutex m_mutex;
};
-
-#endif
diff --git a/src/lib/arch/ArchPluginUnix.cpp b/src/lib/arch/unix/ArchPluginUnix.cpp
similarity index 96%
rename from src/lib/arch/ArchPluginUnix.cpp
rename to src/lib/arch/unix/ArchPluginUnix.cpp
index dad2d339..fd20b996 100644
--- a/src/lib/arch/ArchPluginUnix.cpp
+++ b/src/lib/arch/unix/ArchPluginUnix.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArchPluginUnix.h"
+#include "arch/ArchPluginUnix.h"
CArchPluginUnix::CArchPluginUnix()
{
diff --git a/src/lib/arch/ArchPluginUnix.h b/src/lib/arch/unix/ArchPluginUnix.h
similarity index 97%
rename from src/lib/arch/ArchPluginUnix.h
rename to src/lib/arch/unix/ArchPluginUnix.h
index dea0378a..cdaa5053 100644
--- a/src/lib/arch/ArchPluginUnix.h
+++ b/src/lib/arch/unix/ArchPluginUnix.h
@@ -18,7 +18,7 @@
#pragma once
-#include "IArchPlugin.h"
+#include "arch/IArchPlugin.h"
#define ARCH_PLUGIN CArchPluginUnix
diff --git a/src/lib/arch/ArchSleepUnix.cpp b/src/lib/arch/unix/ArchSleepUnix.cpp
similarity index 97%
rename from src/lib/arch/ArchSleepUnix.cpp
rename to src/lib/arch/unix/ArchSleepUnix.cpp
index 8a88fd5e..efafc60e 100644
--- a/src/lib/arch/ArchSleepUnix.cpp
+++ b/src/lib/arch/unix/ArchSleepUnix.cpp
@@ -16,8 +16,9 @@
* along with this program. If not, see .
*/
-#include "CArchSleepUnix.h"
-#include "CArch.h"
+#include "arch/ArchSleepUnix.h"
+#include "arch/Arch.h"
+
#if TIME_WITH_SYS_TIME
# include
# include
diff --git a/src/lib/arch/ArchSleepUnix.h b/src/lib/arch/unix/ArchSleepUnix.h
similarity index 92%
rename from src/lib/arch/ArchSleepUnix.h
rename to src/lib/arch/unix/ArchSleepUnix.h
index 4ca3e992..342cc2c8 100644
--- a/src/lib/arch/ArchSleepUnix.h
+++ b/src/lib/arch/unix/ArchSleepUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSLEEPUNIX_H
-#define CARCHSLEEPUNIX_H
+#pragma once
-#include "IArchSleep.h"
+#include "arch/IArchSleep.h"
#define ARCH_SLEEP CArchSleepUnix
@@ -32,5 +31,3 @@ public:
// IArchSleep overrides
virtual void sleep(double timeout);
};
-
-#endif
diff --git a/src/lib/arch/ArchStringUnix.cpp b/src/lib/arch/unix/ArchStringUnix.cpp
similarity index 91%
rename from src/lib/arch/ArchStringUnix.cpp
rename to src/lib/arch/unix/ArchStringUnix.cpp
index c7d871e3..c7586e02 100644
--- a/src/lib/arch/ArchStringUnix.cpp
+++ b/src/lib/arch/unix/ArchStringUnix.cpp
@@ -16,15 +16,16 @@
* along with this program. If not, see .
*/
-#include "CArchStringUnix.h"
+#include "arch/ArchStringUnix.h"
+
#include
//
// CArchStringUnix
//
-#include "CMultibyte.h"
-#include "vsnprintf.h"
+#include "arch/multibyte.h"
+#include "arch/vsnprintf.h"
CArchStringUnix::CArchStringUnix()
{
diff --git a/src/lib/arch/ArchStringUnix.h b/src/lib/arch/unix/ArchStringUnix.h
similarity index 92%
rename from src/lib/arch/ArchStringUnix.h
rename to src/lib/arch/unix/ArchStringUnix.h
index 6c58d87b..fd98a9f8 100644
--- a/src/lib/arch/ArchStringUnix.h
+++ b/src/lib/arch/unix/ArchStringUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSTRINGUNIX_H
-#define CARCHSTRINGUNIX_H
+#pragma once
-#include "IArchString.h"
+#include "arch/IArchString.h"
#define ARCH_STRING CArchStringUnix
@@ -33,5 +32,3 @@ public:
virtual EWideCharEncoding
getWideCharEncoding();
};
-
-#endif
diff --git a/src/lib/arch/ArchSystemUnix.cpp b/src/lib/arch/unix/ArchSystemUnix.cpp
similarity index 97%
rename from src/lib/arch/ArchSystemUnix.cpp
rename to src/lib/arch/unix/ArchSystemUnix.cpp
index 4d0aa2a5..849e7216 100644
--- a/src/lib/arch/ArchSystemUnix.cpp
+++ b/src/lib/arch/unix/ArchSystemUnix.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "CArchSystemUnix.h"
+#include "arch/ArchSystemUnix.h"
+
#include
//
diff --git a/src/lib/arch/ArchSystemUnix.h b/src/lib/arch/unix/ArchSystemUnix.h
similarity index 93%
rename from src/lib/arch/ArchSystemUnix.h
rename to src/lib/arch/unix/ArchSystemUnix.h
index e13400c4..d4ea1965 100644
--- a/src/lib/arch/ArchSystemUnix.h
+++ b/src/lib/arch/unix/ArchSystemUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSYSTEMUNIX_H
-#define CARCHSYSTEMUNIX_H
+#pragma once
-#include "IArchSystem.h"
+#include "arch/IArchSystem.h"
#define ARCH_SYSTEM CArchSystemUnix
@@ -35,5 +34,3 @@ public:
virtual std::string setting(const std::string&) const;
virtual void setting(const std::string&, const std::string&) const;
};
-
-#endif
diff --git a/src/lib/arch/ArchTimeUnix.cpp b/src/lib/arch/unix/ArchTimeUnix.cpp
similarity index 97%
rename from src/lib/arch/ArchTimeUnix.cpp
rename to src/lib/arch/unix/ArchTimeUnix.cpp
index 0f249186..372ac628 100644
--- a/src/lib/arch/ArchTimeUnix.cpp
+++ b/src/lib/arch/unix/ArchTimeUnix.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "CArchTimeUnix.h"
+#include "arch/ArchTimeUnix.h"
+
#if TIME_WITH_SYS_TIME
# include
# include
diff --git a/src/lib/arch/ArchTimeUnix.h b/src/lib/arch/unix/ArchTimeUnix.h
similarity index 92%
rename from src/lib/arch/ArchTimeUnix.h
rename to src/lib/arch/unix/ArchTimeUnix.h
index a1c8fa40..47f89b98 100644
--- a/src/lib/arch/ArchTimeUnix.h
+++ b/src/lib/arch/unix/ArchTimeUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHTIMEUNIX_H
-#define CARCHTIMEUNIX_H
+#pragma once
-#include "IArchTime.h"
+#include "arch/IArchTime.h"
#define ARCH_TIME CArchTimeUnix
@@ -32,5 +31,3 @@ public:
// IArchTime overrides
virtual double time();
};
-
-#endif
diff --git a/src/lib/arch/XArchUnix.cpp b/src/lib/arch/unix/XArchUnix.cpp
similarity index 97%
rename from src/lib/arch/XArchUnix.cpp
rename to src/lib/arch/unix/XArchUnix.cpp
index b276fa1d..aa314115 100644
--- a/src/lib/arch/XArchUnix.cpp
+++ b/src/lib/arch/unix/XArchUnix.cpp
@@ -16,7 +16,8 @@
* along with this program. If not, see .
*/
-#include "XArchUnix.h"
+#include "arch/XArchUnix.h"
+
#include
//
diff --git a/src/lib/arch/XArchUnix.h b/src/lib/arch/unix/XArchUnix.h
similarity index 94%
rename from src/lib/arch/XArchUnix.h
rename to src/lib/arch/unix/XArchUnix.h
index 5e3e73fd..f040a629 100644
--- a/src/lib/arch/XArchUnix.h
+++ b/src/lib/arch/unix/XArchUnix.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef XARCHUNIX_H
-#define XARCHUNIX_H
+#pragma once
-#include "XArch.h"
+#include "arch/XArch.h"
//! Lazy error message string evaluation for unix
class XArchEvalUnix : public XArchEval {
@@ -34,5 +33,3 @@ public:
private:
int m_errno;
};
-
-#endif
diff --git a/src/lib/arch/vsnprintf.h b/src/lib/arch/vsnprintf.h
index 4b848a55..00af88d2 100644
--- a/src/lib/arch/vsnprintf.h
+++ b/src/lib/arch/vsnprintf.h
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "IArchString.h"
+#include "arch/IArchString.h"
#if HAVE_VSNPRINTF
diff --git a/src/lib/arch/ArchConsoleWindows.cpp b/src/lib/arch/win32/ArchConsoleWindows.cpp
similarity index 95%
rename from src/lib/arch/ArchConsoleWindows.cpp
rename to src/lib/arch/win32/ArchConsoleWindows.cpp
index 0f422c85..d00ef4a4 100644
--- a/src/lib/arch/ArchConsoleWindows.cpp
+++ b/src/lib/arch/win32/ArchConsoleWindows.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArchConsoleWindows.h"
+#include "arch/win32/ArchConsoleWindows.h"
CArchConsoleWindows::CArchConsoleWindows() { }
diff --git a/src/lib/arch/ArchConsoleWindows.h b/src/lib/arch/win32/ArchConsoleWindows.h
similarity index 96%
rename from src/lib/arch/ArchConsoleWindows.h
rename to src/lib/arch/win32/ArchConsoleWindows.h
index 8cdbe9f0..2db1ae8d 100644
--- a/src/lib/arch/ArchConsoleWindows.h
+++ b/src/lib/arch/win32/ArchConsoleWindows.h
@@ -18,7 +18,7 @@
#pragma once
-#include "CArchConsoleStd.h"
+#include "arch/ArchConsoleStd.h"
#define ARCH_CONSOLE CArchConsoleWindows
diff --git a/src/lib/arch/ArchDaemonWindows.cpp b/src/lib/arch/win32/ArchDaemonWindows.cpp
similarity index 99%
rename from src/lib/arch/ArchDaemonWindows.cpp
rename to src/lib/arch/win32/ArchDaemonWindows.cpp
index 7884b2e8..91a202ed 100644
--- a/src/lib/arch/ArchDaemonWindows.cpp
+++ b/src/lib/arch/win32/ArchDaemonWindows.cpp
@@ -16,11 +16,12 @@
* along with this program. If not, see .
*/
-#include "CArchDaemonWindows.h"
-#include "CArch.h"
-#include "CArchMiscWindows.h"
-#include "XArchWindows.h"
-#include "stdvector.h"
+#include "arch/win32/ArchDaemonWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/win32/XArchWindows.h"
+#include "arch/Arch.h"
+#include "common/stdvector.h"
+
#include
//
diff --git a/src/lib/arch/ArchDaemonWindows.h b/src/lib/arch/win32/ArchDaemonWindows.h
similarity index 96%
rename from src/lib/arch/ArchDaemonWindows.h
rename to src/lib/arch/win32/ArchDaemonWindows.h
index 2cc8af8d..2af9785b 100644
--- a/src/lib/arch/ArchDaemonWindows.h
+++ b/src/lib/arch/win32/ArchDaemonWindows.h
@@ -16,15 +16,14 @@
* along with this program. If not, see .
*/
-#ifndef CARCHDAEMONWINDOWS_H
-#define CARCHDAEMONWINDOWS_H
+#pragma once
+
+#include "arch/IArchDaemon.h"
+#include "arch/IArchMultithread.h"
+#include "common/stdstring.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "IArchDaemon.h"
-#include "IArchMultithread.h"
-#include "stdstring.h"
-#include
+#include
#include
#define ARCH_DAEMON CArchDaemonWindows
@@ -156,5 +155,3 @@ static const TCHAR* const g_daemonKeyPath[] = {
_T("Service"),
NULL
};
-
-#endif
diff --git a/src/lib/arch/ArchFileWindows.cpp b/src/lib/arch/win32/ArchFileWindows.cpp
similarity index 97%
rename from src/lib/arch/ArchFileWindows.cpp
rename to src/lib/arch/win32/ArchFileWindows.cpp
index c7a506d7..d710ad82 100644
--- a/src/lib/arch/ArchFileWindows.cpp
+++ b/src/lib/arch/win32/ArchFileWindows.cpp
@@ -16,8 +16,10 @@
* along with this program. If not, see .
*/
-#include "CArchFileWindows.h"
-#include
+#include "arch/win32/ArchFileWindows.h"
+
+#define WIN32_LEAN_AND_MEAN
+#include
#include
#include
#include
diff --git a/src/lib/arch/ArchFileWindows.h b/src/lib/arch/win32/ArchFileWindows.h
similarity index 93%
rename from src/lib/arch/ArchFileWindows.h
rename to src/lib/arch/win32/ArchFileWindows.h
index 0f476356..e4f7b326 100644
--- a/src/lib/arch/ArchFileWindows.h
+++ b/src/lib/arch/win32/ArchFileWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHFILEWINDOWS_H
-#define CARCHFILEWINDOWS_H
+#pragma once
-#include "IArchFile.h"
+#include "arch/IArchFile.h"
#define ARCH_FILE CArchFileWindows
@@ -36,5 +35,3 @@ public:
virtual std::string concatPath(const std::string& prefix,
const std::string& suffix);
};
-
-#endif
diff --git a/src/lib/arch/ArchInternetWindows.cpp b/src/lib/arch/win32/ArchInternetWindows.cpp
similarity index 96%
rename from src/lib/arch/ArchInternetWindows.cpp
rename to src/lib/arch/win32/ArchInternetWindows.cpp
index f716fd77..bf35ab2c 100644
--- a/src/lib/arch/ArchInternetWindows.cpp
+++ b/src/lib/arch/win32/ArchInternetWindows.cpp
@@ -15,10 +15,10 @@
* along with this program. If not, see .
*/
-#include "CArchInternetWindows.h"
-#include "CArch.h"
-#include "Version.h"
-#include "XArchWindows.h"
+#include "arch/win32/ArchInternetWindows.h"
+#include "arch/win32/XArchWindows.h"
+#include "arch/Arch.h"
+#include "common/Version.h"
#include
#include
diff --git a/src/lib/arch/ArchInternetWindows.h b/src/lib/arch/win32/ArchInternetWindows.h
similarity index 97%
rename from src/lib/arch/ArchInternetWindows.h
rename to src/lib/arch/win32/ArchInternetWindows.h
index 1f9cfca6..01fc9cbd 100644
--- a/src/lib/arch/ArchInternetWindows.h
+++ b/src/lib/arch/win32/ArchInternetWindows.h
@@ -19,7 +19,7 @@
#define ARCH_INTERNET CArchInternetWindows
-#include "CString.h"
+#include "base/String.h"
class CArchInternetWindows {
public:
diff --git a/src/lib/arch/ArchLogWindows.cpp b/src/lib/arch/win32/ArchLogWindows.cpp
similarity index 96%
rename from src/lib/arch/ArchLogWindows.cpp
rename to src/lib/arch/win32/ArchLogWindows.cpp
index 3f756fde..6919b779 100644
--- a/src/lib/arch/ArchLogWindows.cpp
+++ b/src/lib/arch/win32/ArchLogWindows.cpp
@@ -16,8 +16,9 @@
* along with this program. If not, see .
*/
-#include "CArchLogWindows.h"
-#include "CArchMiscWindows.h"
+#include "arch/win32/ArchLogWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+
#include
//
diff --git a/src/lib/arch/ArchLogWindows.h b/src/lib/arch/win32/ArchLogWindows.h
similarity index 91%
rename from src/lib/arch/ArchLogWindows.h
rename to src/lib/arch/win32/ArchLogWindows.h
index b3f490a8..8fe362c8 100644
--- a/src/lib/arch/ArchLogWindows.h
+++ b/src/lib/arch/win32/ArchLogWindows.h
@@ -16,13 +16,12 @@
* along with this program. If not, see .
*/
-#ifndef CARCHLOGWINDOWS_H
-#define CARCHLOGWINDOWS_H
+#pragma once
+
+#include "arch/IArchLog.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "IArchLog.h"
-#include
+#include
#define ARCH_LOG CArchLogWindows
@@ -41,5 +40,3 @@ public:
private:
HANDLE m_eventLog;
};
-
-#endif
diff --git a/src/lib/arch/ArchMiscWindows.cpp b/src/lib/arch/win32/ArchMiscWindows.cpp
similarity index 98%
rename from src/lib/arch/ArchMiscWindows.cpp
rename to src/lib/arch/win32/ArchMiscWindows.cpp
index 3e61d75b..307f6a90 100644
--- a/src/lib/arch/ArchMiscWindows.cpp
+++ b/src/lib/arch/win32/ArchMiscWindows.cpp
@@ -16,15 +16,15 @@
* along with this program. If not, see .
*/
-#include "CArchMiscWindows.h"
-#include "CArchDaemonWindows.h"
-#include "CLog.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/win32/ArchDaemonWindows.h"
+#include "base/Log.h"
+#include "common/Version.h"
#include
#pragma warning(disable: 4099)
#include
#pragma warning(default: 4099)
-#include "Version.h"
// parent process name for services in Vista
#define SERVICE_LAUNCHER "services.exe"
diff --git a/src/lib/arch/ArchMiscWindows.h b/src/lib/arch/win32/ArchMiscWindows.h
similarity index 97%
rename from src/lib/arch/ArchMiscWindows.h
rename to src/lib/arch/win32/ArchMiscWindows.h
index 8d31cd98..3b97a271 100644
--- a/src/lib/arch/ArchMiscWindows.h
+++ b/src/lib/arch/win32/ArchMiscWindows.h
@@ -16,17 +16,16 @@
* along with this program. If not, see .
*/
-#ifndef CARCHMISCWINDOWS_H
-#define CARCHMISCWINDOWS_H
+#pragma once
+
+#include "common/common.h"
+#include "common/stdstring.h"
+#include "common/stdset.h"
+#include "base/String.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "common.h"
-#include "stdstring.h"
-#include "stdset.h"
-#include
+#include
#include
-#include "CString.h"
//! Miscellaneous win32 functions.
class CArchMiscWindows {
@@ -214,5 +213,3 @@ private:
static HICON s_smallIcon;
static HINSTANCE s_instanceWin32;
};
-
-#endif
diff --git a/src/lib/arch/ArchMultithreadWindows.cpp b/src/lib/arch/win32/ArchMultithreadWindows.cpp
similarity index 99%
rename from src/lib/arch/ArchMultithreadWindows.cpp
rename to src/lib/arch/win32/ArchMultithreadWindows.cpp
index 23006edf..de374b61 100644
--- a/src/lib/arch/ArchMultithreadWindows.cpp
+++ b/src/lib/arch/win32/ArchMultithreadWindows.cpp
@@ -20,9 +20,10 @@
# error multithreading compile option is required
#endif
-#include "CArchMultithreadWindows.h"
-#include "CArch.h"
-#include "XArch.h"
+#include "arch/win32/ArchMultithreadWindows.h"
+#include "arch/Arch.h"
+#include "arch/XArch.h"
+
#include
//
diff --git a/src/lib/arch/ArchMultithreadWindows.h b/src/lib/arch/win32/ArchMultithreadWindows.h
similarity index 95%
rename from src/lib/arch/ArchMultithreadWindows.h
rename to src/lib/arch/win32/ArchMultithreadWindows.h
index b7980c76..35bf7458 100644
--- a/src/lib/arch/ArchMultithreadWindows.h
+++ b/src/lib/arch/win32/ArchMultithreadWindows.h
@@ -16,14 +16,13 @@
* along with this program. If not, see .
*/
-#ifndef CARCHMULTITHREADWINDOWS_H
-#define CARCHMULTITHREADWINDOWS_H
+#pragma once
+
+#include "arch/IArchMultithread.h"
+#include "common/stdlist.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "IArchMultithread.h"
-#include "stdlist.h"
-#include
+#include
#define ARCH_MULTITHREAD CArchMultithreadWindows
@@ -115,5 +114,3 @@ private:
SignalFunc m_signalFunc[kNUM_SIGNALS];
void* m_signalUserData[kNUM_SIGNALS];
};
-
-#endif
diff --git a/src/lib/arch/ArchNetworkWinsock.cpp b/src/lib/arch/win32/ArchNetworkWinsock.cpp
similarity index 99%
rename from src/lib/arch/ArchNetworkWinsock.cpp
rename to src/lib/arch/win32/ArchNetworkWinsock.cpp
index ee23219a..0cdca1e9 100644
--- a/src/lib/arch/ArchNetworkWinsock.cpp
+++ b/src/lib/arch/win32/ArchNetworkWinsock.cpp
@@ -16,12 +16,12 @@
* along with this program. If not, see .
*/
+#include "arch/win32/ArchNetworkWinsock.h"
+#include "arch/win32/ArchMultithreadWindows.h"
+#include "arch/win32/XArchWindows.h"
+#include "arch/IArchMultithread.h"
+#include "arch/Arch.h"
-#include "CArchNetworkWinsock.h"
-#include "CArch.h"
-#include "CArchMultithreadWindows.h"
-#include "IArchMultithread.h"
-#include "XArchWindows.h"
#include
static const int s_family[] = {
diff --git a/src/lib/arch/ArchNetworkWinsock.h b/src/lib/arch/win32/ArchNetworkWinsock.h
similarity index 95%
rename from src/lib/arch/ArchNetworkWinsock.h
rename to src/lib/arch/win32/ArchNetworkWinsock.h
index e0066363..8866304b 100644
--- a/src/lib/arch/ArchNetworkWinsock.h
+++ b/src/lib/arch/win32/ArchNetworkWinsock.h
@@ -16,18 +16,17 @@
* along with this program. If not, see .
*/
-#ifndef CARCHNETWORKWINSOCK_H
-#define CARCHNETWORKWINSOCK_H
-
-#define WIN32_LEAN_AND_MEAN
+#pragma once
// declare no functions in winsock2
#define INCL_WINSOCK_API_PROTOTYPES 0
#define INCL_WINSOCK_API_TYPEDEFS 0
-#include "IArchNetwork.h"
-#include "IArchMultithread.h"
-#include
+#include "arch/IArchNetwork.h"
+#include "arch/IArchMultithread.h"
+
+#define WIN32_LEAN_AND_MEAN
+#include
#include
#include
@@ -105,5 +104,3 @@ private:
CArchMutex m_mutex;
CEventList m_unblockEvents;
};
-
-#endif
diff --git a/src/lib/arch/ArchPluginWindows.cpp b/src/lib/arch/win32/ArchPluginWindows.cpp
similarity index 94%
rename from src/lib/arch/ArchPluginWindows.cpp
rename to src/lib/arch/win32/ArchPluginWindows.cpp
index a691e5e9..b4dd7b5c 100644
--- a/src/lib/arch/ArchPluginWindows.cpp
+++ b/src/lib/arch/win32/ArchPluginWindows.cpp
@@ -16,12 +16,12 @@
* along with this program. If not, see .
*/
-#include "CArchPluginWindows.h"
-#include "XArchWindows.h"
-#include "CLog.h"
-#include "IEventQueue.h"
-#include "CEvent.h"
-#include "CScreen.h"
+#include "arch/win32/ArchPluginWindows.h"
+#include "arch/win32/XArchWindows.h"
+#include "base/Log.h"
+#include "base/IEventQueue.h"
+#include "base/Event.h"
+#include "synergy/Screen.h"
#define WIN32_LEAN_AND_MEAN
#include
diff --git a/src/lib/arch/ArchPluginWindows.h b/src/lib/arch/win32/ArchPluginWindows.h
similarity index 96%
rename from src/lib/arch/ArchPluginWindows.h
rename to src/lib/arch/win32/ArchPluginWindows.h
index 13169cd5..dace6b36 100644
--- a/src/lib/arch/ArchPluginWindows.h
+++ b/src/lib/arch/win32/ArchPluginWindows.h
@@ -18,8 +18,9 @@
#pragma once
-#include "IArchPlugin.h"
-#include "CString.h"
+#include "arch/IArchPlugin.h"
+#include "base/String.h"
+
#include
#define ARCH_PLUGIN CArchPluginWindows
diff --git a/src/lib/arch/ArchSleepWindows.cpp b/src/lib/arch/win32/ArchSleepWindows.cpp
similarity index 93%
rename from src/lib/arch/ArchSleepWindows.cpp
rename to src/lib/arch/win32/ArchSleepWindows.cpp
index dce14e72..d299cf15 100644
--- a/src/lib/arch/ArchSleepWindows.cpp
+++ b/src/lib/arch/win32/ArchSleepWindows.cpp
@@ -16,9 +16,9 @@
* along with this program. If not, see .
*/
-#include "CArchSleepWindows.h"
-#include "CArch.h"
-#include "CArchMultithreadWindows.h"
+#include "arch/win32/ArchSleepWindows.h"
+#include "arch/Arch.h"
+#include "arch/win32/ArchMultithreadWindows.h"
//
// CArchSleepWindows
diff --git a/src/lib/arch/ArchSleepWindows.h b/src/lib/arch/win32/ArchSleepWindows.h
similarity index 91%
rename from src/lib/arch/ArchSleepWindows.h
rename to src/lib/arch/win32/ArchSleepWindows.h
index 4c68f29c..f4004947 100644
--- a/src/lib/arch/ArchSleepWindows.h
+++ b/src/lib/arch/win32/ArchSleepWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSLEEPWINDOWS_H
-#define CARCHSLEEPWINDOWS_H
+#pragma once
-#include "IArchSleep.h"
+#include "arch/IArchSleep.h"
#define ARCH_SLEEP CArchSleepWindows
@@ -32,5 +31,3 @@ public:
// IArchSleep overrides
virtual void sleep(double timeout);
};
-
-#endif
diff --git a/src/lib/arch/ArchStringWindows.cpp b/src/lib/arch/win32/ArchStringWindows.cpp
similarity index 89%
rename from src/lib/arch/ArchStringWindows.cpp
rename to src/lib/arch/win32/ArchStringWindows.cpp
index 981c0126..e8bd168d 100644
--- a/src/lib/arch/ArchStringWindows.cpp
+++ b/src/lib/arch/win32/ArchStringWindows.cpp
@@ -16,20 +16,20 @@
* along with this program. If not, see .
*/
-#define WIN32_LEAN_AND_MEAN
+#include "arch/win32/ArchStringWindows.h"
-#include "CArchStringWindows.h"
-#include
+#define WIN32_LEAN_AND_MEAN
+#include
#include
//
// CArchStringWindows
//
-#include "CMultibyte.h"
+#include "arch/multibyte.h"
#define HAVE_VSNPRINTF 1
#define ARCH_VSNPRINTF _vsnprintf
-#include "vsnprintf.h"
+#include "arch/vsnprintf.h"
CArchStringWindows::CArchStringWindows()
{
diff --git a/src/lib/arch/ArchStringWindows.h b/src/lib/arch/win32/ArchStringWindows.h
similarity index 91%
rename from src/lib/arch/ArchStringWindows.h
rename to src/lib/arch/win32/ArchStringWindows.h
index 6d068691..13c11539 100644
--- a/src/lib/arch/ArchStringWindows.h
+++ b/src/lib/arch/win32/ArchStringWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSTRINGWINDOWS_H
-#define CARCHSTRINGWINDOWS_H
+#pragma once
-#include "IArchString.h"
+#include "arch/IArchString.h"
#define ARCH_STRING CArchStringWindows
@@ -33,5 +32,3 @@ public:
virtual EWideCharEncoding
getWideCharEncoding();
};
-
-#endif
diff --git a/src/lib/arch/ArchSystemWindows.cpp b/src/lib/arch/win32/ArchSystemWindows.cpp
similarity index 97%
rename from src/lib/arch/ArchSystemWindows.cpp
rename to src/lib/arch/win32/ArchSystemWindows.cpp
index c7771719..0f739b86 100644
--- a/src/lib/arch/ArchSystemWindows.cpp
+++ b/src/lib/arch/win32/ArchSystemWindows.cpp
@@ -16,9 +16,9 @@
* along with this program. If not, see .
*/
-#include "CArchSystemWindows.h"
-#include "CArchMiscWindows.h"
-#include "XArchWindows.h"
+#include "arch/win32/ArchSystemWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/win32/XArchWindows.h"
#include "tchar.h"
#include
diff --git a/src/lib/arch/ArchSystemWindows.h b/src/lib/arch/win32/ArchSystemWindows.h
similarity index 93%
rename from src/lib/arch/ArchSystemWindows.h
rename to src/lib/arch/win32/ArchSystemWindows.h
index 7bd0a0a1..324165a5 100644
--- a/src/lib/arch/ArchSystemWindows.h
+++ b/src/lib/arch/win32/ArchSystemWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHSYSTEMWINDOWS_H
-#define CARCHSYSTEMWINDOWS_H
+#pragma once
-#include "IArchSystem.h"
+#include "arch/IArchSystem.h"
#define ARCH_SYSTEM CArchSystemWindows
@@ -37,5 +36,3 @@ public:
bool isWOW64() const;
};
-
-#endif
diff --git a/src/lib/arch/ArchTaskBarWindows.cpp b/src/lib/arch/win32/ArchTaskBarWindows.cpp
similarity index 98%
rename from src/lib/arch/ArchTaskBarWindows.cpp
rename to src/lib/arch/win32/ArchTaskBarWindows.cpp
index 2ff67ad8..9c44d985 100644
--- a/src/lib/arch/ArchTaskBarWindows.cpp
+++ b/src/lib/arch/win32/ArchTaskBarWindows.cpp
@@ -16,14 +16,15 @@
* along with this program. If not, see .
*/
-#include "CArchTaskBarWindows.h"
-#include "CArchMiscWindows.h"
-#include "IArchTaskBarReceiver.h"
-#include "CArch.h"
-#include "XArch.h"
+#include "arch/win32/ArchTaskBarWindows.h"
+#include "arch/win32/ArchMiscWindows.h"
+#include "arch/IArchTaskBarReceiver.h"
+#include "arch/Arch.h"
+#include "arch/XArch.h"
+#include "synergy/win32/AppUtilWindows.h"
+
#include
#include
-#include "CAppUtilWindows.h"
static const UINT kAddReceiver = WM_USER + 10;
static const UINT kRemoveReceiver = WM_USER + 11;
diff --git a/src/lib/arch/ArchTaskBarWindows.h b/src/lib/arch/win32/ArchTaskBarWindows.h
similarity index 93%
rename from src/lib/arch/ArchTaskBarWindows.h
rename to src/lib/arch/win32/ArchTaskBarWindows.h
index 2b21c84a..8fa9e406 100644
--- a/src/lib/arch/ArchTaskBarWindows.h
+++ b/src/lib/arch/win32/ArchTaskBarWindows.h
@@ -16,16 +16,15 @@
* along with this program. If not, see .
*/
-#ifndef CARCHTASKBARWINDOWS_H
-#define CARCHTASKBARWINDOWS_H
+#pragma once
+
+#include "arch/IArchTaskBar.h"
+#include "arch/IArchMultithread.h"
+#include "common/stdmap.h"
+#include "common/stdvector.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "IArchTaskBar.h"
-#include "IArchMultithread.h"
-#include "stdmap.h"
-#include "stdvector.h"
-#include
+#include
#define ARCH_TASKBAR CArchTaskBarWindows
@@ -113,5 +112,3 @@ private:
CDialogs m_dialogs;
CDialogs m_addedDialogs;
};
-
-#endif
diff --git a/src/lib/arch/ArchTaskBarXWindows.cpp b/src/lib/arch/win32/ArchTaskBarXWindows.cpp
similarity index 96%
rename from src/lib/arch/ArchTaskBarXWindows.cpp
rename to src/lib/arch/win32/ArchTaskBarXWindows.cpp
index bba1f835..523bfbb8 100644
--- a/src/lib/arch/ArchTaskBarXWindows.cpp
+++ b/src/lib/arch/win32/ArchTaskBarXWindows.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CArchTaskBarXWindows.h"
+#include "arch/win32/ArchTaskBarXWindows.h"
//
// CArchTaskBarXWindows
diff --git a/src/lib/arch/ArchTaskBarXWindows.h b/src/lib/arch/win32/ArchTaskBarXWindows.h
similarity index 92%
rename from src/lib/arch/ArchTaskBarXWindows.h
rename to src/lib/arch/win32/ArchTaskBarXWindows.h
index d80e1fe1..e593c110 100644
--- a/src/lib/arch/ArchTaskBarXWindows.h
+++ b/src/lib/arch/win32/ArchTaskBarXWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHTASKBARXWINDOWS_H
-#define CARCHTASKBARXWINDOWS_H
+#pragma once
-#include "IArchTaskBar.h"
+#include "arch/IArchTaskBar.h"
#define ARCH_TASKBAR CArchTaskBarXWindows
@@ -34,5 +33,3 @@ public:
virtual void removeReceiver(IArchTaskBarReceiver*);
virtual void updateReceiver(IArchTaskBarReceiver*);
};
-
-#endif
diff --git a/src/lib/arch/ArchTimeWindows.cpp b/src/lib/arch/win32/ArchTimeWindows.cpp
similarity index 75%
rename from src/lib/arch/ArchTimeWindows.cpp
rename to src/lib/arch/win32/ArchTimeWindows.cpp
index 9899d2a4..3fe6f9d5 100644
--- a/src/lib/arch/ArchTimeWindows.cpp
+++ b/src/lib/arch/win32/ArchTimeWindows.cpp
@@ -16,23 +16,22 @@
* along with this program. If not, see .
*/
-// avoid getting a lot a crap from mmsystem.h that we don't need
-#define MMNODRV // Installable driver support
-#define MMNOSOUND // Sound support
-#define MMNOWAVE // Waveform support
-#define MMNOMIDI // MIDI support
-#define MMNOAUX // Auxiliary audio support
-#define MMNOMIXER // Mixer support
-#define MMNOJOY // Joystick support
-#define MMNOMCI // MCI support
-#define MMNOMMIO // Multimedia file I/O support
-#define MMNOMMSYSTEM // General MMSYSTEM functions
+#include "arch/win32/ArchTimeWindows.h"
#define WIN32_LEAN_AND_MEAN
+#include
-#include "CArchTimeWindows.h"
-#include
-#include
+#define MMNODRV // Disable: Installable driver support
+#define MMNOSOUND // Disable: Sound support
+#define MMNOWAVE // Disable: Waveform support
+#define MMNOMIDI // Disable: MIDI support
+#define MMNOAUX // Disable: Auxiliary audio support
+#define MMNOMIXER // Disable: Mixer support
+#define MMNOJOY // Disable: Joystick support
+#define MMNOMCI // Disable: MCI support
+#define MMNOMMIO // Disable: Multimedia file I/O support
+#define MMNOMMSYSTEM // Disable: General MMSYSTEM functions
+#include
typedef WINMMAPI DWORD (WINAPI *PTimeGetTime)(void);
diff --git a/src/lib/arch/ArchTimeWindows.h b/src/lib/arch/win32/ArchTimeWindows.h
similarity index 91%
rename from src/lib/arch/ArchTimeWindows.h
rename to src/lib/arch/win32/ArchTimeWindows.h
index defcba2d..2b98d237 100644
--- a/src/lib/arch/ArchTimeWindows.h
+++ b/src/lib/arch/win32/ArchTimeWindows.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CARCHTIMEWINDOWS_H
-#define CARCHTIMEWINDOWS_H
+#pragma once
-#include "IArchTime.h"
+#include "arch/IArchTime.h"
#define ARCH_TIME CArchTimeWindows
@@ -32,5 +31,3 @@ public:
// IArchTime overrides
virtual double time();
};
-
-#endif
diff --git a/src/lib/arch/XArchWindows.cpp b/src/lib/arch/win32/XArchWindows.cpp
similarity index 98%
rename from src/lib/arch/XArchWindows.cpp
rename to src/lib/arch/win32/XArchWindows.cpp
index 2d6c5885..e37e1a5a 100644
--- a/src/lib/arch/XArchWindows.cpp
+++ b/src/lib/arch/win32/XArchWindows.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "XArchWindows.h"
-#include "CArchNetworkWinsock.h"
+#include "arch/win32/XArchWindows.h"
+#include "arch/win32/ArchNetworkWinsock.h"
//
// XArchEvalWindows
diff --git a/src/lib/arch/XArchWindows.h b/src/lib/arch/win32/XArchWindows.h
similarity index 93%
rename from src/lib/arch/XArchWindows.h
rename to src/lib/arch/win32/XArchWindows.h
index c85765ea..ca92c15b 100644
--- a/src/lib/arch/XArchWindows.h
+++ b/src/lib/arch/win32/XArchWindows.h
@@ -16,13 +16,12 @@
* along with this program. If not, see .
*/
-#ifndef XARCHWINDOWS_H
-#define XARCHWINDOWS_H
+#pragma once
+
+#include "arch/XArch.h"
#define WIN32_LEAN_AND_MEAN
-
-#include "XArch.h"
-#include
+#include
//! Lazy error message string evaluation for windows
class XArchEvalWindows : public XArchEval {
@@ -52,5 +51,3 @@ public:
private:
int m_errno;
};
-
-#endif
diff --git a/src/lib/base/CMakeLists.txt b/src/lib/base/CMakeLists.txt
index ba708664..210c5dde 100644
--- a/src/lib/base/CMakeLists.txt
+++ b/src/lib/base/CMakeLists.txt
@@ -22,16 +22,12 @@ if (SYNERGY_ADD_HEADERS)
endif()
include_directories(
- ../arch
- ../common
- ../mt
- ../synergy
+ ../
)
if (UNIX)
include_directories(
../../..
- ../base
)
endif()
diff --git a/src/lib/base/ELevel.h b/src/lib/base/ELevel.h
index 49ec9638..de311312 100644
--- a/src/lib/base/ELevel.h
+++ b/src/lib/base/ELevel.h
@@ -16,8 +16,7 @@
* along with this program. If not, see .
*/
-#ifndef ELEVEL_H
-#define ELEVEL_H
+#pragma once
//! Log levels
/*!
@@ -37,5 +36,3 @@ enum ELevel {
kDEBUG4, //!< For verbosity +4 debugging messages
kDEBUG5 //!< For verbosity +5 debugging messages
};
-
-#endif
diff --git a/src/lib/base/Event.cpp b/src/lib/base/Event.cpp
index ec2df657..7e659b65 100644
--- a/src/lib/base/Event.cpp
+++ b/src/lib/base/Event.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "CEvent.h"
-#include "CEventQueue.h"
+#include "base/Event.h"
+#include "base/EventQueue.h"
//
// CEvent
diff --git a/src/lib/base/Event.h b/src/lib/base/Event.h
index e539330c..fd9c48c9 100644
--- a/src/lib/base/Event.h
+++ b/src/lib/base/Event.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef CEVENT_H
-#define CEVENT_H
+#pragma once
-#include "BasicTypes.h"
-#include "stdmap.h"
+#include "common/basic_types.h"
+#include "common/stdmap.h"
class CEventData {
public:
@@ -125,5 +124,3 @@ private:
Flags m_flags;
CEventData* m_dataObject;
};
-
-#endif
diff --git a/src/lib/base/EventQueue.cpp b/src/lib/base/EventQueue.cpp
index cb2a50c0..2afa2fb0 100644
--- a/src/lib/base/EventQueue.cpp
+++ b/src/lib/base/EventQueue.cpp
@@ -16,13 +16,14 @@
* along with this program. If not, see .
*/
-#include "CEventQueue.h"
-#include "CLog.h"
-#include "CSimpleEventQueueBuffer.h"
-#include "CStopwatch.h"
-#include "IEventJob.h"
-#include "CArch.h"
-#include "CEventTypes.h"
+#include "base/EventQueue.h"
+
+#include "arch/Arch.h"
+#include "base/Log.h"
+#include "base/SimpleEventQueueBuffer.h"
+#include "base/Stopwatch.h"
+#include "base/IEventJob.h"
+#include "base/EventTypes.h"
EVENT_TYPE_ACCESSOR(CClient)
EVENT_TYPE_ACCESSOR(IStream)
diff --git a/src/lib/base/EventQueue.h b/src/lib/base/EventQueue.h
index fbe5a74c..3509d9d0 100644
--- a/src/lib/base/EventQueue.h
+++ b/src/lib/base/EventQueue.h
@@ -16,16 +16,15 @@
* along with this program. If not, see .
*/
-#ifndef CEVENTQUEUE_H
-#define CEVENTQUEUE_H
+#pragma once
-#include "IEventQueue.h"
-#include "CEvent.h"
-#include "CPriorityQueue.h"
-#include "CStopwatch.h"
-#include "IArchMultithread.h"
-#include "stdmap.h"
-#include "stdset.h"
+#include "base/IEventQueue.h"
+#include "base/Event.h"
+#include "base/PriorityQueue.h"
+#include "base/Stopwatch.h"
+#include "arch/IArchMultithread.h"
+#include "common/stdmap.h"
+#include "common/stdset.h"
//! Event queue
/*!
@@ -182,5 +181,3 @@ CEventQueue::for##type_() { \
} \
return *m_typesFor##type_; \
}
-
-#endif
diff --git a/src/lib/base/EventTypes.cpp b/src/lib/base/EventTypes.cpp
index 1e72b2ab..312b3f9c 100644
--- a/src/lib/base/EventTypes.cpp
+++ b/src/lib/base/EventTypes.cpp
@@ -15,8 +15,9 @@
* along with this program. If not, see .
*/
-#include "CEventTypes.h"
-#include "IEventQueue.h"
+#include "base/EventTypes.h"
+#include "base/IEventQueue.h"
+
#include
#include
diff --git a/src/lib/base/EventTypes.h b/src/lib/base/EventTypes.h
index a8748508..5c4d73bc 100644
--- a/src/lib/base/EventTypes.h
+++ b/src/lib/base/EventTypes.h
@@ -17,7 +17,7 @@
#pragma once
-#include "CEvent.h"
+#include "base/Event.h"
class IEventQueue;
diff --git a/src/lib/base/FunctionEventJob.cpp b/src/lib/base/FunctionEventJob.cpp
index 21f0e308..923990a4 100644
--- a/src/lib/base/FunctionEventJob.cpp
+++ b/src/lib/base/FunctionEventJob.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CFunctionEventJob.h"
+#include "base/FunctionEventJob.h"
//
// CFunctionEventJob
diff --git a/src/lib/base/FunctionEventJob.h b/src/lib/base/FunctionEventJob.h
index 2c3f9a6e..4612bf05 100644
--- a/src/lib/base/FunctionEventJob.h
+++ b/src/lib/base/FunctionEventJob.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CFUNCTIONEVENTJOB_H
-#define CFUNCTIONEVENTJOB_H
+#pragma once
-#include "IEventJob.h"
+#include "base/IEventJob.h"
//! Use a function as an event job
/*!
@@ -38,5 +37,3 @@ private:
void (*m_func)(const CEvent&, void*);
void* m_arg;
};
-
-#endif
diff --git a/src/lib/base/FunctionJob.cpp b/src/lib/base/FunctionJob.cpp
index 1296133b..7190c2e5 100644
--- a/src/lib/base/FunctionJob.cpp
+++ b/src/lib/base/FunctionJob.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "CFunctionJob.h"
+#include "base/FunctionJob.h"
//
// CFunctionJob
diff --git a/src/lib/base/FunctionJob.h b/src/lib/base/FunctionJob.h
index dcdbf5b0..3fa1bf38 100644
--- a/src/lib/base/FunctionJob.h
+++ b/src/lib/base/FunctionJob.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CFUNCTIONJOB_H
-#define CFUNCTIONJOB_H
+#pragma once
-#include "IJob.h"
+#include "base/IJob.h"
//! Use a function as a job
/*!
@@ -38,5 +37,3 @@ private:
void (*m_func)(void*);
void* m_arg;
};
-
-#endif
diff --git a/src/lib/base/IEventJob.h b/src/lib/base/IEventJob.h
index 6dafbb1a..0a3adaf4 100644
--- a/src/lib/base/IEventJob.h
+++ b/src/lib/base/IEventJob.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IEVENTJOB_H
-#define IEVENTJOB_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
class CEvent;
@@ -32,5 +31,3 @@ public:
//! Run the job
virtual void run(const CEvent&) = 0;
};
-
-#endif
diff --git a/src/lib/base/IEventQueue.h b/src/lib/base/IEventQueue.h
index dfdd7eb9..41d870ff 100644
--- a/src/lib/base/IEventQueue.h
+++ b/src/lib/base/IEventQueue.h
@@ -16,12 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef IEVENTQUEUE_H
-#define IEVENTQUEUE_H
+#pragma once
-#include "IInterface.h"
-#include "CEvent.h"
-#include "CString.h"
+#include "common/IInterface.h"
+#include "base/Event.h"
+#include "base/String.h"
class IEventJob;
class IEventQueueBuffer;
@@ -239,5 +238,3 @@ public:
virtual IPrimaryScreenEvents& forIPrimaryScreen() = 0;
virtual IScreenEvents& forIScreen() = 0;
};
-
-#endif
diff --git a/src/lib/base/IEventQueueBuffer.h b/src/lib/base/IEventQueueBuffer.h
index 8e3c5224..d67c8bce 100644
--- a/src/lib/base/IEventQueueBuffer.h
+++ b/src/lib/base/IEventQueueBuffer.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef IEVENTQUEUEBUFFER_H
-#define IEVENTQUEUEBUFFER_H
+#pragma once
-#include "IInterface.h"
-#include "BasicTypes.h"
+#include "common/IInterface.h"
+#include "common/basic_types.h"
class CEvent;
class CEventQueueTimer;
@@ -100,5 +99,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/base/IJob.h b/src/lib/base/IJob.h
index c77397bd..917b9e7a 100644
--- a/src/lib/base/IJob.h
+++ b/src/lib/base/IJob.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IJOB_H
-#define IJOB_H
+#pragma once
-#include "IInterface.h"
+#include "common/IInterface.h"
//! Job interface
/*!
@@ -30,5 +29,3 @@ public:
//! Run the job
virtual void run() = 0;
};
-
-#endif
diff --git a/src/lib/base/ILogOutputter.h b/src/lib/base/ILogOutputter.h
index a5590e7f..f6adbd99 100644
--- a/src/lib/base/ILogOutputter.h
+++ b/src/lib/base/ILogOutputter.h
@@ -16,12 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef ILOGOUTPUTTER_H
-#define ILOGOUTPUTTER_H
+#pragma once
-#include "IInterface.h"
-#include "CLog.h"
-#include "ELevel.h"
+#include "base/Log.h"
+#include "base/ELevel.h"
+#include "common/IInterface.h"
//! Outputter interface
/*!
@@ -68,5 +67,3 @@ public:
//@}
};
-
-#endif
diff --git a/src/lib/base/Log.cpp b/src/lib/base/Log.cpp
index e2974ea5..c666e516 100644
--- a/src/lib/base/Log.cpp
+++ b/src/lib/base/Log.cpp
@@ -16,13 +16,14 @@
* along with this program. If not, see .
*/
-#include "CLog.h"
-#include "CString.h"
-#include "CStringUtil.h"
-#include "LogOutputters.h"
-#include "CArch.h"
-#include "Version.h"
-#include "XArch.h"
+#include "arch/Arch.h"
+#include "arch/XArch.h"
+#include "base/Log.h"
+#include "base/String.h"
+#include "base/StringUtil.h"
+#include "base/log_outputters.h"
+#include "common/Version.h"
+
#include
#include
#include
diff --git a/src/lib/base/Log.h b/src/lib/base/Log.h
index 1eb8c82b..bbcc742e 100644
--- a/src/lib/base/Log.h
+++ b/src/lib/base/Log.h
@@ -16,14 +16,14 @@
* along with this program. If not, see .
*/
-#ifndef CLOG_H
-#define CLOG_H
+#pragma once
+
+#include "arch/IArchMultithread.h"
+#include "arch/Arch.h"
+#include "common/common.h"
+#include "common/stdlist.h"
-#include "common.h"
-#include "IArchMultithread.h"
-#include "stdlist.h"
#include
-#include "CArch.h"
#define CLOG (CLog::getInstance())
@@ -209,5 +209,3 @@ otherwise it expands to a call that doesn't.
#define CLOG_DEBUG3 CLOG_TRACE "%z\070"
#define CLOG_DEBUG4 CLOG_TRACE "%z\071" // char is '9'
#define CLOG_DEBUG5 CLOG_TRACE "%z\072" // char is ':'
-
-#endif
diff --git a/src/lib/base/PriorityQueue.h b/src/lib/base/PriorityQueue.h
index 23f1c59a..9cefd49a 100644
--- a/src/lib/base/PriorityQueue.h
+++ b/src/lib/base/PriorityQueue.h
@@ -16,10 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef CPRIORITYQUEUE_H
-#define CPRIORITYQUEUE_H
+#pragma once
+
+#include "common/stdvector.h"
-#include "stdvector.h"
#include
#include
@@ -136,5 +136,3 @@ private:
Container c;
Compare comp;
};
-
-#endif
diff --git a/src/lib/base/SimpleEventQueueBuffer.cpp b/src/lib/base/SimpleEventQueueBuffer.cpp
index 5560ef99..407f8c68 100644
--- a/src/lib/base/SimpleEventQueueBuffer.cpp
+++ b/src/lib/base/SimpleEventQueueBuffer.cpp
@@ -16,9 +16,9 @@
* along with this program. If not, see .
*/
-#include "CSimpleEventQueueBuffer.h"
-#include "CStopwatch.h"
-#include "CArch.h"
+#include "base/SimpleEventQueueBuffer.h"
+#include "base/Stopwatch.h"
+#include "arch/Arch.h"
//
// CSimpleEventQueueBuffer
diff --git a/src/lib/base/SimpleEventQueueBuffer.h b/src/lib/base/SimpleEventQueueBuffer.h
index a5aa9ff8..5b28db9f 100644
--- a/src/lib/base/SimpleEventQueueBuffer.h
+++ b/src/lib/base/SimpleEventQueueBuffer.h
@@ -16,12 +16,11 @@
* along with this program. If not, see .
*/
-#ifndef CSIMPLEEVENTQUEUEBUFFER_H
-#define CSIMPLEEVENTQUEUEBUFFER_H
+#pragma once
-#include "IEventQueueBuffer.h"
-#include "IArchMultithread.h"
-#include "stddeque.h"
+#include "base/IEventQueueBuffer.h"
+#include "arch/IArchMultithread.h"
+#include "common/stddeque.h"
//! In-memory event queue buffer
/*!
@@ -57,5 +56,3 @@ public:
CEventQueueTimer() { }
virtual ~CEventQueueTimer() { }
};
-
-#endif
diff --git a/src/lib/base/Stopwatch.cpp b/src/lib/base/Stopwatch.cpp
index f76f8088..43462a57 100644
--- a/src/lib/base/Stopwatch.cpp
+++ b/src/lib/base/Stopwatch.cpp
@@ -16,8 +16,8 @@
* along with this program. If not, see .
*/
-#include "CStopwatch.h"
-#include "CArch.h"
+#include "base/Stopwatch.h"
+#include "arch/Arch.h"
//
// CStopwatch
diff --git a/src/lib/base/Stopwatch.h b/src/lib/base/Stopwatch.h
index c993e215..fa165630 100644
--- a/src/lib/base/Stopwatch.h
+++ b/src/lib/base/Stopwatch.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef CSTOPWATCH_H
-#define CSTOPWATCH_H
+#pragma once
-#include "common.h"
+#include "common/common.h"
//! A timer class
/*!
@@ -108,5 +107,3 @@ private:
bool m_triggered;
bool m_stopped;
};
-
-#endif
diff --git a/src/lib/base/String.h b/src/lib/base/String.h
index f27db1e2..eae7c2fc 100644
--- a/src/lib/base/String.h
+++ b/src/lib/base/String.h
@@ -16,14 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef CSTRING_H
-#define CSTRING_H
+#pragma once
-#include "common.h"
-#include "stdstring.h"
+#include "common/common.h"
+#include "common/stdstring.h"
// use standard C++ string class for our string class
typedef std::string CString;
-
-#endif
-
diff --git a/src/lib/base/StringUtil.cpp b/src/lib/base/StringUtil.cpp
index 3119dd26..56868da8 100644
--- a/src/lib/base/StringUtil.cpp
+++ b/src/lib/base/StringUtil.cpp
@@ -16,10 +16,11 @@
* along with this program. If not, see .
*/
-#include "CStringUtil.h"
-#include "CArch.h"
-#include "common.h"
-#include "stdvector.h"
+#include "base/StringUtil.h"
+#include "arch/Arch.h"
+#include "common/common.h"
+#include "common/stdvector.h"
+
#include
#include
#include
diff --git a/src/lib/base/StringUtil.h b/src/lib/base/StringUtil.h
index d724d7b2..cf1213a8 100644
--- a/src/lib/base/StringUtil.h
+++ b/src/lib/base/StringUtil.h
@@ -16,10 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef CSTRINGUTIL_H
-#define CSTRINGUTIL_H
+#pragma once
+
+#include "base/String.h"
-#include "CString.h"
#include
//! String utilities
@@ -76,6 +76,3 @@ public:
const CString::value_type& b);
};
};
-
-#endif
-
diff --git a/src/lib/base/TMethodEventJob.h b/src/lib/base/TMethodEventJob.h
index 0780c36c..83238f1d 100644
--- a/src/lib/base/TMethodEventJob.h
+++ b/src/lib/base/TMethodEventJob.h
@@ -16,8 +16,7 @@
* along with this program. If not, see .
*/
-#ifndef CMETHODEVENTJOB_H
-#define CMETHODEVENTJOB_H
+#pragma once
#include "IEventJob.h"
@@ -70,5 +69,3 @@ TMethodEventJob::run(const CEvent& event)
(m_object->*m_method)(event, m_arg);
}
}
-
-#endif
diff --git a/src/lib/base/TMethodJob.h b/src/lib/base/TMethodJob.h
index 55f5b999..8c8bad30 100644
--- a/src/lib/base/TMethodJob.h
+++ b/src/lib/base/TMethodJob.h
@@ -16,8 +16,7 @@
* along with this program. If not, see .
*/
-#ifndef CMETHODJOB_H
-#define CMETHODJOB_H
+#pragma once
#include "IJob.h"
@@ -67,5 +66,3 @@ TMethodJob::run()
(m_object->*m_method)(m_arg);
}
}
-
-#endif
diff --git a/src/lib/base/Unicode.cpp b/src/lib/base/Unicode.cpp
index 123b8d66..dabf3adb 100644
--- a/src/lib/base/Unicode.cpp
+++ b/src/lib/base/Unicode.cpp
@@ -16,8 +16,9 @@
* along with this program. If not, see .
*/
-#include "CUnicode.h"
-#include "CArch.h"
+#include "arch/Arch.h"
+#include "base/Unicode.h"
+
#include
//
diff --git a/src/lib/base/Unicode.h b/src/lib/base/Unicode.h
index a5efa584..83ef1a98 100644
--- a/src/lib/base/Unicode.h
+++ b/src/lib/base/Unicode.h
@@ -16,11 +16,10 @@
* along with this program. If not, see .
*/
-#ifndef CUNICODE_H
-#define CUNICODE_H
+#pragma once
-#include "CString.h"
-#include "BasicTypes.h"
+#include "base/String.h"
+#include "common/basic_types.h"
//! Unicode utility functions
/*!
@@ -143,5 +142,3 @@ private:
static UInt32 s_invalid;
static UInt32 s_replacement;
};
-
-#endif
diff --git a/src/lib/base/XBase.cpp b/src/lib/base/XBase.cpp
index ac54b61a..e873d56e 100644
--- a/src/lib/base/XBase.cpp
+++ b/src/lib/base/XBase.cpp
@@ -16,8 +16,9 @@
* along with this program. If not, see .
*/
-#include "XBase.h"
-#include "CStringUtil.h"
+#include "base/XBase.h"
+#include "base/StringUtil.h"
+
#include
#include
diff --git a/src/lib/base/XBase.h b/src/lib/base/XBase.h
index 490ada79..b6b5f23f 100644
--- a/src/lib/base/XBase.h
+++ b/src/lib/base/XBase.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef XBASE_H
-#define XBASE_H
+#pragma once
-#include "CString.h"
+#include "base/String.h"
//! Exception base class
/*!
@@ -121,5 +120,3 @@ private: \
mutable EState m_state; \
mutable std::string m_formatted; \
}
-
-#endif
diff --git a/src/lib/base/LogOutputters.cpp b/src/lib/base/log_outputters.cpp
similarity index 98%
rename from src/lib/base/LogOutputters.cpp
rename to src/lib/base/log_outputters.cpp
index 7b658d9c..ee46ab74 100644
--- a/src/lib/base/LogOutputters.cpp
+++ b/src/lib/base/log_outputters.cpp
@@ -16,11 +16,12 @@
* along with this program. If not, see .
*/
-#include "LogOutputters.h"
-#include "CArch.h"
-#include "TMethodJob.h"
+#include "base/log_outputters.h"
+#include "base/TMethodJob.h"
+#include "arch/Arch.h"
#include
+
//
// CStopLogOutputter
//
diff --git a/src/lib/base/LogOutputters.h b/src/lib/base/log_outputters.h
similarity index 96%
rename from src/lib/base/LogOutputters.h
rename to src/lib/base/log_outputters.h
index d7a08189..57b927b1 100644
--- a/src/lib/base/LogOutputters.h
+++ b/src/lib/base/log_outputters.h
@@ -16,14 +16,13 @@
* along with this program. If not, see .
*/
-#ifndef LOGOUTPUTTERS_H
-#define LOGOUTPUTTERS_H
+#pragma once
-#include "BasicTypes.h"
-#include "ILogOutputter.h"
-#include "CString.h"
-#include "stddeque.h"
-#include "CThread.h"
+#include "mt/Thread.h"
+#include "base/ILogOutputter.h"
+#include "base/String.h"
+#include "common/basic_types.h"
+#include "common/stddeque.h"
#include
#include
@@ -168,5 +167,3 @@ public:
virtual void show(bool showIfEmpty);
virtual bool write(ELevel level, const char* message);
};
-
-#endif
diff --git a/src/lib/client/CMakeLists.txt b/src/lib/client/CMakeLists.txt
index 1ea66b1e..1dd47d6c 100644
--- a/src/lib/client/CMakeLists.txt
+++ b/src/lib/client/CMakeLists.txt
@@ -22,13 +22,7 @@ if (SYNERGY_ADD_HEADERS)
endif()
include_directories(
- ../arch
- ../base
- ../common
- ../io
- ../mt
- ../net
- ../synergy
+ ../
../../../ext
)
diff --git a/src/lib/client/Client.cpp b/src/lib/client/Client.cpp
index 72fcb5da..11c32562 100644
--- a/src/lib/client/Client.cpp
+++ b/src/lib/client/Client.cpp
@@ -16,26 +16,28 @@
* along with this program. If not, see .
*/
-#include "CClient.h"
-#include "CServerProxy.h"
-#include "CScreen.h"
-#include "CClipboard.h"
-#include "CPacketStreamFilter.h"
-#include "CProtocolUtil.h"
-#include "ProtocolTypes.h"
-#include "XSynergy.h"
-#include "IDataSocket.h"
-#include "ISocketFactory.h"
-#include "IStreamFilterFactory.h"
-#include "CLog.h"
-#include "IEventQueue.h"
-#include "TMethodEventJob.h"
-#include "CArch.h"
-#include "IPlatformScreen.h"
-#include "CCryptoStream.h"
-#include "CThread.h"
-#include "TMethodJob.h"
-#include "CFileChunker.h"
+#include "client/Client.h"
+
+#include "client/ServerProxy.h"
+#include "synergy/Screen.h"
+#include "synergy/Clipboard.h"
+#include "synergy/PacketStreamFilter.h"
+#include "synergy/ProtocolUtil.h"
+#include "synergy/protocol_types.h"
+#include "synergy/XSynergy.h"
+#include "synergy/FileChunker.h"
+#include "synergy/IPlatformScreen.h"
+#include "mt/Thread.h"
+#include "io/IStreamFilterFactory.h"
+#include "io/CryptoStream.h"
+#include "net/IDataSocket.h"
+#include "net/ISocketFactory.h"
+#include "arch/Arch.h"
+#include "base/Log.h"
+#include "base/IEventQueue.h"
+#include "base/TMethodEventJob.h"
+#include "base/TMethodJob.h"
+
#include
#include
#include
diff --git a/src/lib/client/Client.h b/src/lib/client/Client.h
index 50bfcd16..817387cf 100644
--- a/src/lib/client/Client.h
+++ b/src/lib/client/Client.h
@@ -16,16 +16,16 @@
* along with this program. If not, see .
*/
-#ifndef CCLIENT_H
-#define CCLIENT_H
+#pragma once
-#include "IClient.h"
-#include "IClipboard.h"
-#include "CNetworkAddress.h"
-#include "INode.h"
-#include "CCryptoOptions.h"
-#include "CEventTypes.h"
-#include "CDragInformation.h"
+#include "synergy/IClient.h"
+
+#include "synergy/IClipboard.h"
+#include "synergy/DragInformation.h"
+#include "synergy/INode.h"
+#include "net/NetworkAddress.h"
+#include "io/CryptoOptions.h"
+#include "base/EventTypes.h"
class CEventQueueTimer;
class CScreen;
@@ -239,5 +239,3 @@ private:
CThread* m_writeToDropDirThread;
bool m_enableDragDrop;
};
-
-#endif
diff --git a/src/lib/client/ServerProxy.cpp b/src/lib/client/ServerProxy.cpp
index c5ed93df..fe6c0c87 100644
--- a/src/lib/client/ServerProxy.cpp
+++ b/src/lib/client/ServerProxy.cpp
@@ -16,19 +16,21 @@
* along with this program. If not, see .
*/
-#include "CServerProxy.h"
-#include "CClient.h"
-#include "CClipboard.h"
-#include "CProtocolUtil.h"
-#include "OptionTypes.h"
-#include "ProtocolTypes.h"
-#include "IStream.h"
-#include "CLog.h"
-#include "IEventQueue.h"
-#include "TMethodEventJob.h"
-#include "XBase.h"
+#include "client/ServerProxy.h"
+
+#include "client/Client.h"
+#include "synergy/Clipboard.h"
+#include "synergy/ProtocolUtil.h"
+#include "synergy/option_types.h"
+#include "synergy/protocol_types.h"
+#include "io/IStream.h"
+#include "io/CryptoStream.h"
+#include "base/Log.h"
+#include "base/IEventQueue.h"
+#include "base/TMethodEventJob.h"
+#include "base/XBase.h"
+
#include
-#include "CCryptoStream.h"
//
// CServerProxy
diff --git a/src/lib/client/ServerProxy.h b/src/lib/client/ServerProxy.h
index fe23aa1a..d03bae73 100644
--- a/src/lib/client/ServerProxy.h
+++ b/src/lib/client/ServerProxy.h
@@ -16,14 +16,13 @@
* along with this program. If not, see .
*/
-#ifndef CSERVERPROXY_H
-#define CSERVERPROXY_H
+#pragma once
-#include "ClipboardTypes.h"
-#include "KeyTypes.h"
-#include "CEvent.h"
-#include "CStopwatch.h"
-#include "CString.h"
+#include "synergy/clipboard_types.h"
+#include "synergy/key_types.h"
+#include "base/Event.h"
+#include "base/Stopwatch.h"
+#include "base/String.h"
class CClient;
class CClientInfo;
@@ -137,5 +136,3 @@ private:
size_t m_receivedDataSize;
static const UInt16 m_intervalThreshold;
};
-
-#endif
diff --git a/src/lib/common/CMakeLists.txt b/src/lib/common/CMakeLists.txt
index 23de44e1..4ca16291 100644
--- a/src/lib/common/CMakeLists.txt
+++ b/src/lib/common/CMakeLists.txt
@@ -21,6 +21,10 @@ if (SYNERGY_ADD_HEADERS)
list(APPEND sources ${headers})
endif()
+include_directories(
+ ../
+)
+
if (UNIX)
include_directories(
../../..
diff --git a/src/lib/common/IInterface.h b/src/lib/common/IInterface.h
index 7c5934ea..9e246677 100644
--- a/src/lib/common/IInterface.h
+++ b/src/lib/common/IInterface.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef IINTERFACE_H
-#define IINTERFACE_H
+#pragma once
-#include "common.h"
+#include "common/common.h"
//! Base class of interfaces
/*!
@@ -31,5 +30,3 @@ public:
//! Interface destructor does nothing
virtual ~IInterface() { }
};
-
-#endif
diff --git a/src/lib/common/MacOSXPrecomp.h b/src/lib/common/MacOSXPrecomp.h
index dbf12d5a..c4989a6c 100644
--- a/src/lib/common/MacOSXPrecomp.h
+++ b/src/lib/common/MacOSXPrecomp.h
@@ -22,5 +22,4 @@
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_2
-
#include
diff --git a/src/lib/common/Version.cpp b/src/lib/common/Version.cpp
index 1fef24c0..78f23b3c 100644
--- a/src/lib/common/Version.cpp
+++ b/src/lib/common/Version.cpp
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "Version.h"
+#include "common/Version.h"
const char* kApplication = "Synergy";
const char* kCopyright = "Copyright (C) 2012-2014 Bolton Software Ltd.\n"
diff --git a/src/lib/common/Version.h b/src/lib/common/Version.h
index 8a0eff0f..46925100 100644
--- a/src/lib/common/Version.h
+++ b/src/lib/common/Version.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef VERSION_H
-#define VERSION_H
+#pragma once
-#include "common.h"
+#include "common/common.h"
// set version macro if not set yet
#if !defined(VERSION)
@@ -38,5 +37,3 @@ extern const char* kVersion;
// application version
extern const char* kAppVersion;
-
-#endif
diff --git a/src/lib/common/BasicTypes.h b/src/lib/common/basic_types.h
similarity index 96%
rename from src/lib/common/BasicTypes.h
rename to src/lib/common/basic_types.h
index d5163902..7f20cb5a 100644
--- a/src/lib/common/BasicTypes.h
+++ b/src/lib/common/basic_types.h
@@ -16,10 +16,9 @@
* along with this program. If not, see .
*/
-#ifndef BASICTYPES_H
-#define BASICTYPES_H
+#pragma once
-#include "common.h"
+#include "common/common.h"
//
// pick types of particular sizes
@@ -87,5 +86,3 @@ typedef unsigned TYPE_OF_SIZE_4 UInt32;
#undef TYPE_OF_SIZE_1
#undef TYPE_OF_SIZE_2
#undef TYPE_OF_SIZE_4
-
-#endif
diff --git a/src/lib/common/common.h b/src/lib/common/common.h
index 2ee5a253..4b9da839 100644
--- a/src/lib/common/common.h
+++ b/src/lib/common/common.h
@@ -16,8 +16,7 @@
* along with this program. If not, see .
*/
-#ifndef COMMON_H
-#define COMMON_H
+#pragma once
// this file should be included, directly or indirectly by every other.
@@ -154,5 +153,3 @@ enum {
kExitArgs = 3, // bad arguments
kExitConfig = 4 // cannot read configuration
};
-
-#endif
diff --git a/src/lib/common/stdbitset.h b/src/lib/common/stdbitset.h
index 59fb7138..64dad68b 100644
--- a/src/lib/common/stdbitset.h
+++ b/src/lib/common/stdbitset.h
@@ -16,6 +16,6 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#include
-#include "stdpost.h"
+#include "common/stdpost.h"
diff --git a/src/lib/common/stddeque.h b/src/lib/common/stddeque.h
index c33b4e90..8b5d08b1 100644
--- a/src/lib/common/stddeque.h
+++ b/src/lib/common/stddeque.h
@@ -16,6 +16,6 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#include
-#include "stdpost.h"
+#include "common/stdpost.h"
diff --git a/src/lib/common/stdfstream.h b/src/lib/common/stdfstream.h
index 22459ebe..4353f05d 100644
--- a/src/lib/common/stdfstream.h
+++ b/src/lib/common/stdfstream.h
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#include
-#include "stdpost.h"
-#include "stdistream.h"
+#include "common/stdpost.h"
+#include "common/stdistream.h"
diff --git a/src/lib/common/stdistream.h b/src/lib/common/stdistream.h
index a6528f3b..d08ecbce 100644
--- a/src/lib/common/stdistream.h
+++ b/src/lib/common/stdistream.h
@@ -16,13 +16,13 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#if HAVE_ISTREAM
#include
#else
#include
#endif
-#include "stdpost.h"
+#include "common/stdpost.h"
#if defined(_MSC_VER) && _MSC_VER <= 1200
// VC++6 istream has no overloads for __int* types, .NET does
diff --git a/src/lib/common/stdlist.h b/src/lib/common/stdlist.h
index bd5e28a7..caaca6ff 100644
--- a/src/lib/common/stdlist.h
+++ b/src/lib/common/stdlist.h
@@ -16,6 +16,6 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#include
-#include "stdpost.h"
+#include "common/stdpost.h"
diff --git a/src/lib/common/stdmap.h b/src/lib/common/stdmap.h
index b4b0b988..cb755103 100644
--- a/src/lib/common/stdmap.h
+++ b/src/lib/common/stdmap.h
@@ -16,6 +16,6 @@
* along with this program. If not, see .
*/
-#include "stdpre.h"
+#include "common/stdpre.h"
#include