From ecaccef008313d01df0b00bb5582dce5986426ad Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 4 Apr 2021 17:53:09 +0100 Subject: [PATCH] mpris: do not support mpris on Windows Summary: mpris is a Unix dbus tech, there is no such thing on Windows Test Plan: compilation and launch rage --> no more eldbus error messages :) Reviewers: raster Subscribers: netstar, raster Tags: #rage Differential Revision: https://phab.enlightenment.org/D12255 --- src/bin/mpris.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/bin/mpris.c b/src/bin/mpris.c index ef0cd7f..a580e5a 100644 --- a/src/bin/mpris.c +++ b/src/bin/mpris.c @@ -1,4 +1,8 @@ + #include + +/* no mpris support on Windows */ +#ifndef _WIN32 #include "main.h" #include "win.h" #include "browser.h" @@ -1140,3 +1144,47 @@ mpris_shutdown(void) // eldbus_connection_unref(conn); conn = NULL; } + +#else + +void +mpris_fullscreen_change(void) +{ +} + +void +mpris_volume_change(void) +{ +} + +void +mpris_loop_status_change(void) +{ +} + +void +mpris_playback_status_change(void) +{ +} + +void +mpris_position_change(double pos EINA_UNUSED) +{ +} + +void +mpris_metadata_change(void) +{ +} + +void +mpris_init(Evas_Object *win EINA_UNUSED) +{ +} + +void +mpris_shutdown(void) +{ +} + +#endif