diff options
author | David Robillard <d@drobilla.net> | 2017-12-18 00:45:27 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-12 18:20:04 +0100 |
commit | 8c19e157e148efb59d6ea2f815783755b6075c7e (patch) | |
tree | 094a95326138dd3a46cbd52b84981e36faebc64a /src/server | |
parent | 967a8b9d6690a5ece385d07af04c322d645de23f (diff) | |
download | ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.gz ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.bz2 ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.zip |
Rename Atom::get_body to Atom::body and use Atom::ptr consistently
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ControlBindings.cpp | 2 | ||||
-rw-r--r-- | src/server/LV2Block.cpp | 2 | ||||
-rw-r--r-- | src/server/RunContext.cpp | 2 | ||||
-rw-r--r-- | src/server/events/SetPortValue.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 2a269cac..67842291 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -69,7 +69,7 @@ ControlBindings::binding_key(const Atom& binding) const LV2_Atom* num = nullptr; if (binding.type() == uris.atom_Object) { const LV2_Atom_Object_Body* obj = (const LV2_Atom_Object_Body*) - binding.get_body(); + binding.body(); if (obj->otype == uris.midi_Bender) { key = Key(Type::MIDI_BENDER); } else if (obj->otype == uris.midi_ChannelPressure) { diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp index 765643d6..fd555c7f 100644 --- a/src/server/LV2Block.cpp +++ b/src/server/LV2Block.cpp @@ -669,7 +669,7 @@ get_port_value(const char* port_symbol, if (port && port->is_input() && port->value().is_valid()) { *size = port->value().size(); *type = port->value().type(); - return port->value().get_body(); + return port->value().body(); } return nullptr; diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp index ee272d46..6efc81ee 100644 --- a/src/server/RunContext.cpp +++ b/src/server/RunContext.cpp @@ -116,7 +116,7 @@ RunContext::emit_notifications(FrameTime end) if (_event_sink->read(sizeof(note), ¬e) == sizeof(note)) { Atom value = _engine.world()->forge().alloc( note.size, note.type, nullptr); - if (_event_sink->read(note.size, value.get_body()) == note.size) { + if (_event_sink->read(note.size, value.body()) == note.size) { i += note.size; const char* key = _engine.world()->uri_map().unmap_uri(note.key); if (key) { diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp index fa36d739..c0087d8f 100644 --- a/src/server/events/SetPortValue.cpp +++ b/src/server/events/SetPortValue.cpp @@ -112,7 +112,7 @@ SetPortValue::apply(RunContext& context) if (!buf->append_event(_time - context.start(), _value.size(), _value.type(), - (const uint8_t*)_value.get_body())) { + (const uint8_t*)_value.body())) { _status = Status::NO_SPACE; } } else if (buf->type() == uris.atom_URID) { |