mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-23 18:45:39 +02:00
Applied suggestions by 'nemo' and drop 'basu' subproject
This commit is contained in:
parent
b55d5a6739
commit
0d7a05af55
5 changed files with 18 additions and 8 deletions
13
modules/dbus.h
Normal file
13
modules/dbus.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
// This header provides an generic interface for different versions of
|
||||
// systemd-sdbus.
|
||||
|
||||
#if defined(HAVE_LIBSYSTEMD)
|
||||
#include <systemd/sd-bus.h>
|
||||
#elif defined(HAVE_LIBELOGIND)
|
||||
#include <elogind/sd-bus.h>
|
||||
#elif defined(HAVE_BASU)
|
||||
#include <basu/sd-bus.h>
|
||||
#endif
|
||||
|
|
@ -22,8 +22,8 @@ plugin_mem_enabled = get_option('plugin-mem').allowed()
|
|||
mpd = dependency('libmpdclient', required: get_option('plugin-mpd'))
|
||||
plugin_mpd_enabled = mpd.found()
|
||||
|
||||
mpris = dbus
|
||||
plugin_mpris_enabled = dbus.found()
|
||||
mpris = sdbus
|
||||
plugin_mpris_enabled = sdbus.found()
|
||||
|
||||
json_i3 = dependency('json-c', required: get_option('plugin-i3'))
|
||||
plugin_i3_enabled = json_i3.found()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <sys/eventfd.h>
|
||||
|
||||
#include <systemd/sd-bus.h>
|
||||
#include "dbus.h"
|
||||
|
||||
#define LOG_MODULE "mpris"
|
||||
#define LOG_ENABLE_DBG 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue