refactor(mpd): Add module name to log messages

This commit is contained in:
Minijackson
2019-04-18 11:48:38 +02:00
parent 22eccc2ac2
commit ab43d34a1e
2 changed files with 9 additions and 6 deletions

View File

@ -36,6 +36,8 @@ class MPD : public ALabel {
bool stopped();
bool playing();
const std::string module_name_;
using unique_connection = std::unique_ptr<mpd_connection, decltype(&mpd_connection_free)>;
using unique_status = std::unique_ptr<mpd_status, decltype(&mpd_status_free)>;
using unique_song = std::unique_ptr<mpd_song, decltype(&mpd_song_free)>;