1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 01:27:34 +00:00

LibIPC: Stop sending client ID to clients

The client ID is not useful to normal clients anymore, so stop telling
everyone what their ID is.
This commit is contained in:
Andreas Kling 2021-02-01 11:26:41 +01:00
parent a5bbe3280d
commit 1ce03f4f34
29 changed files with 27 additions and 42 deletions

View file

@ -1,7 +1,7 @@
endpoint AudioServer = 85
{
// Basic protocol
Greet() => (i32 client_id)
Greet() => ()
// Mixer functions
SetMuted(bool muted) => ()

View file

@ -81,7 +81,7 @@ void ClientConnection::did_change_main_mix_volume(Badge<Mixer>, int volume)
OwnPtr<Messages::AudioServer::GreetResponse> ClientConnection::handle(const Messages::AudioServer::Greet&)
{
return make<Messages::AudioServer::GreetResponse>(client_id());
return make<Messages::AudioServer::GreetResponse>();
}
OwnPtr<Messages::AudioServer::GetMainMixVolumeResponse> ClientConnection::handle(const Messages::AudioServer::GetMainMixVolume&)

View file

@ -57,7 +57,7 @@ void ClientConnection::die()
OwnPtr<Messages::ClipboardServer::GreetResponse> ClientConnection::handle(const Messages::ClipboardServer::Greet&)
{
return make<Messages::ClipboardServer::GreetResponse>(client_id());
return make<Messages::ClipboardServer::GreetResponse>();
}
OwnPtr<Messages::ClipboardServer::SetClipboardDataResponse> ClientConnection::handle(const Messages::ClipboardServer::SetClipboardData& message)

View file

@ -1,6 +1,6 @@
endpoint ClipboardServer = 802
{
Greet() => (i32 client_id)
Greet() => ()
GetClipboardData() => (Core::AnonymousBuffer data, [UTF8] String mime_type, IPC::Dictionary metadata)
SetClipboardData(Core::AnonymousBuffer data, [UTF8] String mime_type, IPC::Dictionary metadata) => ()

View file

@ -53,7 +53,7 @@ void ClientConnection::die()
OwnPtr<Messages::ImageDecoderServer::GreetResponse> ClientConnection::handle(const Messages::ImageDecoderServer::Greet&)
{
return make<Messages::ImageDecoderServer::GreetResponse>(client_id());
return make<Messages::ImageDecoderServer::GreetResponse>();
}
OwnPtr<Messages::ImageDecoderServer::DecodeImageResponse> ClientConnection::handle(const Messages::ImageDecoderServer::DecodeImage& message)

View file

@ -1,6 +1,6 @@
endpoint ImageDecoderServer = 7001
{
Greet() => (i32 client_id)
Greet() => ()
DecodeImage(Core::AnonymousBuffer data) => (bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations)
}

View file

@ -50,7 +50,7 @@ void ClientConnection::die()
OwnPtr<Messages::LaunchServer::GreetResponse> ClientConnection::handle(const Messages::LaunchServer::Greet&)
{
return make<Messages::LaunchServer::GreetResponse>(client_id());
return make<Messages::LaunchServer::GreetResponse>();
}
OwnPtr<Messages::LaunchServer::OpenURLResponse> ClientConnection::handle(const Messages::LaunchServer::OpenURL& request)

View file

@ -1,6 +1,6 @@
endpoint LaunchServer = 101
{
Greet() => (i32 client_id)
Greet() => ()
OpenURL(URL url, String handler_name) => (bool response)
GetHandlersForURL(URL url) => (Vector<String> handlers)
GetHandlersWithDetailsForURL(URL url) => (Vector<String> handlers_details)

View file

@ -50,7 +50,7 @@ void ClientConnection::die()
OwnPtr<Messages::NotificationServer::GreetResponse> ClientConnection::handle(const Messages::NotificationServer::Greet&)
{
return make<Messages::NotificationServer::GreetResponse>(client_id());
return make<Messages::NotificationServer::GreetResponse>();
}
OwnPtr<Messages::NotificationServer::ShowNotificationResponse> ClientConnection::handle(const Messages::NotificationServer::ShowNotification& message)

View file

@ -1,7 +1,7 @@
endpoint NotificationServer = 95
{
// Basic protocol
Greet() => (i32 client_id)
Greet() => ()
ShowNotification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()
}

View file

@ -122,7 +122,7 @@ void ClientConnection::did_request_certificates(Badge<Download>, Download& downl
OwnPtr<Messages::ProtocolServer::GreetResponse> ClientConnection::handle(const Messages::ProtocolServer::Greet&)
{
return make<Messages::ProtocolServer::GreetResponse>(client_id());
return make<Messages::ProtocolServer::GreetResponse>();
}
OwnPtr<Messages::ProtocolServer::SetCertificateResponse> ClientConnection::handle(const Messages::ProtocolServer::SetCertificate& message)

View file

@ -1,7 +1,7 @@
endpoint ProtocolServer = 9
{
// Basic protocol
Greet() => (i32 client_id)
Greet() => ()
// Test if a specific protocol is supported, e.g "http"
IsSupportedProtocol(String protocol) => (bool supported)

View file

@ -78,7 +78,7 @@ const Web::Page& ClientConnection::page() const
OwnPtr<Messages::WebContentServer::GreetResponse> ClientConnection::handle(const Messages::WebContentServer::Greet&)
{
return make<Messages::WebContentServer::GreetResponse>(client_id());
return make<Messages::WebContentServer::GreetResponse>();
}
void ClientConnection::handle(const Messages::WebContentServer::UpdateSystemTheme& message)

View file

@ -1,6 +1,6 @@
endpoint WebContentServer = 89
{
Greet() => (i32 client_id)
Greet() => ()
UpdateSystemTheme(Core::AnonymousBuffer theme_buffer) =|

View file

@ -722,7 +722,7 @@ void ClientConnection::handle(const Messages::WindowServer::WM_SetWindowMinimize
OwnPtr<Messages::WindowServer::GreetResponse> ClientConnection::handle(const Messages::WindowServer::Greet&)
{
return make<Messages::WindowServer::GreetResponse>(client_id(), Screen::the().rect(), Gfx::current_system_theme_buffer());
return make<Messages::WindowServer::GreetResponse>(Screen::the().rect(), Gfx::current_system_theme_buffer());
}
void ClientConnection::handle(const Messages::WindowServer::WM_SetWindowTaskbarRect& message)

View file

@ -1,6 +1,6 @@
endpoint WindowServer = 2
{
Greet() => (i32 client_id, Gfx::IntRect screen_rect, Core::AnonymousBuffer theme_buffer)
Greet() => (Gfx::IntRect screen_rect, Core::AnonymousBuffer theme_buffer)
CreateMenubar() => (i32 menubar_id)
DestroyMenubar(i32 menubar_id) => ()