diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-10 14:37:24 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-10 14:37:24 +0100 |
commit | 0bc2f204526be9ff2c7eb0ba7b998197ecb074ff (patch) | |
tree | 5aa3fe7ee0a35a1649c97d38915c325cfb7a0034 /playlist.h | |
parent | 07c402bc06c7158b5669f622ff7d1896ce423ff7 (diff) |
multiple playlist management WIP
Diffstat (limited to 'playlist.h')
-rw-r--r-- | playlist.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -54,7 +54,7 @@ typedef struct playItem_s { } playItem_t; typedef struct playlist_s{ - char *fname; + char *title; 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) @@ -66,17 +66,23 @@ int plt_get_count (void); void -plt_add (int before); +plt_add (int before, const char *title); void plt_remove (int plt); void -plt_set_curr (playlist_t *ptr); +plt_free (void); -playlist_t * +void +plt_set_curr (int plt); + +int plt_get_curr (void); +playlist_t * +plt_get_curr_ptr (void); + // playlist access functions int pl_add_dir (const char *dirname, int (*cb)(playItem_t *it, void *data), void *user_data); |