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
This commit is contained in:
Vincent Torri 2021-04-04 17:53:09 +01:00 committed by Carsten Haitzler (Rasterman)
parent d682faf9b6
commit ecaccef008
1 changed files with 48 additions and 0 deletions

View File

@ -1,4 +1,8 @@
#include <Elementary.h>
/* 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