32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/*
|
|
playlist: playlist logic
|
|
|
|
copyright 1995-2020 by the mpg123 project - free software under the terms of the LGPL 2.1
|
|
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
|
initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis
|
|
*/
|
|
#ifndef MPG123_PLAYLIST_H
|
|
#define MPG123_PLAYLIST_H
|
|
|
|
#include "mpg123app.h"
|
|
|
|
/* create playlist from argv including reading of playlist file */
|
|
void prepare_playlist(int argc, char** argv, int args_utf8, int *is_utf8);
|
|
/* Return TRUE if standard put is used up by the playlist. */
|
|
int playlist_stdin(void);
|
|
/* returns the next url to play or NULL when there is none left */
|
|
char *get_next_file(void);
|
|
/* Get current track number, optionally the total count and loop counter. */
|
|
size_t playlist_pos(size_t *total, long *loop);
|
|
/* frees memory that got allocated in prepare_playlist */
|
|
void free_playlist(void);
|
|
/* Print out the playlist, with optional position indicator. */
|
|
void print_playlist(FILE* out, int showpos);
|
|
/* This prepares a jump to be executed on next get_next_file(). */
|
|
void playlist_jump(mpg123_ssize_t incr);
|
|
/* Aim for the next directory (just trigger next track for random play). */
|
|
void playlist_next_dir(void);
|
|
/* Same for previous one. */
|
|
void playlist_prev_dir(void);
|
|
|
|
#endif
|