Rename parameters for clarity

This commit is contained in:
Robbert van der Helm
2020-02-26 16:52:54 +01:00
parent 3d12489e58
commit c2e102969e
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -27,7 +27,7 @@
* in one of the dispatch functions. This is used as a buffer size and also as a
* cutoff for checking if c-style strings behind a `char*` have changed.
*/
constexpr size_t max_string_size = 128;
constexpr size_t max_string_length = 128;
/**
* An event as dispatched by the VST host. These events will get forwarded to
@@ -36,7 +36,7 @@ constexpr size_t max_string_size = 128;
*/
struct Event {
int32_t opcode;
int32_t parameter;
int32_t index;
// TODO: This is an intptr_t, is this actually a poitner that should be
// dereferenced?
intptr_t value;
@@ -49,7 +49,7 @@ struct Event {
*/
std::optional<std::string> data;
MSGPACK_DEFINE(opcode, parameter, value, option, data)
MSGPACK_DEFINE(opcode, index, value, option, data)
};
/**