summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-10 14:37:24 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-10 14:37:24 +0100
commit0bc2f204526be9ff2c7eb0ba7b998197ecb074ff (patch)
tree5aa3fe7ee0a35a1649c97d38915c325cfb7a0034 /playlist.h
parent07c402bc06c7158b5669f622ff7d1896ce423ff7 (diff)
multiple playlist management WIP
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/playlist.h b/playlist.h
index 25d4cc26..26824f68 100644
--- a/playlist.h
+++ b/playlist.h
@@ -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);