aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-02 15:13:50 +0100
committerMartin Ridgers <[email protected]>2021-11-02 15:29:02 +0100
commitccc38a15e7eaf638a88b559d4689453402394d99 (patch)
tree5ee37360f46ce621e77b9b0baaee58411076ce14 /zenserver/projectstore.cpp
parentMore granular if-defs around platform-specific classes (diff)
downloadzen-ccc38a15e7eaf638a88b559d4689453402394d99.tar.xz
zen-ccc38a15e7eaf638a88b559d4689453402394d99.zip
Stubbed out Project Store's PipeConnection on POSIX
Diffstat (limited to 'zenserver/projectstore.cpp')
-rw-r--r--zenserver/projectstore.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp
index ba51a0dd2..899080696 100644
--- a/zenserver/projectstore.cpp
+++ b/zenserver/projectstore.cpp
@@ -1685,6 +1685,7 @@ HttpProjectService::HandleRequest(HttpServerRequest& Request)
//////////////////////////////////////////////////////////////////////////
+#if ZEN_PLATFORM_WINDOWS
class SecurityAttributes
{
public:
@@ -1717,6 +1718,12 @@ public:
}
}
};
+#else
+struct AnyUserSecurityAttributes
+{
+ int Attributes() { return 0666; }
+};
+#endif // ZEN_PLATFORM_WINDOWS
//////////////////////////////////////////////////////////////////////////
@@ -1787,6 +1794,7 @@ private:
asio::thread_pool m_WorkerThreadPool;
asio::io_context m_IoContext;
+#if ZEN_PLATFORM_WINDOWS
class PipeConnection
{
enum PipeState
@@ -1945,6 +1953,15 @@ private:
uint8_t m_MsgBuffer[16384];
};
+#else
+ class PipeConnection
+ {
+ public:
+ PipeConnection(LocalProjectImpl*) {}
+ void Accept() {}
+ void Disconnect() {}
+ };
+#endif
AnyUserSecurityAttributes m_AnyUserSecurityAttributes;
std::vector<PipeConnection*> m_ServicePipes;