selene-daemon 0.5.4

Official music player daemon for Selene
Documentation
// IPC
pub mod daemon;

pub mod config;

mod ipc;

use std::sync::atomic::AtomicBool;

pub use ipc::*;

// Engines
/// Defaults to `false`, if `true`, a shutdown has been requested due to a critical thread returning
pub(crate) static SHUTDOWN: AtomicBool = AtomicBool::new(false);

pub mod decoder;
pub mod event_handler;
pub mod listener;
pub mod player;

// Features
#[cfg(feature = "mpris")]
pub mod mpris;

// Other
pub mod playlist;

/// Sleep the current thread for 1ms. Used to avoid busy looping
pub fn wait() {
    std::thread::sleep(std::time::Duration::from_millis(1));
}