2 * Copyright (c) 2022 Omar Polo <op@omarpolo.com>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 extern struct playlist playlist;
34 extern enum play_state play_state;
35 extern int repeat_one;
36 extern int repeat_all;
38 extern ssize_t play_off;
39 extern const char *current_song;
40 extern int64_t current_position;
41 extern int64_t current_duration;
43 void playlist_swap(struct playlist *, ssize_t);
44 void playlist_push(struct playlist *, const char *);
45 void playlist_enqueue(const char *);
46 const char *playlist_advance(void);
47 const char *playlist_previous(void);
48 void playlist_reset(void);
49 void playlist_free(struct playlist *);
50 void playlist_truncate(void);
51 void playlist_dropcurrent(void);
52 const char *playlist_jump(const char *);