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/LibAudio/Buffer.h | |
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/LibAudio/Buffer.h')
-rw-r--r-- | Libraries/LibAudio/Buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibAudio/Buffer.h b/Libraries/LibAudio/Buffer.h index ba5ab76531..230099b850 100644 --- a/Libraries/LibAudio/Buffer.h +++ b/Libraries/LibAudio/Buffer.h @@ -121,7 +121,7 @@ public: int sample_count() const { return m_sample_count; } const void* data() const { return m_buffer->data(); } int size_in_bytes() const { return m_sample_count * (int)sizeof(Sample); } - int shared_buffer_id() const { return m_buffer->shared_buffer_id(); } + int shbuf_id() const { return m_buffer->shbuf_id(); } SharedBuffer& shared_buffer() { return *m_buffer; } private: |