diff --git a/cspot/include/SpircHandler.h b/cspot/include/SpircHandler.h index 7ff930b..c17caa0 100644 --- a/cspot/include/SpircHandler.h +++ b/cspot/include/SpircHandler.h @@ -44,6 +44,9 @@ class SpircHandler { void subscribeToMercury(); std::shared_ptr getTrackPlayer(); + // Read access for the host (now-playing info: track position, play state). + std::shared_ptr getPlaybackState() { return playbackState; } + std::shared_ptr getContext() { return ctx; } void setEventHandler(EventHandler handler);