mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-12-04 14:46:31 -05:00
Remove unneeded functionality
This commit is contained in:
parent
bf4150dcce
commit
74dce6af5b
@ -341,15 +341,6 @@ playlist_get_next(struct playlist *pl)
|
|||||||
return ((const char *)pl->list[pl->index++]);
|
return ((const char *)pl->list[pl->index++]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
|
||||||
playlist_peek_next(struct playlist *pl)
|
|
||||||
{
|
|
||||||
if (pl->program || pl->num == 0)
|
|
||||||
return (NULL);
|
|
||||||
|
|
||||||
return ((const char *)pl->list[pl->index]);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
playlist_skip_next(struct playlist *pl)
|
playlist_skip_next(struct playlist *pl)
|
||||||
{
|
{
|
||||||
@ -378,17 +369,6 @@ playlist_get_position(struct playlist *pl)
|
|||||||
return ((unsigned long)pl->index);
|
return ((unsigned long)pl->index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
playlist_set_position(struct playlist *pl, unsigned long idx)
|
|
||||||
{
|
|
||||||
if (pl->program || idx > pl->num - 1)
|
|
||||||
return (0);
|
|
||||||
|
|
||||||
pl->index = (size_t)idx;
|
|
||||||
|
|
||||||
return (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
playlist_goto_entry(struct playlist *pl, const char *entry)
|
playlist_goto_entry(struct playlist *pl, const char *entry)
|
||||||
{
|
{
|
||||||
|
@ -60,13 +60,6 @@ const char * playlist_get_next(playlist_t);
|
|||||||
* and are no-ops (i.e. return failure) for playlists from playlist_program().
|
* and are no-ops (i.e. return failure) for playlists from playlist_program().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Get the next item in the playlist without moving on to the following entry.
|
|
||||||
* Returns a NUL-terminated string of the next playlist entry, or NULL if the
|
|
||||||
* currently playing song is the last one in the list.
|
|
||||||
*/
|
|
||||||
const char * playlist_peek_next(playlist_t);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Skip the playlist item that would be played next.
|
* Skip the playlist item that would be played next.
|
||||||
*/
|
*/
|
||||||
@ -82,11 +75,6 @@ unsigned long playlist_get_num_items(playlist_t);
|
|||||||
*/
|
*/
|
||||||
unsigned long playlist_get_position(playlist_t);
|
unsigned long playlist_get_position(playlist_t);
|
||||||
|
|
||||||
/*
|
|
||||||
* Set a position in the playlist. Returns 1 on success, and 0 on failure.
|
|
||||||
*/
|
|
||||||
int playlist_set_position(playlist_t, unsigned long /* index */);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Search for a given entry in the playlist and reposition to it. Returns 1 on
|
* Search for a given entry in the playlist and reposition to it. Returns 1 on
|
||||||
* success and 0 on failure. A subsequent call to playlist_get_next() will
|
* success and 0 on failure. A subsequent call to playlist_get_next() will
|
||||||
|
Loading…
Reference in New Issue
Block a user