Files
empidee/src/types.rs

66 lines
1.7 KiB
Rust

//! Common datatypes used in the Mpd protocol.
//!
//! This module defines various types used throughout the MPD protocol,
//! in addition to their associated serilizers and deserializers.
mod absolute_relative_song_position;
mod audio;
mod bool_or_oneshot;
mod channel_name;
mod db_directory_info;
mod db_playlist_info;
mod db_selection_print;
mod db_song_info;
mod group_type;
mod one_or_range;
mod replay_gain_mode_mode;
mod save_mode;
mod seek_mode;
mod sort;
mod subsystem;
mod tag;
mod time_interval;
mod volume_value;
mod window_range;
use std::path::PathBuf;
pub use absolute_relative_song_position::AbsouluteRelativeSongPosition;
pub use audio::Audio;
pub use bool_or_oneshot::BoolOrOneshot;
pub use channel_name::ChannelName;
pub use db_directory_info::DbDirectoryInfo;
pub use db_playlist_info::DbPlaylistInfo;
pub use db_selection_print::DbSelectionPrintResponse;
pub use db_song_info::DbSongInfo;
pub use group_type::GroupType;
pub use one_or_range::OneOrRange;
pub use replay_gain_mode_mode::ReplayGainModeMode;
pub use save_mode::SaveMode;
pub use seek_mode::SeekMode;
pub use sort::Sort;
pub use subsystem::SubSystem;
pub use tag::Tag;
pub use time_interval::TimeInterval;
pub use volume_value::VolumeValue;
pub use window_range::WindowRange;
pub type AudioOutputId = u32;
pub type MountPath = PathBuf;
pub type Offset = u32;
pub type PlaylistName = String;
pub type PlaylistVersion = u32;
pub type Priority = u8;
pub type Seconds = u32;
pub type SongId = u32;
pub type SongPosition = u32;
pub type TimeWithFractions = f64;
// TODO: use a proper types
pub type Feature = String;
pub type PartitionName = String;
pub type StickerType = String;
pub type TagName = String;
pub type TagValue = String;
pub type Uri = String;