diff options
author | David Robillard <d@drobilla.net> | 2024-11-15 18:45:54 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:00:44 -0500 |
commit | 417f76f18194ab6edf7e77d771037cf3ff8059e1 (patch) | |
tree | dd55a2eccf97c470ac5702feb0c33d8d52f7ffae /src/comm.h | |
parent | a3e3e489942697217ef08a73c1064e84df3d5e09 (diff) | |
download | jalv-417f76f18194ab6edf7e77d771037cf3ff8059e1.tar.gz jalv-417f76f18194ab6edf7e77d771037cf3ff8059e1.tar.bz2 jalv-417f76f18194ab6edf7e77d771037cf3ff8059e1.zip |
Allocate message buffers with the necessary size during setup
Remove static limits and instead allocate large enough buffers for any message
sent by the plugin. These buffers only need to hold one message at a time, so
they can't be any larger than the largest port buffer (since the plugin
couldn't possibly write anything larger).
Also replaces some crude hammering on realloc() with reuse of one of these
known-large-enough buffers.
Diffstat (limited to 'src/comm.h')
0 files changed, 0 insertions, 0 deletions