From f72e5bbb17cd54aa0e75e4436ddcd7ca0fda4648 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 28 Feb 2020 11:45:19 +0100 Subject: Kernel+LibC: Rename shared buffer syscalls to use a prefix This feels a lot more consistent and Unixy: create_shared_buffer() => shbuf_create() share_buffer_with() => shbuf_allow_pid() share_buffer_globally() => shbuf_allow_all() get_shared_buffer() => shbuf_get() release_shared_buffer() => shbuf_release() seal_shared_buffer() => shbuf_seal() get_shared_buffer_size() => shbuf_get_size() Also, "shared_buffer_id" is shortened to "shbuf_id" all around. --- Libraries/LibGUI/WindowServerConnection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Libraries/LibGUI/WindowServerConnection.cpp') diff --git a/Libraries/LibGUI/WindowServerConnection.cpp b/Libraries/LibGUI/WindowServerConnection.cpp index 5b756cbd7d..35c9c154e6 100644 --- a/Libraries/LibGUI/WindowServerConnection.cpp +++ b/Libraries/LibGUI/WindowServerConnection.cpp @@ -53,9 +53,9 @@ WindowServerConnection& WindowServerConnection::the() return *s_connection; } -static void set_system_theme_from_shared_buffer_id(int id) +static void set_system_theme_from_shbuf_id(int id) { - auto system_theme = SharedBuffer::create_from_shared_buffer_id(id); + auto system_theme = SharedBuffer::create_from_shbuf_id(id); ASSERT(system_theme); Gfx::set_system_theme(*system_theme); Application::the().set_system_palette(*system_theme); @@ -65,13 +65,13 @@ void WindowServerConnection::handshake() { auto response = send_sync(); set_my_client_id(response->client_id()); - set_system_theme_from_shared_buffer_id(response->system_theme_buffer_id()); + set_system_theme_from_shbuf_id(response->system_theme_buffer_id()); Desktop::the().did_receive_screen_rect({}, response->screen_rect()); } void WindowServerConnection::handle(const Messages::WindowClient::UpdateSystemTheme& message) { - set_system_theme_from_shared_buffer_id(message.system_theme_buffer_id()); + set_system_theme_from_shbuf_id(message.system_theme_buffer_id()); Window::update_all_windows({}); } -- cgit v1.2.3