summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-12-17 22:39:47 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-12-17 22:39:47 +0100
commitfc493f5e80de2860c73b998c8ce187ea68bedcdf (patch)
tree6cc06a89530d8b2bc9d8ca1a3e361cf9fdc465af /playlist.h
parentf30ba666c5fa2a16c0b5b2ee1d253ab2ac71de09 (diff)
fix bug #1020: incorrect cursor/scroll after deleting playlists
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/playlist.h b/playlist.h
index b8bdeb40..9328dcca 100644
--- a/playlist.h
+++ b/playlist.h
@@ -65,6 +65,7 @@ typedef struct playlist_s {
playItem_t *head[PL_MAX_ITERATORS]; // head of linked list
playItem_t *tail[PL_MAX_ITERATORS]; // tail of linked list
int current_row[PL_MAX_ITERATORS]; // current row (cursor)
+ int scroll;
struct DB_metaInfo_s *meta; // linked list storing metainfo
int refc;
int files_add_visibility;
@@ -524,4 +525,10 @@ plt_add_files_end (playlist_t *plt, int visibility);
void
plt_deselect_all (playlist_t *plt);
+void
+plt_set_scroll (playlist_t *plt, int scroll);
+
+int
+plt_get_scroll (playlist_t *plt);
+
#endif // __PLAYLIST_H