fix: move CarlaHost to Engine struct and fix TUI plugin dialog access

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-03 10:30:36 +00:00
parent 8c9804d2ef
commit adcc5e14cf
5 changed files with 16 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
#include <jack/midiport.h>
#include <stdbool.h>
#include "dispatcher.h"
#include "carla.h"
typedef struct {
jack_client_t *client;
@@ -18,6 +19,8 @@ typedef struct {
DispatchFn dispatch;
jack_nframes_t sample_rate;
bool running;
CarlaHost carla_host; // Carla host state for plugin management
} Engine;
int engine_init(Engine *engine, const char *client_name, DispatchFn dispatch);