summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
commit20627955d1184b5f07b8f7910a59f15cdc4802c8 (patch)
treeafc2111b9d3be287d3e82dcc54b23f84c88e4183 /playlist.h
parentcec677f6022983afbc144a52eff8a719a1086577 (diff)
changed some API entry points to make it possible working with specific playlists, and not just the current one
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/playlist.h b/playlist.h
index f097198e..1e4959ff 100644
--- a/playlist.h
+++ b/playlist.h
@@ -175,6 +175,9 @@ playItem_t *
pl_insert_file (playItem_t *after, const char *fname, int *pabort, int (*cb)(playItem_t *it, void *data), void *user_data);
playItem_t *
+plt_insert_file (playlist_t *playlist, playItem_t *after, const char *fname, int *pabort, int (*cb)(playItem_t *it, void *data), void *user_data);
+
+playItem_t *
pl_insert_item (playItem_t *after, playItem_t *it);
playItem_t *
@@ -217,10 +220,10 @@ int
pl_get_idx_of_iter (playItem_t *it, int iter);
playItem_t *
-pl_insert_cue_from_buffer (playItem_t *after, playItem_t *origin, const uint8_t *buffer, int buffersize, int numsamples, int samplerate);
+plt_insert_cue_from_buffer (playlist_t *plt, playItem_t *after, playItem_t *origin, const uint8_t *buffer, int buffersize, int numsamples, int samplerate);
playItem_t *
-pl_insert_cue (playItem_t *after, playItem_t *origin, int numsamples, int samplerate);
+plt_insert_cue (playlist_t *plt, playItem_t *after, playItem_t *origin, int numsamples, int samplerate);
void
pl_add_meta (playItem_t *it, const char *key, const char *value);
@@ -290,6 +293,9 @@ pl_reshuffle (playItem_t **ppmin, playItem_t **ppmax);
// required to calculate total playtime
void
+plt_set_item_duration (playlist_t *playlist, playItem_t *it, float duration);
+
+void
pl_set_item_duration (playItem_t *it, float duration);
float