module main // The default build has no desktop media controls: no libdbus, no worker, no // D-Bus types. This file stands in for mpris_d_mpris.v and mpris_glue_d_mpris.v // with the same names the app calls, so the rest of the app builds unchanged // and every call is a no-op. Build with -d mpris to get the real service. struct Mpris {} fn media_controls_unavailable() { eprintln('vendetta: desktop media controls are not built in; rebuild with -d mpris') } fn (mut m Mpris) mpris_free() {} fn (mut p Player) start_media_controls() { media_controls_unavailable() } fn (mut p Player) set_media_controls(on bool) { if on && !p.media_controls { media_controls_unavailable() } p.media_controls = on } fn (mut p Player) mpris_announce() {} fn (mut p Player) mpris_push() {} fn (mut p Player) mpris_on_position(_ f64) {} fn (mut p Player) mpris_seek_started() {} fn (mut p Player) mpris_seek_landed() {} fn (mut p Player) mpris_on_volume() {} fn (mut p Player) drain_mpris() {}