From 20627955d1184b5f07b8f7910a59f15cdc4802c8 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 29 Apr 2011 22:38:31 +0200 Subject: changed some API entry points to make it possible working with specific playlists, and not just the current one --- playlist.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'playlist.h') diff --git a/playlist.h b/playlist.h index f097198e..1e4959ff 100644 --- a/playlist.h +++ b/playlist.h @@ -174,6 +174,9 @@ pl_insert_dir (playItem_t *after, const char *dirname, int *pabort, int (*cb)(pl 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); @@ -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); @@ -289,6 +292,9 @@ void 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); -- cgit v1.2.3