2020-05-29 12:21:05 +00:00
|
|
|
#ifndef DBUS_PLAYER_H
|
|
|
|
#define DBUS_PLAYER_H
|
|
|
|
#include <dbus/dbus.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "metadata.h"
|
|
|
|
|
|
|
|
DBusConnection *dbusConnect();
|
|
|
|
void dbusDisconnect( DBusConnection *conn );
|
|
|
|
char **dbusGetMediaPlayers( DBusConnection *conn );
|
|
|
|
struct song_metadata dbusGetSong( DBusConnection *conn, const char *player );
|
|
|
|
void dbusPlayPause( DBusConnection *conn, const char *player );
|
|
|
|
void dbusNext( DBusConnection *conn, const char *player );
|
|
|
|
void dbusPrev( DBusConnection *conn, const char *player );
|
|
|
|
void dbusStop( DBusConnection *conn, const char *player );
|
2020-05-29 18:45:39 +00:00
|
|
|
bool dbusRunning( DBusConnection *conn, const char *player );
|
|
|
|
bool dbusPlaying( DBusConnection *conn, const char *player );
|
2020-05-29 12:21:05 +00:00
|
|
|
|
|
|
|
#endif
|