7ecc718f5d
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>
25 lines
724 B
Rust
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,
|
|
}
|