aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-29 20:56:36 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-29 20:56:36 +0200
commitc62eb3a2fdaa80f472be6ecbfc2cbf2479d8d914 (patch)
tree7a32678b59c123ea6fbe6c01237aec5e3b143e87 /common/src/lib.rs
parent29b12a48bcfa3aa0f814f7b39a64868b6313c13d (diff)
downloadjellything-c62eb3a2fdaa80f472be6ecbfc2cbf2479d8d914.tar
jellything-c62eb3a2fdaa80f472be6ecbfc2cbf2479d8d914.tar.bz2
jellything-c62eb3a2fdaa80f472be6ecbfc2cbf2479d8d914.tar.zst
move stream generation to new crate
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 6c76903..b7f975a 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -6,6 +6,7 @@
pub mod config;
pub mod helpers;
pub mod r#impl;
+pub mod stream;
use bincode::{Decode, Encode};
#[cfg(feature = "rocket")]
@@ -88,10 +89,12 @@ pub enum PublicMediaSource {
Remote(String),
}
+pub type TrackID = usize;
+
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct LocalTrack {
pub path: PathBuf,
- pub track: usize,
+ pub track: TrackID,
pub codec_private: Option<Vec<u8>>,
}