audio: Access function for recent playqueue

The recent playqueue is needed for the history tab.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-24 20:30:25 -05:00 committed by Anna Schumaker
parent 7d10ebe5c3
commit 6446b7e5ad
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#ifndef OCARINA_AUDIO_H
#define OCARINA_AUDIO_H
#include <playqueue.h>
extern "C" {
#include <gst/gst.h>
}
@ -22,6 +24,7 @@ namespace audio
void next();
void previous();
unsigned int current_trackid();
Playqueue *get_recent_pq();
void seek_to(long);
long position();

View File

@ -189,6 +189,11 @@ unsigned int audio :: current_trackid()
return cur_trackid;
}
Playqueue *audio :: get_recent_pq()
{
return &o_recently_played;
}
long audio :: position()
{
long position;