From a6a1f4b8336c0d18c0588922da6b786b6408209f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 28 Jun 2013 22:16:29 +0200 Subject: 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. --- core/playlist.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/playlist.h') 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 -- cgit v1.2.3