| 1 |
/* |
| 2 |
playlist: playlist logic |
| 3 |
|
| 4 |
copyright 1995-2020 by the mpg123 project - free software under the terms of the LGPL 2.1 |
| 5 |
see COPYING and AUTHORS files in distribution or http://mpg123.org |
| 6 |
initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis |
| 7 |
*/ |
| 8 |
#ifndef MPG123_PLAYLIST_H |
| 9 |
#define MPG123_PLAYLIST_H |
| 10 |
|
| 11 |
#include "mpg123app.h" |
| 12 |
|
| 13 |
/* create playlist from argv including reading of playlist file */ |
| 14 |
void prepare_playlist(int argc, char** argv, int args_utf8, int *is_utf8); |
| 15 |
/* Return TRUE if standard put is used up by the playlist. */ |
| 16 |
int playlist_stdin(void); |
| 17 |
/* returns the next url to play or NULL when there is none left */ |
| 18 |
char *get_next_file(void); |
| 19 |
/* Get current track number, optionally the total count and loop counter. */ |
| 20 |
size_t playlist_pos(size_t *total, long *loop); |
| 21 |
/* frees memory that got allocated in prepare_playlist */ |
| 22 |
void free_playlist(void); |
| 23 |
/* Print out the playlist, with optional position indicator. */ |
| 24 |
void print_playlist(FILE* out, int showpos); |
| 25 |
/* This prepares a jump to be executed on next get_next_file(). */ |
| 26 |
void playlist_jump(mpg123_ssize_t incr); |
| 27 |
/* Aim for the next directory (just trigger next track for random play). */ |
| 28 |
void playlist_next_dir(void); |
| 29 |
/* Same for previous one. */ |
| 30 |
void playlist_prev_dir(void); |
| 31 |
|
| 32 |
#endif |