Added 'MPRIS' module

This commit adds the ability to display status information for MPRIS
compatible music players.
I've adapted most of the naming conventions (and some code) from the
MPD module.
This commit is contained in:
haruInDisguise 2024-07-05 23:22:20 +02:00
parent 739dc30323
commit 1b8962d296
5 changed files with 639 additions and 0 deletions

View file

@ -57,6 +57,9 @@ EXTERN_MODULE(mem);
#if defined(HAVE_PLUGIN_mpd)
EXTERN_MODULE(mpd);
#endif
#if defined(HAVE_PLUGIN_mpris)
EXTERN_MODULE(mpris);
#endif
#if defined(HAVE_PLUGIN_i3)
EXTERN_MODULE(i3);
#endif
@ -187,6 +190,9 @@ static void __attribute__((constructor)) init(void)
#if defined(HAVE_PLUGIN_mpd)
REGISTER_CORE_MODULE(mpd, mpd);
#endif
#if defined(HAVE_PLUGIN_mpris)
REGISTER_CORE_MODULE(mpris, mpris);
#endif
#if defined(HAVE_PLUGIN_i3)
REGISTER_CORE_MODULE(i3, i3);
#endif