2025-11-30 10:54:01 +01:00
|
|
|
mod events;
|
2025-12-01 23:10:16 +01:00
|
|
|
mod media_server_events;
|
2025-11-30 10:54:01 +01:00
|
|
|
|
2025-12-30 16:50:26 +01:00
|
|
|
pub mod arylic_client;
|
2025-11-29 18:56:11 +01:00
|
|
|
pub mod control_point;
|
2026-01-03 08:19:23 +01:00
|
|
|
pub mod discovery;
|
2025-12-28 17:45:06 +01:00
|
|
|
pub mod errors;
|
2026-01-03 08:19:23 +01:00
|
|
|
pub mod identity;
|
|
|
|
|
pub mod linkplay_client;
|
|
|
|
|
pub mod linkplay_utils;
|
2025-12-01 19:55:55 +01:00
|
|
|
pub mod media_server;
|
2025-11-29 17:51:53 +01:00
|
|
|
pub mod model;
|
2025-11-30 23:28:30 +01:00
|
|
|
pub mod music_renderer;
|
2026-01-03 08:19:23 +01:00
|
|
|
pub mod online;
|
|
|
|
|
pub mod queue;
|
2025-11-29 17:51:53 +01:00
|
|
|
pub mod registry;
|
2025-11-29 22:59:07 +01:00
|
|
|
pub mod soap_client;
|
2026-01-03 08:19:23 +01:00
|
|
|
pub mod upnp_clients;
|
2025-11-29 17:51:53 +01:00
|
|
|
|
2025-12-03 18:59:41 +01:00
|
|
|
// pmoserver extension (optional)
|
|
|
|
|
#[cfg(feature = "pmoserver")]
|
|
|
|
|
pub mod openapi;
|
|
|
|
|
#[cfg(feature = "pmoserver")]
|
|
|
|
|
pub mod pmoserver_ext;
|
|
|
|
|
#[cfg(feature = "pmoserver")]
|
|
|
|
|
pub mod sse;
|
|
|
|
|
|
2025-12-28 17:45:06 +01:00
|
|
|
use std::time::Duration;
|
|
|
|
|
|
2025-12-03 21:34:23 +01:00
|
|
|
#[cfg(feature = "pmoserver")]
|
|
|
|
|
pub use pmoserver_ext::ControlPointExt;
|
|
|
|
|
|
2026-01-03 08:19:23 +01:00
|
|
|
pub use control_point::ControlPoint;
|
|
|
|
|
pub use media_server::{MediaBrowser, MediaEntry, MediaResource, UpnpMediaServer};
|
2025-12-28 17:45:06 +01:00
|
|
|
pub use queue::{EnqueueMode, PlaybackItem, QueueSnapshot};
|
2025-11-29 18:56:11 +01:00
|
|
|
|
2025-12-01 23:10:16 +01:00
|
|
|
pub use model::{
|
2026-01-03 08:19:23 +01:00
|
|
|
MediaServerEvent, PlaybackSource, RendererCapabilities, RendererEvent, RendererInfo,
|
|
|
|
|
RendererProtocol,
|
2025-12-01 23:10:16 +01:00
|
|
|
};
|
2025-12-28 17:45:06 +01:00
|
|
|
pub use registry::{DeviceRegistry, DeviceUpdate};
|
2025-11-29 18:56:11 +01:00
|
|
|
|
2025-12-28 17:45:06 +01:00
|
|
|
pub use online::DeviceOnline;
|
2026-01-03 08:19:23 +01:00
|
|
|
pub use soap_client::invoke_upnp_action;
|
2025-12-28 17:45:06 +01:00
|
|
|
|
|
|
|
|
pub use identity::DeviceIdentity;
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
|
|
|
|
pub struct DeviceId(pub String);
|
|
|
|
|
|
|
|
|
|
const DEFAULT_HTTP_TIMEOUT: Duration = Duration::from_secs(30);
|