From d88da82e281e041c24d5c61194e7646926341610 Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 25 Feb 2022 12:27:37 +0200 Subject: [PATCH] Userland: Rename IPC::ServerConnection=>IPC::ConnectionToServer This was done with CLion's automatic rename feature. --- Userland/DevTools/HackStudio/LanguageClient.cpp | 2 +- Userland/DevTools/HackStudio/LanguageClient.h | 6 +++--- .../DevTools/HackStudio/LanguageClients/ServerConnections.h | 2 +- Userland/DevTools/Inspector/InspectorServerClient.h | 6 +++--- Userland/Libraries/LibAudio/ConnectionFromClient.cpp | 2 +- Userland/Libraries/LibAudio/ConnectionFromClient.h | 4 ++-- Userland/Libraries/LibConfig/Client.h | 6 +++--- Userland/Libraries/LibDesktop/Launcher.cpp | 6 +++--- Userland/Libraries/LibFileSystemAccessClient/Client.h | 6 +++--- Userland/Libraries/LibGUI/Clipboard.cpp | 6 +++--- Userland/Libraries/LibGUI/Notification.cpp | 6 +++--- Userland/Libraries/LibGUI/WindowManagerServerConnection.h | 6 +++--- Userland/Libraries/LibGUI/WindowServerConnection.cpp | 2 +- Userland/Libraries/LibGUI/WindowServerConnection.h | 4 ++-- .../LibIPC/{ServerConnection.h => ConnectionToServer.h} | 4 ++-- Userland/Libraries/LibImageDecoderClient/Client.cpp | 2 +- Userland/Libraries/LibImageDecoderClient/Client.h | 4 ++-- Userland/Libraries/LibProtocol/RequestClient.cpp | 2 +- Userland/Libraries/LibProtocol/RequestClient.h | 4 ++-- Userland/Libraries/LibProtocol/WebSocketClient.cpp | 2 +- Userland/Libraries/LibProtocol/WebSocketClient.h | 4 ++-- Userland/Libraries/LibSQL/SQLClient.h | 6 +++--- Userland/Libraries/LibWeb/WebContentClient.cpp | 2 +- Userland/Libraries/LibWeb/WebContentClient.h | 4 ++-- Userland/Services/SpiceAgent/ClipboardServerConnection.h | 6 +++--- Userland/Services/SpiceAgent/main.cpp | 2 +- 26 files changed, 53 insertions(+), 53 deletions(-) rename Userland/Libraries/LibIPC/{ServerConnection.h => ConnectionToServer.h} (91%) diff --git a/Userland/DevTools/HackStudio/LanguageClient.cpp b/Userland/DevTools/HackStudio/LanguageClient.cpp index 89678cfb389..53b5632b34b 100644 --- a/Userland/DevTools/HackStudio/LanguageClient.cpp +++ b/Userland/DevTools/HackStudio/LanguageClient.cpp @@ -262,7 +262,7 @@ void ServerConnectionWrapper::try_respawn_connection() if (!m_respawn_allowed) return; - dbgln("Respawning ServerConnection"); + dbgln("Respawning ConnectionToServer"); create_connection(); // After respawning the language-server, we have to send the content of open project files diff --git a/Userland/DevTools/HackStudio/LanguageClient.h b/Userland/DevTools/HackStudio/LanguageClient.h index f66d2726975..2151ae3d254 100644 --- a/Userland/DevTools/HackStudio/LanguageClient.h +++ b/Userland/DevTools/HackStudio/LanguageClient.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include @@ -26,13 +26,13 @@ class LanguageClient; class ServerConnectionWrapper; class ServerConnection - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public LanguageClientEndpoint { friend class ServerConnectionWrapper; public: ServerConnection(NonnullOwnPtr socket, const String& project_path) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { m_project_path = project_path; async_greet(m_project_path); diff --git a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h index 7618676a65c..a5e1496d28c 100644 --- a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h +++ b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #define LANGUAGE_CLIENT(language_name_, socket_name) \ namespace language_name_ { \ diff --git a/Userland/DevTools/Inspector/InspectorServerClient.h b/Userland/DevTools/Inspector/InspectorServerClient.h index f30c6a7a995..8ce73d7c0a3 100644 --- a/Userland/DevTools/Inspector/InspectorServerClient.h +++ b/Userland/DevTools/Inspector/InspectorServerClient.h @@ -8,12 +8,12 @@ #include #include -#include +#include namespace Inspector { class InspectorServerClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public InspectorClientEndpoint { IPC_CLIENT_CONNECTION(InspectorServerClient, "/tmp/portal/inspector") @@ -22,7 +22,7 @@ public: private: InspectorServerClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } }; diff --git a/Userland/Libraries/LibAudio/ConnectionFromClient.cpp b/Userland/Libraries/LibAudio/ConnectionFromClient.cpp index 74d0c907c73..ae5ee7210bf 100644 --- a/Userland/Libraries/LibAudio/ConnectionFromClient.cpp +++ b/Userland/Libraries/LibAudio/ConnectionFromClient.cpp @@ -15,7 +15,7 @@ namespace Audio { static timespec g_enqueue_wait_time { 0, 10'000'000 }; ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibAudio/ConnectionFromClient.h b/Userland/Libraries/LibAudio/ConnectionFromClient.h index f84243cf6f6..7210353075e 100644 --- a/Userland/Libraries/LibAudio/ConnectionFromClient.h +++ b/Userland/Libraries/LibAudio/ConnectionFromClient.h @@ -8,14 +8,14 @@ #include #include -#include +#include namespace Audio { class Buffer; class ConnectionFromClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public AudioClientEndpoint { IPC_CLIENT_CONNECTION(ConnectionFromClient, "/tmp/portal/audio") public: diff --git a/Userland/Libraries/LibConfig/Client.h b/Userland/Libraries/LibConfig/Client.h index c24ee043faa..99d45a2fc66 100644 --- a/Userland/Libraries/LibConfig/Client.h +++ b/Userland/Libraries/LibConfig/Client.h @@ -11,12 +11,12 @@ #include #include #include -#include +#include namespace Config { class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ConfigClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/config") @@ -40,7 +40,7 @@ public: private: explicit Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp index fed12f699e4..606827e6fa3 100644 --- a/Userland/Libraries/LibDesktop/Launcher.cpp +++ b/Userland/Libraries/LibDesktop/Launcher.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include namespace Desktop { @@ -34,12 +34,12 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe } class LaunchServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public LaunchClientEndpoint { IPC_CLIENT_CONNECTION(LaunchServerConnection, "/tmp/portal/launch") private: LaunchServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } }; diff --git a/Userland/Libraries/LibFileSystemAccessClient/Client.h b/Userland/Libraries/LibFileSystemAccessClient/Client.h index 759e15de033..c50e342e860 100644 --- a/Userland/Libraries/LibFileSystemAccessClient/Client.h +++ b/Userland/Libraries/LibFileSystemAccessClient/Client.h @@ -13,14 +13,14 @@ #include #include #include -#include +#include namespace FileSystemAccessClient { using Result = ErrorOr>; class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public FileSystemAccessClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/filesystemaccess") @@ -37,7 +37,7 @@ protected: private: explicit Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp index 9e1cb1a2878..a5484510552 100644 --- a/Userland/Libraries/LibGUI/Clipboard.cpp +++ b/Userland/Libraries/LibGUI/Clipboard.cpp @@ -9,18 +9,18 @@ #include #include #include -#include +#include namespace GUI { class ClipboardServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ClipboardClientEndpoint { IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") private: ClipboardServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/Notification.cpp b/Userland/Libraries/LibGUI/Notification.cpp index 0f7e4207cb1..90bbd928bfd 100644 --- a/Userland/Libraries/LibGUI/Notification.cpp +++ b/Userland/Libraries/LibGUI/Notification.cpp @@ -5,14 +5,14 @@ */ #include -#include +#include #include #include namespace GUI { class NotificationServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public NotificationClientEndpoint { IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify") @@ -26,7 +26,7 @@ public: private: explicit NotificationServerConnection(NonnullOwnPtr socket, Notification* notification) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) , m_notification(notification) { } diff --git a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h index db9c3d5f790..b2f890e0c82 100644 --- a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h +++ b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include #include #include @@ -14,7 +14,7 @@ namespace GUI { class WindowManagerServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WindowManagerClientEndpoint { IPC_CLIENT_CONNECTION(WindowManagerServerConnection, "/tmp/portal/wm") @@ -23,7 +23,7 @@ public: private: WindowManagerServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.cpp b/Userland/Libraries/LibGUI/WindowServerConnection.cpp index 5498ffa0db6..aa5094c9f53 100644 --- a/Userland/Libraries/LibGUI/WindowServerConnection.cpp +++ b/Userland/Libraries/LibGUI/WindowServerConnection.cpp @@ -42,7 +42,7 @@ static void set_system_theme_from_anonymous_buffer(Core::AnonymousBuffer buffer) } WindowServerConnection::WindowServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { // NOTE: WindowServer automatically sends a "fast_greet" message to us when we connect. // All we have to do is wait for it to arrive. This avoids a round-trip during application startup. diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.h b/Userland/Libraries/LibGUI/WindowServerConnection.h index 065f28f01d1..43fc3cd00b2 100644 --- a/Userland/Libraries/LibGUI/WindowServerConnection.h +++ b/Userland/Libraries/LibGUI/WindowServerConnection.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include #include #include @@ -14,7 +14,7 @@ namespace GUI { class WindowServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WindowClientEndpoint { IPC_CLIENT_CONNECTION(WindowServerConnection, "/tmp/portal/window") public: diff --git a/Userland/Libraries/LibIPC/ServerConnection.h b/Userland/Libraries/LibIPC/ConnectionToServer.h similarity index 91% rename from Userland/Libraries/LibIPC/ServerConnection.h rename to Userland/Libraries/LibIPC/ConnectionToServer.h index 394f8b6630c..38994155dd9 100644 --- a/Userland/Libraries/LibIPC/ServerConnection.h +++ b/Userland/Libraries/LibIPC/ConnectionToServer.h @@ -25,14 +25,14 @@ public: } template -class ServerConnection : public IPC::Connection +class ConnectionToServer : public IPC::Connection , public ClientEndpoint::Stub , public ServerEndpoint::template Proxy { public: using ClientStub = typename ClientEndpoint::Stub; using IPCProxy = typename ServerEndpoint::template Proxy; - ServerConnection(ClientStub& local_endpoint, NonnullOwnPtr socket) + ConnectionToServer(ClientStub& local_endpoint, NonnullOwnPtr socket) : Connection(local_endpoint, move(socket)) , ServerEndpoint::template Proxy(*this, {}) { diff --git a/Userland/Libraries/LibImageDecoderClient/Client.cpp b/Userland/Libraries/LibImageDecoderClient/Client.cpp index 417e6869e3d..766902bf20e 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.cpp +++ b/Userland/Libraries/LibImageDecoderClient/Client.cpp @@ -10,7 +10,7 @@ namespace ImageDecoderClient { Client::Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibImageDecoderClient/Client.h b/Userland/Libraries/LibImageDecoderClient/Client.h index 7a4ac22148c..0fc4572643b 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.h +++ b/Userland/Libraries/LibImageDecoderClient/Client.h @@ -9,7 +9,7 @@ #include #include #include -#include +#include namespace ImageDecoderClient { @@ -25,7 +25,7 @@ struct DecodedImage { }; class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ImageDecoderClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/image"); diff --git a/Userland/Libraries/LibProtocol/RequestClient.cpp b/Userland/Libraries/LibProtocol/RequestClient.cpp index 00fda42af08..3851f6b2170 100644 --- a/Userland/Libraries/LibProtocol/RequestClient.cpp +++ b/Userland/Libraries/LibProtocol/RequestClient.cpp @@ -11,7 +11,7 @@ namespace Protocol { RequestClient::RequestClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibProtocol/RequestClient.h b/Userland/Libraries/LibProtocol/RequestClient.h index 74b4fc8b1e4..190a766a26f 100644 --- a/Userland/Libraries/LibProtocol/RequestClient.h +++ b/Userland/Libraries/LibProtocol/RequestClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include @@ -16,7 +16,7 @@ namespace Protocol { class Request; class RequestClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public RequestClientEndpoint { IPC_CLIENT_CONNECTION(RequestClient, "/tmp/portal/request") diff --git a/Userland/Libraries/LibProtocol/WebSocketClient.cpp b/Userland/Libraries/LibProtocol/WebSocketClient.cpp index 9a57235d608..43dccd76c2c 100644 --- a/Userland/Libraries/LibProtocol/WebSocketClient.cpp +++ b/Userland/Libraries/LibProtocol/WebSocketClient.cpp @@ -10,7 +10,7 @@ namespace Protocol { WebSocketClient::WebSocketClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibProtocol/WebSocketClient.h b/Userland/Libraries/LibProtocol/WebSocketClient.h index 57a0e9c276b..37226c42750 100644 --- a/Userland/Libraries/LibProtocol/WebSocketClient.h +++ b/Userland/Libraries/LibProtocol/WebSocketClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include @@ -16,7 +16,7 @@ namespace Protocol { class WebSocket; class WebSocketClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WebSocketClientEndpoint { IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/portal/websocket") diff --git a/Userland/Libraries/LibSQL/SQLClient.h b/Userland/Libraries/LibSQL/SQLClient.h index b6884e03ca4..38279992cfd 100644 --- a/Userland/Libraries/LibSQL/SQLClient.h +++ b/Userland/Libraries/LibSQL/SQLClient.h @@ -6,14 +6,14 @@ #pragma once -#include +#include #include #include namespace SQL { class SQLClient - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public SQLClientEndpoint { IPC_CLIENT_CONNECTION(SQLClient, "/tmp/portal/sql") virtual ~SQLClient(); @@ -28,7 +28,7 @@ class SQLClient private: SQLClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index 770fed6e65f..9220a61775b 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -12,7 +12,7 @@ namespace Web { WebContentClient::WebContentClient(NonnullOwnPtr socket, OutOfProcessWebView& view) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) , m_view(view) { } diff --git a/Userland/Libraries/LibWeb/WebContentClient.h b/Userland/Libraries/LibWeb/WebContentClient.h index 14ded8ebf1f..cea2774b969 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.h +++ b/Userland/Libraries/LibWeb/WebContentClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include @@ -17,7 +17,7 @@ namespace Web { class OutOfProcessWebView; class WebContentClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WebContentClientEndpoint { IPC_CLIENT_CONNECTION(WebContentClient, "/tmp/portal/webcontent"); diff --git a/Userland/Services/SpiceAgent/ClipboardServerConnection.h b/Userland/Services/SpiceAgent/ClipboardServerConnection.h index 3e29de5ee00..c580bb429cb 100644 --- a/Userland/Services/SpiceAgent/ClipboardServerConnection.h +++ b/Userland/Services/SpiceAgent/ClipboardServerConnection.h @@ -8,12 +8,12 @@ #include #include #include -#include +#include #pragma once class ClipboardServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ClipboardClientEndpoint { IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") @@ -24,7 +24,7 @@ public: private: ClipboardServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } virtual void clipboard_data_changed(String const&) override diff --git a/Userland/Services/SpiceAgent/main.cpp b/Userland/Services/SpiceAgent/main.cpp index e94fb99669e..c77803ece43 100644 --- a/Userland/Services/SpiceAgent/main.cpp +++ b/Userland/Services/SpiceAgent/main.cpp @@ -7,7 +7,7 @@ #include "SpiceAgent.h" #include #include -#include +#include #include static constexpr auto SPICE_DEVICE = "/dev/hvc0p1"sv;