summaryrefslogtreecommitdiffstats
path: root/core/playlist.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-28 22:16:29 +0200
committerwm4 <wm4@nowhere>2013-06-29 22:58:12 +0200
commita6a1f4b8336c0d18c0588922da6b786b6408209f (patch)
tree1fd7bae3a83c98a090601c824ff35a933603c3ef /core/playlist.h
parentfd7dd83e287c96f8be026cdec2c1ec74aaaa823b (diff)
downloadmpv-a6a1f4b8336c0d18c0588922da6b786b6408209f.tar.bz2
mpv-a6a1f4b8336c0d18c0588922da6b786b6408209f.tar.xz
command: add properties for playlist position
playlist-pos can set/get the current playlist index. playlist-count returns the number of entries in the playlist.
Diffstat (limited to 'core/playlist.h')
-rw-r--r--core/playlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/playlist.h b/core/playlist.h
index f896751eb6..3e34390707 100644
--- a/core/playlist.h
+++ b/core/playlist.h
@@ -64,4 +64,8 @@ struct playlist_entry *playlist_get_next(struct playlist *pl, int direction);
void playlist_add_base_path(struct playlist *pl, bstr base_path);
void playlist_transfer_entries(struct playlist *pl, struct playlist *source_pl);
+int playlist_entry_to_index(struct playlist *pl, struct playlist_entry *e);
+int playlist_entry_count(struct playlist *pl);
+struct playlist_entry *playlist_entry_from_index(struct playlist *pl, int index);
+
#endif