| 1 | // Copyright (C) Microsoft Corporation. All rights reserved. |
| 2 | #pragma once |
| 3 | |
| 4 | #include <optional> |
| 5 | #include <lxwil.h> |
| 6 | #include "SocketChannel.h" |
| 7 | #include "WslDistributionConfig.h" |
| 8 | |
| 9 | std::pair<unsigned int, wsl::shared::SocketChannel> StartPlan9Server(const char* socketWindowsPath, const wsl::linux::WslDistributionConfig& Config); |
| 10 | |
| 11 | void RunPlan9Server(const char* socketPath, const char* logFile, int logLevel, bool truncateLog, int controlSocket, int serverFd, wil::unique_fd& pipeFd); |
| 12 | |
| 13 | bool StopPlan9Server(bool force, wsl::linux::WslDistributionConfig& Config); |