summaryrefslogtreecommitdiff
path: root/mg_playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg_playlist.c')
-rw-r--r--mg_playlist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mg_playlist.c b/mg_playlist.c
index a63519e..a0fbb0f 100644
--- a/mg_playlist.c
+++ b/mg_playlist.c
@@ -160,11 +160,17 @@ void mgPlaylist::setListname(std::string name)
}
// returns the count of items in the list
-int mgPlaylist::count()
+int mgPlaylist::getCount()
{
return m_list.size();
}
+// returns current index in the playlist
+int mgPlaylist::getIndex() const
+{
+ return m_current_idx;
+}
+
// returns the current item of the list
mgContentItem* mgPlaylist::getCurrent()
{