Files
virtual-controller/plugin-reaper-relearn/api/src/runtime/instance_info_event.rs
T
Paul Lipscomb 7ecc718f5d Reorganize top-level directories with clearer naming convention
app -> app-desktop-macos, presets -> app-presets, server -> remote-server,
daw-config-reaper -> osc-config-daw, plugin-reaper-realearn -> plugin-reaper-relearn.
Updated run.py and presets.py path references accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 17:51:05 -04:00

25 lines
724 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
#[serde(tag = "kind")]
pub enum InstanceInfoEvent {
Generic(GenericInstanceInfoEvent),
/// If attempting to MIDI-learn but the track is either not armed or the input monitoring mode
/// is not suitable.
MidiLearnFromFxInputButTrackNotArmed,
MidiLearnFromFxInputButTrackHasAudioInput,
}
impl InstanceInfoEvent {
pub fn generic(message: impl Into<String>) -> Self {
Self::Generic(GenericInstanceInfoEvent {
message: message.into(),
})
}
}
#[derive(Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
pub struct GenericInstanceInfoEvent {
pub message: String,
}