Mise en place d'un bus d'événements pour les serveurs de médias.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::capabilities::{PlaybackPositionInfo, PlaybackState};
|
||||
use crate::media_server::ServerId;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct RendererId(pub String);
|
||||
@@ -79,3 +80,15 @@ pub enum RendererEvent {
|
||||
mute: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum MediaServerEvent {
|
||||
GlobalUpdated {
|
||||
server_id: ServerId,
|
||||
system_update_id: Option<u32>,
|
||||
},
|
||||
ContainersUpdated {
|
||||
server_id: ServerId,
|
||||
container_ids: Vec<String>,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user