mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
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.
This commit is contained in:
parent
8460d02651
commit
f72e5bbb17
36 changed files with 549 additions and 549 deletions
|
@ -158,9 +158,9 @@ void Bitmap::set_volatile()
|
|||
return rc == 0;
|
||||
}
|
||||
|
||||
int Bitmap::shared_buffer_id() const
|
||||
int Bitmap::shbuf_id() const
|
||||
{
|
||||
return m_shared_buffer ? m_shared_buffer->shared_buffer_id() : -1;
|
||||
return m_shared_buffer ? m_shared_buffer->shbuf_id() : -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
int width() const { return m_size.width(); }
|
||||
int height() const { return m_size.height(); }
|
||||
size_t pitch() const { return m_pitch; }
|
||||
int shared_buffer_id() const;
|
||||
int shbuf_id() const;
|
||||
|
||||
SharedBuffer* shared_buffer() { return m_shared_buffer.ptr(); }
|
||||
const SharedBuffer* shared_buffer() const { return m_shared_buffer.ptr(); }
|
||||
|
|
|
@ -43,7 +43,7 @@ const SystemTheme& current_system_theme()
|
|||
int current_system_theme_buffer_id()
|
||||
{
|
||||
ASSERT(theme_buffer);
|
||||
return theme_buffer->shared_buffer_id();
|
||||
return theme_buffer->shbuf_id();
|
||||
}
|
||||
|
||||
void set_system_theme(SharedBuffer& buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue