diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-28 11:45:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 12:55:58 +0100 |
commit | f72e5bbb17cd54aa0e75e4436ddcd7ca0fda4648 (patch) | |
tree | 4f66b2ea3a3ebfbde38c95832a2b21de373af291 /Libraries/LibGUI/WindowServerConnection.cpp | |
parent | 8460d02651a1669ba3cdcc7cf277ceda1c0447de (diff) | |
download | serenity-f72e5bbb17cd54aa0e75e4436ddcd7ca0fda4648.zip |
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.
Diffstat (limited to 'Libraries/LibGUI/WindowServerConnection.cpp')
-rw-r--r-- | Libraries/LibGUI/WindowServerConnection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<Messages::WindowServer::Greet>(); 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({}); } |