From 34a268f0bfac9bdee96d880116a8d609be0aa809 Mon Sep 17 00:00:00 2001 From: Baud Date: Tue, 27 Feb 2024 10:19:17 +0000 Subject: [PATCH] chore: Stubs for tally events --- atem-connection-rs/src/lib.rs | 1 + atem-connection-rs/src/tally.rs | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 atem-connection-rs/src/tally.rs diff --git a/atem-connection-rs/src/lib.rs b/atem-connection-rs/src/lib.rs index ce14b38..a7c3350 100644 --- a/atem-connection-rs/src/lib.rs +++ b/atem-connection-rs/src/lib.rs @@ -10,3 +10,4 @@ pub mod atem_lib; pub mod commands; pub mod enums; pub mod state; +pub mod tally; diff --git a/atem-connection-rs/src/tally.rs b/atem-connection-rs/src/tally.rs new file mode 100644 index 0000000..4b25bb0 --- /dev/null +++ b/atem-connection-rs/src/tally.rs @@ -0,0 +1,13 @@ +#[derive(Debug)] +pub struct TallyEvent { + tally_state: TallyState, + source_index: usize, + source_label: String, + source_name: String, +} + +#[derive(Debug)] +enum TallyState { + Program, + Preview, +}